Skip to content

Commit 72d5e2f

Browse files
authored
Merge pull request #1 from adopted-ember-addons/v2-addon
Convert to a v2 addon and drop support for Ember < 3.16
2 parents f0060db + 4c8ab23 commit 72d5e2f

File tree

138 files changed

+14777
-13050
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+14777
-13050
lines changed

.ember-cli

-9
This file was deleted.

.eslintrc.js

-54
This file was deleted.

.github/workflows/ci.yml

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request: {}
9+
10+
concurrency:
11+
group: ci-${{ github.head_ref || github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
test:
16+
name: "Tests"
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 10
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: pnpm/action-setup@v3
23+
with:
24+
version: 8
25+
- uses: actions/setup-node@v4
26+
with:
27+
node-version: 18
28+
cache: pnpm
29+
- name: Install Dependencies
30+
run: pnpm install --frozen-lockfile
31+
- name: Lint
32+
run: pnpm lint
33+
- name: Run Tests
34+
run: pnpm test
35+
36+
floating:
37+
name: "Floating Dependencies"
38+
runs-on: ubuntu-latest
39+
timeout-minutes: 10
40+
41+
steps:
42+
- uses: actions/checkout@v4
43+
- uses: pnpm/action-setup@v3
44+
with:
45+
version: 8
46+
- uses: actions/setup-node@v4
47+
with:
48+
node-version: 18
49+
cache: pnpm
50+
- name: Install Dependencies
51+
run: pnpm install --no-lockfile
52+
- name: Run Tests
53+
run: pnpm test
54+
55+
try-scenarios:
56+
name: ${{ matrix.try-scenario }}
57+
runs-on: ubuntu-latest
58+
needs: 'test'
59+
timeout-minutes: 10
60+
61+
strategy:
62+
fail-fast: false
63+
matrix:
64+
try-scenario:
65+
- ember-lts-3.16
66+
- ember-lts-3.20
67+
- ember-lts-3.24
68+
- ember-lts-3.28
69+
- ember-lts-4.4
70+
- ember-lts-4.8
71+
- ember-lts-4.12
72+
- ember-lts-5.4
73+
- ember-release
74+
- ember-beta
75+
- ember-canary
76+
- embroider-safe
77+
- embroider-optimized
78+
79+
steps:
80+
- uses: actions/checkout@v4
81+
- uses: pnpm/action-setup@v3
82+
with:
83+
version: 8
84+
- uses: actions/setup-node@v4
85+
with:
86+
node-version: 18
87+
cache: pnpm
88+
- name: Install Dependencies
89+
run: pnpm install --frozen-lockfile
90+
- name: Run Tests
91+
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }} --skip-cleanup
92+
working-directory: test-app

.github/workflows/push-dist.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Because this library needs to be built,
2+
# we can't easily point package.json files at the git repo for easy cross-repo testing.
3+
#
4+
# This workflow brings back that capability by placing the compiled assets on a "dist" branch
5+
# (configurable via the "branch" option below)
6+
name: Push dist
7+
8+
on:
9+
push:
10+
branches:
11+
- main
12+
- master
13+
14+
jobs:
15+
push-dist:
16+
name: Push dist
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 10
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: pnpm/action-setup@v3
23+
with:
24+
version: 8
25+
- uses: actions/setup-node@v4
26+
with:
27+
node-version: 18
28+
cache: pnpm
29+
- name: Install Dependencies
30+
run: pnpm install --frozen-lockfile
31+
- uses: kategengler/put-built-npm-package-contents-on-branch@v2.0.0
32+
with:
33+
branch: dist
34+
token: ${{ secrets.GITHUB_TOKEN }}
35+
working-directory: 'ember-drag-drop'

.gitignore

+14-21
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,22 @@
11
# See https://help.github.com/ignore-files/ for more about ignoring files.
22

3-
# compiled output
4-
/dist/
5-
/tmp/
6-
73
# dependencies
8-
/bower_components/
9-
/node_modules/
4+
node_modules/
105

116
# misc
12-
/.env*
13-
/.pnp*
14-
/.sass-cache
15-
/.eslintcache
16-
/connect.lock
17-
/coverage/
18-
/libpeerconnection.log
19-
/npm-debug.log*
20-
/testem.log
21-
/yarn-error.log
7+
.env*
8+
.pnp*
9+
.pnpm-debug.log
10+
.sass-cache
11+
.eslintcache
12+
coverage/
13+
npm-debug.log*
14+
yarn-error.log
2215

2316
# ember-try
24-
.node_modules.ember-try/
25-
bower.json.ember-try
26-
package.json.ember-try
27-
28-
.idea/
17+
/.node_modules.ember-try/
18+
/package.json.ember-try
19+
/package-lock.json.ember-try
20+
/yarn.lock.ember-try
21+
/pnpm-lock.ember-try.yaml
2922

.npmignore

-33
This file was deleted.

.prettierignore

+4-15
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
1-
# unconventional js
2-
/blueprints/*/files/
3-
/vendor/
4-
5-
# compiled output
6-
/dist/
7-
/tmp/
8-
9-
# dependencies
10-
/bower_components/
11-
/node_modules/
1+
# Prettier is also run from each package, so the ignores here
2+
# protect against files that may not be within a package
123

134
# misc
14-
/coverage/
155
!.*
16-
.eslintcache
6+
.lint-todo/
177

188
# ember-try
199
/.node_modules.ember-try/
20-
/bower.json.ember-try
21-
/package.json.ember-try
10+
/pnpm-lock.ember-try.yaml

.prettierrc.cjs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
'use strict';
2+
3+
module.exports = {
4+
plugins: ['prettier-plugin-ember-template-tag'],
5+
singleQuote: true,
6+
};

.travis.yml

-60
This file was deleted.

.watchmanconfig

-3
This file was deleted.

0 commit comments

Comments
 (0)