Skip to content

Commit 15e634b

Browse files
committed
feat: V1 -> V2 addon migration
- Moved addon/ → src/, test-support/ → src/test-support/ - Moved tests/dummy/app/ → demo-app/ - Added V2 build infrastructure (rollup, vite, babel configs) - Updated package.json for v2 addon format - Fixed import paths for v2 layout - Added demo-app CSS import in test-helper
1 parent 2c2c9cc commit 15e634b

63 files changed

Lines changed: 4346 additions & 7548 deletions

Some content is hidden

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

.ember-cli

Lines changed: 0 additions & 19 deletions
This file was deleted.

.env.development

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NODE_ENV=development

.gitignore

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
11
# compiled output
22
/dist/
3+
/dist-tests/
34
/declarations/
45

5-
# dependencies
6-
/node_modules/
6+
# from scenarios
7+
tmp/
8+
config/optional-features.json
9+
ember-cli-build.cjs
10+
11+
# deps & caches
12+
node_modules/
13+
.eslintcache
14+
.prettiercache
15+
16+
# potentially containing secrets
17+
*.local
718

819
# misc
9-
/.env*
1020
/.pnp*
11-
/.eslintcache
1221
/coverage/
1322
/npm-debug.log*
1423
/testem.log
1524
/yarn-error.log
1625

17-
# broccoli-debug
18-
/DEBUG/
19-
2026
# IDE
2127
/.idea/
2228
/*.iml

.prettierrc.js renamed to .prettierrc.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
'use strict';
2-
3-
module.exports = {
1+
export default {
42
plugins: ['prettier-plugin-ember-template-tag'],
53
overrides: [
64
{

.template-lintrc.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

.template-lintrc.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default {
2+
extends: 'recommended',
3+
checkHbsTemplateLiterals: false,
4+
};

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
## Running tests
1515

1616
- `pnpm test` – Runs the test suite on the current Ember version
17-
- `pnpm test:ember --server` – Runs the test suite in "watch mode"
18-
- `pnpm test:ember-compatibility` – Runs the test suite against multiple Ember versions
1917

20-
## Running the dummy application
18+
## Running the demo application
2119

2220
- `pnpm start`
23-
- Visit the dummy application at [http://localhost:4200](http://localhost:4200).
21+
- Visit the demo application at [http://localhost:5173](http://localhost:5173).
2422

25-
For more information on using ember-cli, visit [https://cli.emberjs.com/release/](https://cli.emberjs.com/release/).
23+
## Building
24+
25+
- `pnpm build` – Builds the addon for publishing

addon-main.cjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
'use strict';
2+
3+
const { addonV1Shim } = require('@embroider/addon-shim');
4+
module.exports = addonV1Shim(__dirname);

app/components/drag-sort-item.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/components/drag-sort-list.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)