From 4effe9e6ee3a72d8e4f5531d1e64daa903b6b3c0 Mon Sep 17 00:00:00 2001 From: Dennis Chan Date: Fri, 29 Mar 2024 14:13:05 -0400 Subject: [PATCH] Add missing dot files --- .editorconfig | 19 ++++++++++ .ember-cli | 7 ++++ .eslintignore | 13 +++++++ .eslintrc.js | 63 ++++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 78 ++++++++++++++++++++++++++++++++++++++++ .gitignore | 32 ++++++++++------- .npmignore | 33 +++++++++++++++++ .stylelintignore | 8 +++++ .stylelintrc.js | 5 +++ .template-lintrc.js | 5 +++ .watchmanconfig | 3 ++ 11 files changed, 253 insertions(+), 13 deletions(-) create mode 100644 .editorconfig create mode 100644 .ember-cli create mode 100644 .eslintignore create mode 100644 .eslintrc.js create mode 100644 .github/workflows/ci.yml create mode 100644 .npmignore create mode 100644 .stylelintignore create mode 100644 .stylelintrc.js create mode 100644 .template-lintrc.js create mode 100644 .watchmanconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..c35a002 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +# EditorConfig helps developers define and maintain consistent +# coding styles between different editors and IDEs +# editorconfig.org + +root = true + +[*] +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +indent_style = space +indent_size = 2 + +[*.hbs] +insert_final_newline = false + +[*.{diff,md}] +trim_trailing_whitespace = false diff --git a/.ember-cli b/.ember-cli new file mode 100644 index 0000000..465c405 --- /dev/null +++ b/.ember-cli @@ -0,0 +1,7 @@ +{ + /** + 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. + */ + "isTypeScriptProject": false +} diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..9385391 --- /dev/null +++ b/.eslintignore @@ -0,0 +1,13 @@ +# unconventional js +/blueprints/*/files/ + +# compiled output +/dist/ + +# misc +/coverage/ +!.* +.*/ + +# ember-try +/.node_modules.ember-try/ diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 0000000..1275341 --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,63 @@ +'use strict'; + +module.exports = { + root: true, + parser: '@babel/eslint-parser', + parserOptions: { + ecmaVersion: 'latest', + sourceType: 'module', + requireConfigFile: false, + babelOptions: { + plugins: [ + ['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }], + ], + }, + }, + plugins: ['ember'], + extends: [ + 'eslint:recommended', + 'plugin:ember/recommended', + ], + env: { + browser: true, + }, + rules: { + 'ember/no-global-jquery': 0, + 'ember/no-jquery': 0 + }, + globals: { + '$': 'readonly' + }, + overrides: [ + // node files + { + files: [ + './.eslintrc.js', + './.stylelintrc.js', + './.template-lintrc.js', + './ember-cli-build.js', + './index.js', + './testem.js', + './blueprints/*/index.js', + './config/**/*.js', + './tests/dummy/config/**/*.js', + ], + parserOptions: { + sourceType: 'script', + }, + env: { + browser: false, + node: true, + }, + extends: ['plugin:n/recommended'], + }, + { + // test files + files: ['tests/**/*-test.{js,ts}'], + extends: ['plugin:qunit/recommended'], + rules: { + 'qunit/require-expect': 0 + } + }, + ], +}; diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7159c53 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,78 @@ +name: CI + +on: + push: + branches: + - main + - master + pull_request: {} + +concurrency: + group: ci-${{ github.head_ref || github.ref }} + cancel-in-progress: true + +jobs: + test: + name: "Tests" + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - uses: actions/checkout@v4 + - name: Install Node + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: yarn + - name: Install Dependencies + run: yarn install --frozen-lockfile + - name: Lint + run: yarn lint + - name: Run Tests + run: yarn test:ember + + floating: + name: "Floating Dependencies" + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18 + cache: yarn + - name: Install Dependencies + run: yarn install --no-lockfile + - name: Run Tests + run: yarn test:ember + + try-scenarios: + name: ${{ matrix.try-scenario }} + runs-on: ubuntu-latest + needs: "test" + timeout-minutes: 10 + + strategy: + fail-fast: false + matrix: + try-scenario: + - ember-lts-4.8 + - ember-lts-4.12 + - ember-release + - ember-beta + - ember-canary + - embroider-safe + - embroider-optimized + + steps: + - uses: actions/checkout@v4 + - name: Install Node + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: yarn + - name: Install Dependencies + run: yarn install --frozen-lockfile + - name: Run Tests + run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }} diff --git a/.gitignore b/.gitignore index 404f40f..71ad79d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,19 +1,25 @@ -# See http://help.github.com/ignore-files/ for more about ignoring files. - # compiled output -/dist -/tmp +/dist/ +/declarations/ # dependencies -/node_modules -/bower_components +/node_modules/ # misc -/.sass-cache -/connect.lock -/coverage/* -/libpeerconnection.log -npm-debug.log -testem.log +/.env* +/.pnp* +/.eslintcache +/coverage/ +/npm-debug.log* +/testem.log +/yarn-error.log + +# ember-try +/.node_modules.ember-try/ +/npm-shrinkwrap.json.ember-try +/package.json.ember-try +/package-lock.json.ember-try +/yarn.lock.ember-try -.idea +# broccoli-debug +/DEBUG/ diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..c82c547 --- /dev/null +++ b/.npmignore @@ -0,0 +1,33 @@ +# compiled output +/dist/ +/tmp/ + +# misc +/.editorconfig +/.ember-cli +/.env* +/.eslintcache +/.eslintignore +/.eslintrc.js +/.git/ +/.github/ +/.gitignore +/.stylelintignore +/.stylelintrc.js +/.template-lintrc.js +/.travis.yml +/.watchmanconfig +/CONTRIBUTING.md +/ember-cli-build.js +/testem.js +/tests/ +/yarn-error.log +/yarn.lock +.gitkeep + +# ember-try +/.node_modules.ember-try/ +/npm-shrinkwrap.json.ember-try +/package.json.ember-try +/package-lock.json.ember-try +/yarn.lock.ember-try diff --git a/.stylelintignore b/.stylelintignore new file mode 100644 index 0000000..a0cf71c --- /dev/null +++ b/.stylelintignore @@ -0,0 +1,8 @@ +# unconventional files +/blueprints/*/files/ + +# compiled output +/dist/ + +# addons +/.node_modules.ember-try/ diff --git a/.stylelintrc.js b/.stylelintrc.js new file mode 100644 index 0000000..56a013c --- /dev/null +++ b/.stylelintrc.js @@ -0,0 +1,5 @@ +'use strict'; + +module.exports = { + extends: ['stylelint-config-standard'], +}; diff --git a/.template-lintrc.js b/.template-lintrc.js new file mode 100644 index 0000000..f35f61c --- /dev/null +++ b/.template-lintrc.js @@ -0,0 +1,5 @@ +'use strict'; + +module.exports = { + extends: 'recommended', +}; diff --git a/.watchmanconfig b/.watchmanconfig new file mode 100644 index 0000000..f9c3d8f --- /dev/null +++ b/.watchmanconfig @@ -0,0 +1,3 @@ +{ + "ignore_dirs": ["dist"] +}