From 8814e2eacbe47a1acb96fb42104a194407b092d6 Mon Sep 17 00:00:00 2001 From: Carlos Alcaide Corvo Date: Thu, 17 Apr 2025 13:59:14 -0700 Subject: [PATCH] Ember upgrade for addons/core (#2777) --- addons/core/.ember-cli | 8 --- addons/core/.eslintignore | 13 +--- addons/core/.npmignore | 8 +-- addons/core/.prettierignore | 14 +---- addons/core/.template-lintrc.js | 3 + addons/core/.watchmanconfig | 2 +- addons/core/CONTRIBUTING.md | 24 ++++---- addons/core/README.md | 3 + .../core/addon/components/doc-link/index.hbs | 2 +- addons/core/package.json | 44 ++++++------- .../tests/dummy/config/ember-cli-update.json | 2 +- addons/core/tests/dummy/config/ember-try.js | 8 +-- addons/core/tests/helpers/index.js | 2 +- ui/desktop/.gitignore | 7 --- yarn.lock | 61 ++++++++++++------- 15 files changed, 93 insertions(+), 108 deletions(-) diff --git a/addons/core/.ember-cli b/addons/core/.ember-cli index 8c1812cff..465c4050d 100644 --- a/addons/core/.ember-cli +++ b/addons/core/.ember-cli @@ -1,12 +1,4 @@ { - /** - Ember CLI sends analytics information by default. The data is completely - anonymous, but there are times when you might want to disable this behavior. - - Setting `disableAnalytics` to true will prevent any data from being sent. - */ - "disableAnalytics": false, - /** Setting `isTypeScriptProject` to true will force the blueprint generators to generate TypeScript rather than JavaScript by default, when a TypeScript version of a given blueprint is available. diff --git a/addons/core/.eslintignore b/addons/core/.eslintignore index d474a40bd..768fab33b 100644 --- a/addons/core/.eslintignore +++ b/addons/core/.eslintignore @@ -1,25 +1,14 @@ # unconventional js /blueprints/*/files/ -/vendor/ # compiled output +/declarations/ /dist/ -/tmp/ - -# dependencies -/bower_components/ -/node_modules/ # misc /coverage/ !.* .*/ -.eslintcache # ember-try /.node_modules.ember-try/ -/bower.json.ember-try -/npm-shrinkwrap.json.ember-try -/package.json.ember-try -/package-lock.json.ember-try -/yarn.lock.ember-try diff --git a/addons/core/.npmignore b/addons/core/.npmignore index 38a2b0863..071798902 100644 --- a/addons/core/.npmignore +++ b/addons/core/.npmignore @@ -2,11 +2,7 @@ /dist/ /tmp/ -# dependencies -/bower_components/ - # misc -/.bowerrc /.editorconfig /.ember-cli /.env* @@ -21,18 +17,18 @@ /.template-lintrc.js /.travis.yml /.watchmanconfig -/bower.json /CONTRIBUTING.md /ember-cli-build.js /testem.js /tests/ +/tsconfig.declarations.json +/tsconfig.json /yarn-error.log /yarn.lock .gitkeep # ember-try /.node_modules.ember-try/ -/bower.json.ember-try /npm-shrinkwrap.json.ember-try /package.json.ember-try /package-lock.json.ember-try diff --git a/addons/core/.prettierignore b/addons/core/.prettierignore index 4178fd571..9385391f2 100644 --- a/addons/core/.prettierignore +++ b/addons/core/.prettierignore @@ -1,25 +1,13 @@ # unconventional js /blueprints/*/files/ -/vendor/ # compiled output /dist/ -/tmp/ - -# dependencies -/bower_components/ -/node_modules/ # misc /coverage/ !.* -.eslintcache -.lint-todo/ +.*/ # ember-try /.node_modules.ember-try/ -/bower.json.ember-try -/npm-shrinkwrap.json.ember-try -/package.json.ember-try -/package-lock.json.ember-try -/yarn.lock.ember-try diff --git a/addons/core/.template-lintrc.js b/addons/core/.template-lintrc.js index 1d70e56bd..4d5c2e8e0 100644 --- a/addons/core/.template-lintrc.js +++ b/addons/core/.template-lintrc.js @@ -12,5 +12,8 @@ module.exports = { 'no-curly-component-invocation': { allow: ['app-name', 'company-name', 'company-copyright'], }, + 'no-implicit-this': { + allow: ['app-name', 'company-name', 'company-copyright'], + }, }, }; diff --git a/addons/core/.watchmanconfig b/addons/core/.watchmanconfig index e7834e3e4..f9c3d8f84 100644 --- a/addons/core/.watchmanconfig +++ b/addons/core/.watchmanconfig @@ -1,3 +1,3 @@ { - "ignore_dirs": ["tmp", "dist"] + "ignore_dirs": ["dist"] } diff --git a/addons/core/CONTRIBUTING.md b/addons/core/CONTRIBUTING.md index 7491f6c86..c1992162d 100644 --- a/addons/core/CONTRIBUTING.md +++ b/addons/core/CONTRIBUTING.md @@ -2,25 +2,27 @@ ## Installation -* `git clone ` -* `cd core` -* `yarn install` +- `git clone ` +- `cd core` +- `yarn install` ## Linting -* `yarn lint:hbs` -* `yarn lint:js` -* `yarn lint:js --fix` +- `yarn lint:hbs` +- `yarn lint:js` +- `yarn lint:js --fix` +- `yarn lint` +- `yarn lint:fix` ## Running tests -* `ember test` – Runs the test suite on the current Ember version -* `ember test --server` – Runs the test suite in "watch mode" -* `ember try:each` – Runs the test suite against multiple Ember versions +- `yarn test` – Runs the test suite on the current Ember version +- `yarn test:ember --server` – Runs the test suite in "watch mode" +- `yarn test:ember-compatibility` – Runs the test suite against multiple Ember versions ## Running the dummy application -* `ember serve` -* Visit the dummy application at [http://localhost:4200](http://localhost:4200). +- `yarn start` +- Visit the dummy application at [http://localhost:4200](http://localhost:4200). For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/). diff --git a/addons/core/README.md b/addons/core/README.md index 6d7aab5fa..829db93dd 100644 --- a/addons/core/README.md +++ b/addons/core/README.md @@ -30,6 +30,7 @@ helpers. Add this addon to an Ember application's `devDependencies` as: `"core": "workspace:*"`, for applications included in this monorepo. + ## Installation See monorepo README for installation instructions. @@ -180,10 +181,12 @@ Before submitting your work, be sure to run auto-formatters * `yarn start` * Visit the dummy application at [http://localhost:4200](http://localhost:4200). + ## Contributing See monorepo README for more contribution instructions. + ### Building ToC To autogenerate a ToC (table of contents) for this README, diff --git a/addons/core/addon/components/doc-link/index.hbs b/addons/core/addon/components/doc-link/index.hbs index 504188f67..8ea58edae 100644 --- a/addons/core/addon/components/doc-link/index.hbs +++ b/addons/core/addon/components/doc-link/index.hbs @@ -5,7 +5,7 @@