Skip to content

Commit d7b4068

Browse files
committed
Update based on latest ember-cli
1 parent 60bfb14 commit d7b4068

14 files changed

Lines changed: 1498 additions & 326 deletions

File tree

.eslintignore

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
# unconventional js
2-
/blueprints/*
3-
/fastboot-tests/fastboot-1.0-test.js
2+
/blueprints/*/files/
43
/vendor/
54

65
# compiled output
76
/dist/
87
/tmp/
98

9+
# dependencies
10+
/bower_components/
11+
1012
# misc
1113
/coverage/
1214

1315
# ember-try
1416
/.node_modules.ember-try/
17+
/bower.json.ember-try
18+
/package.json.ember-try

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module.exports = {
2020
// node files
2121
{
2222
files: [
23+
'.template-lintrc.js',
2324
'ember-cli-build.js',
2425
'index.js',
2526
'testem.js',

.npmignore

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,28 @@
1-
/bower_components
1+
# compiled output
2+
/dist/
3+
/tmp/
4+
5+
# dependencies
6+
/bower_components/
7+
8+
# misc
9+
/.bowerrc
10+
/.editorconfig
11+
/.ember-cli
12+
/.eslintignore
13+
/.eslintrc.js
14+
/.gitignore
15+
/.watchmanconfig
16+
/.travis.yml
17+
/bower.json
218
/config/ember-try.js
3-
/dist
4-
/tests
5-
/tmp
6-
**/.gitkeep
7-
.bowerrc
8-
.editorconfig
9-
.ember-cli
10-
.eslintrc.js
11-
.gitignore
12-
.watchmanconfig
13-
.travis.yml
14-
bower.json
15-
ember-cli-build.js
16-
testem.js
17-
yarn.lock
19+
/ember-cli-build.js
20+
/testem.js
21+
/tests/
22+
/yarn.lock
23+
.gitkeep
1824

1925
# ember-try
20-
.node_modules.ember-try/
21-
bower.json.ember-try
22-
package.json.ember-try
26+
/.node_modules.ember-try/
27+
/bower.json.ember-try
28+
/package.json.ember-try

.template-lintrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
'use strict';
2+
3+
module.exports = {
4+
extends: 'recommended',
5+
rules: {
6+
'no-html-comments': false
7+
}
8+
};

.travis.yml

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,38 @@ env:
1818
global:
1919
# See https://git.io/vdao3 for details.
2020
- JOBS=1
21-
matrix:
21+
22+
jobs:
23+
fail_fast: true
24+
allow_failures:
25+
- env: EMBER_TRY_SCENARIO=ember-canary
26+
27+
include:
28+
# runs linting and tests with current locked deps
29+
30+
- stage: "Tests"
31+
name: "Tests"
32+
install:
33+
- yarn install --non-interactive
34+
script:
35+
- yarn lint:hbs
36+
- yarn lint:js
37+
- yarn test
38+
39+
- name: "Floating Dependencies"
40+
script:
41+
- yarn test
42+
2243
# we recommend new addons test the current and previous LTS
2344
# as well as latest stable release (bonus points to beta/canary)
24-
- EMBER_TRY_SCENARIO=ember-lts-2.12
25-
- EMBER_TRY_SCENARIO=ember-lts-2.16
26-
- EMBER_TRY_SCENARIO=ember-lts-2.18
27-
- EMBER_TRY_SCENARIO=ember-release
28-
- EMBER_TRY_SCENARIO=ember-canary
29-
- EMBER_TRY_SCENARIO=ember-default
30-
- EMBER_TRY_SCENARIO=fastboot
31-
32-
matrix:
33-
fast_finish: true
34-
allow_failures:
45+
- stage: "Additional Tests"
46+
env: EMBER_TRY_SCENARIO=ember-lts-2.16
47+
- env: EMBER_TRY_SCENARIO=ember-lts-2.18
48+
- env: EMBER_TRY_SCENARIO=ember-release
3549
- env: EMBER_TRY_SCENARIO=ember-beta
3650
- env: EMBER_TRY_SCENARIO=ember-canary
51+
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery
52+
- env: EMBER_TRY_SCENARIO=fastboot
3753

3854
before_install:
3955
- curl -o- -L https://yarnpkg.com/install.sh | bash
@@ -43,7 +59,4 @@ install:
4359
- yarn install --no-lockfile --non-interactive
4460

4561
script:
46-
- yarn lint:js
47-
# Usually, it's ok to finish the test scenario without reverting
48-
# to the addon's original dependency state, skipping "cleanup".
49-
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO --skip-cleanup
62+
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO

config/ember-try.js

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,26 @@ module.exports = function() {
1111
return {
1212
useYarn: true,
1313
scenarios: [
14-
{
15-
name: 'ember-lts-2.12',
16-
npm: {
17-
devDependencies: {
18-
'ember-source': '~2.12.0'
19-
}
20-
}
21-
},
2214
{
2315
name: 'ember-lts-2.16',
16+
env: {
17+
EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true }),
18+
},
2419
npm: {
2520
devDependencies: {
21+
'@ember/jquery': '^0.5.1',
2622
'ember-source': '~2.16.0'
2723
}
2824
}
2925
},
3026
{
3127
name: 'ember-lts-2.18',
28+
env: {
29+
EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true }),
30+
},
3231
npm: {
3332
devDependencies: {
33+
'@ember/jquery': '^0.5.1',
3434
'ember-source': '~2.18.0'
3535
}
3636
}
@@ -66,13 +66,24 @@ module.exports = function() {
6666
}
6767
},
6868
{
69-
name: 'fastboot',
70-
command: 'ember fastboot:test',
69+
name: 'ember-default-with-jquery',
70+
env: {
71+
EMBER_OPTIONAL_FEATURES: JSON.stringify({
72+
'jquery-integration': true
73+
})
74+
},
7175
npm: {
7276
devDependencies: {
73-
'ember-source': null
77+
'@ember/jquery': '^0.5.1'
7478
}
7579
}
80+
},
81+
{
82+
name: 'fastboot',
83+
command: 'ember fastboot:test',
84+
npm: {
85+
devDependencies: {}
86+
}
7687
}
7788
]
7889
};

fastboot-tests/fastboot-1.0-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
const expect = require('chai').expect;
55
const setupTest = require('ember-fastboot-addon-tests').setupTest;
66

7-
describe('FastBoot 1.0', function() {
7+
describe('FastBoot 2.0', function() {
88
setupTest('fastboot', {
9-
emberCliFastbootVersion: '1.0.0-rc.1'
9+
emberCliFastbootVersion: '2.0.0'
1010
});
1111

1212
it('index page', function() {

fastboot-tests/fixtures/fastboot/app/templates/head.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
<!-- here. The 'model' available in this template can be populated by-->
33
<!-- setting values on the 'head-data' service. -->
44

5-
<meta property="og:title" content={{model.title}} />
5+
<meta property="og:title" content={{model.title}}>

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
22

33
module.exports = {
4-
name: 'ember-cli-head'
4+
name: require('./package').name
55
};

package.json

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,55 +7,61 @@
77
"doc": "doc",
88
"test": "tests"
99
},
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/ronco/ember-cli-head.git"
13+
},
14+
"license": "MIT",
15+
"author": "",
1016
"scripts": {
1117
"build": "ember build",
18+
"lint:hbs": "ember-template-lint .",
1219
"lint:js": "eslint .",
1320
"start": "ember serve",
14-
"test": "ember try:each"
21+
"test": "ember test",
22+
"test:all": "ember try:each"
1523
},
16-
"repository": {
17-
"type": "git",
18-
"url": "https://github.com/ronco/ember-cli-head.git"
24+
"keywords": [
25+
"ember-addon",
26+
"meta",
27+
"seo"
28+
],
29+
"dependencies": {
30+
"ember-cli-babel": "^6.16.0",
31+
"ember-cli-htmlbars": "^3.0.0"
1932
},
20-
"author": "",
21-
"license": "MIT",
2233
"devDependencies": {
34+
"@ember/optional-features": "^0.6.3",
2335
"broccoli-asset-rev": "^2.7.0",
2436
"chai": "^4.1.2",
37+
"ember-ajax": "^3.1.0",
2538
"ember-cli": "~3.4.3",
26-
"ember-cli-app-version": "^3.1.3",
27-
"ember-cli-dependency-checker": "^2.1.0",
39+
"ember-cli-dependency-checker": "^3.0.0",
2840
"ember-cli-eslint": "^4.2.3",
29-
"ember-cli-fastboot": "^1.1.1",
30-
"ember-cli-htmlbars-inline-precompile": "^1.0.2",
31-
"ember-cli-inject-live-reload": "^1.7.0",
41+
"ember-cli-fastboot": "^2.0.0",
42+
"ember-cli-htmlbars-inline-precompile": "^1.0.3",
43+
"ember-cli-inject-live-reload": "^1.8.2",
3244
"ember-cli-qunit": "^4.3.2",
33-
"ember-cli-release": "^0.2.9",
34-
"ember-cli-shims": "^1.2.0",
3545
"ember-cli-sri": "^2.1.1",
36-
"ember-cli-uglify": "^2.0.0",
46+
"ember-cli-template-lint": "^1.0.0-beta.1",
47+
"ember-cli-uglify": "^2.1.0",
3748
"ember-disable-prototype-extensions": "^1.1.3",
3849
"ember-export-application-global": "^2.0.0",
3950
"ember-fastboot-addon-tests": "^0.4.0",
4051
"ember-load-initializers": "^1.1.0",
4152
"ember-maybe-import-regenerator": "^0.1.6",
42-
"ember-resolver": "^4.5.0",
43-
"ember-source": "^3.4.0",
53+
"ember-resolver": "^5.0.1",
54+
"ember-source": "~3.4.0",
4455
"ember-source-channel-url": "^1.1.0",
45-
"ember-try": "^0.2.23",
56+
"ember-try": "^1.0.0",
57+
"ember-welcome-page": "^3.2.0",
4658
"eslint-plugin-ember": "^5.2.0",
4759
"eslint-plugin-node": "^7.0.1",
48-
"loader.js": "^4.6.0"
49-
},
50-
"keywords": [
51-
"ember-addon"
52-
],
53-
"dependencies": {
54-
"ember-cli-babel": "^6.11.0",
55-
"ember-cli-htmlbars": "^2.0.3"
60+
"loader.js": "^4.7.0",
61+
"qunit-dom": "^0.7.1"
5662
},
5763
"engines": {
58-
"node": ">= 6"
64+
"node": "6.* || 8.* || >= 10.*"
5965
},
6066
"ember-addon": {
6167
"configPath": "tests/dummy/config"

0 commit comments

Comments
 (0)