Skip to content

Commit

Permalink
updated to babel 6
Browse files Browse the repository at this point in the history
  • Loading branch information
jozanza committed Jul 8, 2016
1 parent 649bef0 commit e0113de
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 12 deletions.
11 changes: 11 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"presets": ["es2015", "stage-0"],
"plugins": [
"syntax-async-generators",
"transform-regenerator",
["transform-runtime", {
"polyfill": false,
"regenerator": true
}]
]
}
3 changes: 1 addition & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@
"quote-props": [2, "as-needed"],
"quotes": [2, "single"],
"semi": [2, "always"],
"space-after-keywords": 2,
"space-return-throw-case": 2,
"keyword-spacing": 2,
"spaced-comment": 0,
"no-var": 2,
"no-unused-vars": 0,
Expand Down
4 changes: 1 addition & 3 deletions mocha.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
'use strict';

// Babel compiler
require('babel/register')({
stage: 0
});
require('babel-core/register');

// Create JSDOM and `document`/`window` globals
var document = global.document = require('jsdom').jsdom(
Expand Down
21 changes: 14 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bem-utils",
"version": "0.2.10",
"version": "0.3.0",
"description": "Sugar for writing BEM-style classNames and CSS",
"author": "Josiah Savary <hello@jsavary.com> (jsavary.com)",
"license": "MIT",
Expand Down Expand Up @@ -40,18 +40,25 @@
"url": "https://github.com/jozanza/bem-utils/issues"
},
"dependencies": {
"babel": "5.8.21",
"babel-runtime": "5.8.20",
"rimraf": "2.4.2"
"babel-runtime": "6.9.2"
},
"devDependencies": {
"babel-eslint": "5.0.4",
"babel-cli": "6.9.0",
"babel-core": "6.9.1",
"babel-eslint": "6.0.4",
"babel-plugin-syntax-async-generators": "6.8.0",
"babel-plugin-transform-regenerator": "6.9.0",
"babel-plugin-transform-runtime": "6.9.0",
"babel-preset-es2015": "6.9.0",
"babel-preset-stage-0": "6.5.0",
"babel-register": "6.9.0",
"chai": "3.2.0",
"coveralls": "^2.11.4",
"eslint": "1.10.3",
"eslint": "2.11.1",
"istanbul": "0.3.18",
"jsdom": "6.1.0",
"mocha": "2.2.5",
"pre-commit": "1.1.1"
"pre-commit": "1.1.1",
"rimraf": "2.4.2"
}
}

0 comments on commit e0113de

Please sign in to comment.