Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert to V2 addon #303

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
};
25 changes: 12 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ language: node_js
node_js:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bwbuchanan maybe just delete this file and provide GitHub actions config instead?

# 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,32 +24,31 @@ 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
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery
- env: EMBER_TRY_SCENARIO=ember-lts-with-jquery

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