Skip to content

Commit 8d2f431

Browse files
authored
Merge pull request #36 from ember-cli-deploy/chore/update-ember-cli
Update ember-cli and dependencies
2 parents 2a3c3a2 + 67b492e commit 8d2f431

39 files changed

+5377
-297
lines changed

.bowerrc

-4
This file was deleted.

.eslintrc.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
root: true,
3+
parserOptions: {
4+
ecmaVersion: 6,
5+
sourceType: 'module'
6+
},
7+
extends: 'eslint:recommended',
8+
env: {
9+
browser: true
10+
},
11+
rules: {
12+
}
13+
};

.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# See http://help.github.com/ignore-files/ for more about ignoring files.
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
22

33
# compiled output
44
/dist
@@ -13,5 +13,5 @@
1313
/connect.lock
1414
/coverage/*
1515
/libpeerconnection.log
16-
npm-debug.log
16+
npm-debug.log*
1717
testem.log

.jshintrc

-32
This file was deleted.

.npmignore

+12-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
bower_components/
2-
tests/
3-
tmp/
4-
1+
/bower_components
2+
/config/ember-try.js
3+
/dist
4+
/tests
5+
/tmp
6+
**/.gitkeep
57
.bowerrc
68
.editorconfig
79
.ember-cli
8-
.travis.yml
9-
.npmignore
10-
**/.gitkeep
11-
bower.json
12-
Brocfile.js
13-
testem.json
10+
.gitignore
11+
.eslintrc.js
12+
.watchmanconfig
13+
circle.yml
14+
ember-cli-build.js
15+
testem.js

.travis.yml

+6-9
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
---
22
language: node_js
33
node_js:
4-
- "0.12"
4+
- "6"
55

66
sudo: false
77

88
cache:
9-
directories:
10-
- node_modules
9+
yarn: true
1110

1211
before_install:
13-
- "npm config set spin false"
14-
- "npm install -g npm@^2"
12+
- curl -o- -L https://yarnpkg.com/install.sh | bash
13+
- export PATH=$HOME/.yarn/bin:$PATH
1514

1615
install:
17-
- npm install -g bower
18-
- npm install
19-
- bower install
16+
- yarn install --no-lockfile
2017

2118
script:
22-
- npm test
19+
- yarn test

.watchmanconfig

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"ignore_dirs": ["tmp", "dist"]
3+
}

Brocfile.js

-21
This file was deleted.

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,12 @@ The path to the directory you'd like the project to be built in to.
6060

6161
None
6262

63-
## Running Tests
63+
## Tests
6464

65-
- `npm test`
65+
* yarn test
66+
67+
## Why `ember test` doesn't work
68+
69+
Since this is a node-only ember-cli addon, we use mocha for testing and this package does not include many files and devDependencies which are part of ember-cli's typical `ember test` processes.
6670

6771
[1]: https://ember-cli-deploy.github.io/ember-cli-deploy/plugins/ "Plugin Documentation"

addon/.gitkeep

Whitespace-only changes.

app/.gitkeep

Whitespace-only changes.

bin/prepare-release

-8
This file was deleted.

bower.json

-16
This file was deleted.

circle.yml

-10
This file was deleted.

config/environment.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-env node */
12
'use strict';
23

34
module.exports = function(/* environment, appConfig */) {

ember-cli-build.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/* eslint-env node */
2+
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
3+
4+
module.exports = function(defaults) {
5+
var app = new EmberAddon(defaults, {
6+
// Add options here
7+
});
8+
9+
/*
10+
This build file specifies the options for the dummy test app of this
11+
addon, located in `/tests/dummy`
12+
This build file does *not* influence how the addon or the app using it
13+
behave. You most likely want to be modifying `./index.js` or app's build file
14+
*/
15+
16+
return app.toTree();
17+
};

index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
/* jshint node: true */
1+
/*eslint-env node*/
22
'use strict';
33

4-
var Promise = require('ember-cli/lib/ext/promise');
4+
var RSVP = require('rsvp');
55
var glob = require('glob');
66
var DeployPluginBase = require('ember-cli-deploy-plugin');
77
var path = require('path');
@@ -17,7 +17,7 @@ module.exports = {
1717
outputPath: 'tmp' + path.sep + 'deploy-dist'
1818
},
1919

20-
build: function(context) {
20+
build: function(/* context */) {
2121
var self = this;
2222
var outputPath = this.readConfig('outputPath');
2323
var buildEnv = this.readConfig('environment');
@@ -46,7 +46,7 @@ module.exports = {
4646
})
4747
.catch(function(error) {
4848
self.log('build failed', { color: 'red' });
49-
return Promise.reject(error);
49+
return RSVP.reject(error);
5050
});
5151
},
5252
_logSuccess: function(outputPath) {
@@ -60,7 +60,7 @@ module.exports = {
6060
}
6161
self.log('build ok', { verbose: true });
6262

63-
return Promise.resolve(files);
63+
return RSVP.resolve(files);
6464
}
6565
});
6666
return new DeployPlugin();

package.json

+20-29
Original file line numberDiff line numberDiff line change
@@ -7,49 +7,40 @@
77
"test": "tests"
88
},
99
"scripts": {
10-
"start": "ember server",
11-
"build": "ember build",
12-
"test": "node tests/runner.js"
10+
"test": "node tests/runner.js && ./node_modules/.bin/eslint index.js tests/**/*.js"
1311
},
1412
"repository": "https://github.com/ember-cli-deploy/ember-cli-deploy-build",
1513
"engines": {
16-
"node": ">= 0.10.0"
14+
"node": ">= 4"
1715
},
1816
"author": "Aaron Chambers and the ember-cli-deploy team",
1917
"license": "MIT",
18+
"dependencies": {
19+
"chalk": "^1.0.0",
20+
"ember-cli-deploy-plugin": "^0.2.1",
21+
"glob": "^7.1.1",
22+
"rsvp": "^3.5.0"
23+
},
2024
"devDependencies": {
21-
"broccoli-asset-rev": "^2.0.2",
22-
"chai": "^2.2.0",
23-
"chai-as-promised": "^5.0.0",
24-
"ember-cli": "0.2.3",
25-
"ember-cli-app-version": "0.3.3",
26-
"ember-cli-content-security-policy": "0.4.0",
27-
"ember-cli-dependency-checker": "0.0.8",
28-
"ember-cli-htmlbars": "0.7.4",
29-
"ember-cli-ic-ajax": "0.1.1",
30-
"ember-cli-inject-live-reload": "^1.3.0",
31-
"ember-cli-qunit": "0.3.10",
32-
"ember-cli-release": "1.0.0-beta.1",
33-
"ember-cli-uglify": "1.0.1",
34-
"ember-data": "1.0.0-beta.16.1",
35-
"ember-disable-prototype-extensions": "^1.0.0",
36-
"ember-export-application-global": "^1.0.2",
37-
"ember-try": "0.0.4",
25+
"chai-as-promised": "^6.0.0",
26+
"chai": "^3.5.0",
27+
"ember-cli-babel": "^5.2.4",
28+
"ember-cli-htmlbars": "^1.2.0",
29+
"ember-cli-release": "^1.0.0-beta.2",
30+
"ember-cli-shims": "^1.0.2",
31+
"ember-cli": "^2.12.0",
32+
"ember-source": "^2.12.0",
33+
"eslint": "^3.18.0",
3834
"github": "^0.2.4",
39-
"mocha": "^2.2.4",
35+
"glob": "^7.1.1",
36+
"loader.js": "^4.2.3",
37+
"mocha": "^3.2.0",
4038
"multiline": "^1.0.2"
4139
},
4240
"keywords": [
4341
"ember-addon",
4442
"ember-cli-deploy-plugin"
4543
],
46-
"dependencies": {
47-
"chalk": "^1.0.0",
48-
"ember-cli-babel": "^5.0.0",
49-
"ember-cli-deploy-plugin": "^0.2.1",
50-
"glob": "^5.0.5",
51-
"rsvp": "^3.0.18"
52-
},
5344
"ember-addon": {
5445
"configPath": "tests/dummy/config"
5546
}

testem.json

-11
This file was deleted.

tests/.eslintrc.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
globals: {
3+
"describe": true,
4+
"beforeEach": true,
5+
"it": true
6+
},
7+
env: {
8+
embertest: true
9+
}
10+
};

0 commit comments

Comments
 (0)