Skip to content

Commit c6ab0a9

Browse files
committed
Cleaning up javascript environment
1 parent 605ed18 commit c6ab0a9

File tree

7 files changed

+249
-1386
lines changed

7 files changed

+249
-1386
lines changed

.babelrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
{
2-
"plugins": ["transform-es2015-modules-commonjs"]
2+
"presets": [
3+
"env"
4+
]
35
}

.flowconfig

Lines changed: 0 additions & 12 deletions
This file was deleted.

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ elixir:
55
otp_release:
66
- 19.0
77
env:
8-
- TRAVIS_NODE_VERSION="6"
8+
- TRAVIS_NODE_VERSION="7"
99
install:
1010
- rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) && source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION
1111
- npm install -g yarn

gulpfile.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

package.json

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"clean": "rm -rf priv/build",
1414
"test": "mocha src/javascript/tests --recursive --compilers js:babel-core/register",
1515
"build:test-app": "mix elixirscript test/app/src/ -f common -o test/app/build/",
16-
"test-app": "yarn run build:test-app && NODE_ENV=test mocha --recursive 'test/app/spec/**/*.spec.js' --compilers js:babel-core/register"
16+
"test-app": "yarn run build:test-app && NODE_ENV=test mocha --recursive 'test/app/spec/**/*.spec.js' --compilers js:babel-register"
1717
},
1818
"repository": {
1919
"type": "git",
@@ -26,25 +26,18 @@
2626
"tailored": "2.4.1"
2727
},
2828
"devDependencies": {
29-
"babel": "^6.5.2",
30-
"babel-core": "^6.7.7",
31-
"babel-plugin-transform-class-properties": "^6.9.1",
32-
"babel-preset-es2015": "^6.6.0",
33-
"babel-preset-es2015-rollup": "^1.1.1",
34-
"babel-preset-react": "^6.5.0",
35-
"babel-preset-stage-0": "^6.5.0",
29+
"babel-core": "^6.24.0",
30+
"babel-register": "^6.24.0",
31+
"babel-preset-env": "^1.3.2",
3632
"chai": "^3.5.0",
3733
"eslint": "^3.15.0",
3834
"eslint-config-airbnb-base": "^11.1.0",
3935
"eslint-plugin-import": "^2.2.0",
40-
"gulp": "^3.9.1",
41-
"gulp-babel": "^6.1.2",
42-
"gulp-sourcemaps": "^2.0.0-alpha",
43-
"mocha": "^2.4.5",
44-
"rollup": "^0.41.4",
36+
"mocha": "^3.2.0",
37+
"rollup": "^0.41.6",
4538
"rollup-plugin-babel": "^2.7.1",
46-
"rollup-plugin-node-resolve": "^2.0.0",
4739
"rollup-plugin-babili": "^2.0.0",
40+
"rollup-plugin-node-resolve": "^2.0.0",
4841
"sinon": "^1.17.7",
4942
"sinon-chai": "^2.8.0"
5043
}

test/app/spec/setup.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ const sinon = require('sinon');
22
const chai = require('chai');
33
const sinonChai = require('sinon-chai');
44

5-
before(function () {
5+
before(function() {
66
chai.use(sinonChai);
77
});
88

9-
beforeEach(function () {
9+
beforeEach(function() {
1010
this.sandbox = sinon.sandbox.create();
1111
});
1212

13-
afterEach(function () {
13+
afterEach(function() {
1414
this.sandbox.restore();
1515
});

0 commit comments

Comments
 (0)