Skip to content

Commit

Permalink
Convert to V2 addon
Browse files Browse the repository at this point in the history
  • Loading branch information
bwbuchanan committed Jan 21, 2022
1 parent 112f76e commit 1e97ef1
Show file tree
Hide file tree
Showing 70 changed files with 6,436 additions and 3,193 deletions.
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
/.eslintcache

# dependencies
/bower_components/
/node_modules/
node_modules/

# misc
/.sass-cache
Expand All @@ -19,6 +18,5 @@
/yarn-error.log

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
.node_modules.ember-try/
/package.json.ember-try
6 changes: 3 additions & 3 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';

module.exports = {
singleQuote: true,
trailingComma: 'es5',
printWidth: 100,
singleQuote: true
};
23 changes: 11 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: node_js
node_js:
# we recommend testing addons with the same minimum supported node version as Ember CLI
# so that your addon works for all apps
- "6"
- '12'

addons:
chrome: stable
Expand All @@ -24,22 +24,21 @@ jobs:
include:
# runs linting and tests with current locked deps

- stage: "Tests"
name: "Linting"
node_js: 8
- stage: 'Tests'
name: 'Linting'
script:
- yarn lint:js
- yarn lint

- stage: "Tests"
name: "Tests"
- stage: 'Tests'
name: 'Tests'
script:
- yarn test
- yarn workspace test-app run test:ember

# we recommend new addons test the current and previous LTS
# as well as latest stable release (bonus points to beta/canary)
- stage: "Additional Tests"
env: EMBER_TRY_SCENARIO=ember-lts-2.16
- env: EMBER_TRY_SCENARIO=ember-lts-2.18
- stage: 'Additional Tests'
env: EMBER_TRY_SCENARIO=ember-lts-3.24
- env: EMBER_TRY_SCENARIO=ember-lts-3.28
- env: EMBER_TRY_SCENARIO=ember-release
- env: EMBER_TRY_SCENARIO=ember-beta
- env: EMBER_TRY_SCENARIO=ember-canary
Expand All @@ -49,7 +48,7 @@ install:
- yarn install --ignore-engines

script:
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO
- cd packages/test-app && yarn ember try:one $EMBER_TRY_SCENARIO

deploy:
provider: npm
Expand Down
84 changes: 0 additions & 84 deletions config/ember-try.js

This file was deleted.

5 changes: 0 additions & 5 deletions config/environment.js

This file was deleted.

18 changes: 0 additions & 18 deletions ember-cli-build.js

This file was deleted.

114 changes: 17 additions & 97 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,104 +1,24 @@
{
"name": "ember-load-initializers",
"version": "2.1.2",
"description": "A tiny add-on to autoload your initializer files in ember-cli.",
"keywords": [
"ember-addon"
"workspaces": [
"packages/*"
],
"homepage": "https://github.com/ember-cli/ember-load-initializers#readme",
"bugs": {
"url": "https://github.com/ember-cli/ember-load-initializers/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ember-cli/ember-load-initializers.git"
},
"license": "MIT",
"contributors": [
"Stefan Penner <stefan.penner@gmail.com>",
"Mattia Gheda <ghedamat@gmail.com>",
"Manuel Wiedenmann <manuel@funkensturm.de>",
"Alex Navasardyan <alex@dockyard.com>"
],
"main": "index.js",
"directories": {
"doc": "doc",
"test": "tests"
},
"private": true,
"scripts": {
"build": "ember build",
"lint:js": "eslint --cache --ext js,ts .",
"prepublishOnly": "ember ts:precompile",
"postpublish": "ember ts:clean",
"start": "ember serve",
"test": "ember test",
"test:all": "ember try:each"
},
"dependencies": {
"ember-cli-babel": "^7.13.0",
"ember-cli-typescript": "^2.0.2"
"prepare": "yarn workspace ember-load-initializers run prepare",
"start": "npm-run-all --parallel start:*",
"start:addon": "yarn workspace ember-load-initializers run start",
"start:test-app": "yarn workspace test-app run start",
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*",
"lint:addon": "yarn workspace ember-load-initializers run lint",
"lint:test-app": "yarn workspace test-app run lint",
"lint:fix": "npm-run-all --aggregate-output --continue-on-error --parallel lint:fix:*",
"lint:fix:addon": "yarn workspace ember-load-initializers run lint:fix",
"lint:fix:test-app": "yarn workspace test-app run lint:fix",
"test": "npm-run-all --aggregate-output --continue-on-error --parallel test:*",
"test:addon": "yarn workspace ember-load-initializers run test",
"test:test-app": "yarn workspace test-app run test"
},
"devDependencies": {
"@ember/optional-features": "^0.7.0",
"@types/ember": "^3.1.1",
"@types/ember-qunit": "^3.4.8",
"@types/ember-resolver": "^5.0.7",
"@types/ember-test-helpers": "^1.0.6",
"@types/ember-testing-helpers": "^0.0.4",
"@types/ember__engine": "^3.0.4",
"@types/ember__test-helpers": "^0.7.8",
"@types/qunit": "^2.9.1",
"@types/rsvp": "^4.0.3",
"@typescript-eslint/eslint-plugin": "^2.8.0",
"@typescript-eslint/parser": "^2.9.0",
"ember-cli": "~3.9.0",
"ember-cli-dependency-checker": "^3.2.0",
"ember-cli-htmlbars": "^5.1.0",
"ember-cli-htmlbars-inline-precompile": "^2.0.0",
"ember-cli-inject-live-reload": "^2.0.2",
"ember-cli-typescript-blueprints": "^3.0.0",
"ember-disable-prototype-extensions": "^1.1.3",
"ember-maybe-import-regenerator": "^0.1.6",
"ember-qunit": "^4.6.0",
"ember-resolver": "^8.0.0",
"ember-source": "~3.18.1",
"ember-source-channel-url": "^1.1.0",
"ember-try": "^1.3.0",
"eslint": "5",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-ember": "^7.6.0",
"eslint-plugin-node": "^9.2.0",
"eslint-plugin-prettier": "^3.1.1",
"lerna-changelog": "^1.0.1",
"loader.js": "^4.7.0",
"prettier": "^1.18.2",
"release-it": "^12.4.1",
"release-it-lerna-changelog": "^1.0.3",
"typescript": "^3.8.3"
},
"resolutions": {
"**/engine.io": "~3.3.0"
},
"engines": {
"node": "6.* || 8.* || >= 10.*"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"ember-addon": {
"configPath": "tests/dummy/config"
},
"release-it": {
"plugins": {
"release-it-lerna-changelog": {
"infile": "CHANGELOG.md"
}
},
"git": {
"tagName": "v${version}"
},
"github": {
"release": true
}
"npm-run-all": "^4.1.5"
}
}
23 changes: 23 additions & 0 deletions packages/ember-load-initializers/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# unconventional js
/blueprints/*/files/
/vendor/

# compiled output
/dist/
/tmp/

# dependencies
/node_modules/

# misc
/coverage/
!.*
.*/
.eslintcache

# ember-try
/.node_modules.ember-try/
/npm-shrinkwrap.json.ember-try
/package.json.ember-try
/package-lock.json.ember-try
/yarn.lock.ember-try
66 changes: 66 additions & 0 deletions packages/ember-load-initializers/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
'use strict';

module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
ecmaFeatures: {
legacyDecorators: true,
},
},
plugins: ['ember'],
extends: [
'eslint:recommended',
'plugin:ember/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
env: {
browser: true,
},
rules: {
'no-unused-vars': 'off',
'no-undef': 'off',
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
},
overrides: [
// node files
{
files: [
'./addon-main.js',
'./.eslintrc.js',
'./.prettierrc.js',
'./.template-lintrc.js',
'./ember-cli-build.js',
'./testem.js',
'./blueprints/*/index.js',
'./config/**/*.js',
'./lib/*/index.js',
'./server/**/*.js',
],
parserOptions: {
sourceType: 'script',
},
env: {
browser: false,
node: true,
},
plugins: ['node'],
extends: ['plugin:node/recommended'],
rules: {
// this can be removed once the following is fixed
// https://github.com/mysticatea/eslint-plugin-node/issues/77
'node/no-unpublished-require': 'off',

'@typescript-eslint/no-var-requires': 'off',
},
},
{
// test files
files: ['tests/**/*-test.{js,ts}'],
extends: ['plugin:qunit/recommended'],
},
],
};

0 comments on commit 1e97ef1

Please sign in to comment.