Skip to content

Commit

Permalink
Upgrade Babel from 5 to 6
Browse files Browse the repository at this point in the history
Add babel-cli

Upgrade Node version in Circle as it iss crazy old
  • Loading branch information
jameshopkins committed May 11, 2016
1 parent 055fab9 commit 71f2bc9
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"stage": 0
"presets": [ "es2015", "stage-0" ]
}
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist
lib
coverage
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
npm-debug.log
dist
coverage
7 changes: 7 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
machine:
node:
version: 5.5.0

dependencies:
pre:
- npm install -g npm
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@
"immutable": "3.7.6"
},
"devDependencies": {
"babel": "^5.8.20",
"babel-core": "^5.8.24",
"babel-eslint": "^4.1.1",
"babel-loader": "^5.3.2",
"babel-cli": "^6.8.0",
"babel-core": "^6.8.0",
"babel-eslint": "^6.0.4",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.6.0",
"babel-preset-stage-0": "^6.5.0",
"chai": "^3.2.0",
"eslint": "^1.4.1",
"eslint-config-airbnb": "0.0.8",
Expand All @@ -38,7 +40,7 @@
"postinstall": "if [ -z \"$CI\" ]; then chmod +x hooks/*; cd .git/hooks && ln -sf ../../hooks/* .; fi",
"lint": "node_modules/.bin/eslint .",
"compile": "babel src --out-dir dist",
"test": "node_modules/.bin/mocha --compilers js:babel/register",
"test": "node_modules/.bin/mocha --compilers js:babel-core/register",
"prepublish": "npm run compile"
}
}
2 changes: 1 addition & 1 deletion test/cursor.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ describe('Cursor', () => {
const data = Immutable.Map({a: 1, b: 2, c: 3});
const cursor = Cursor.from(data);
expect(Immutable.is(
cursor.map((x: number) => x * x),
cursor.map(x => x * x),
Immutable.Map({a: 1, b: 4, c: 9})
)).to.be.true;
});
Expand Down

0 comments on commit 71f2bc9

Please sign in to comment.