Update for Babel 6 changes

This commit is contained in:
Jonathan Cremin 2015-11-22 12:37:09 +00:00
parent fe6e704c74
commit 0be6450250
4 changed files with 62 additions and 1046 deletions

25
.babelrc Normal file
View file

@ -0,0 +1,25 @@
{
"plugins": [
"syntax-jsx",
"transform-react-jsx",
"transform-es2015-arrow-functions",
"transform-es2015-block-scoped-functions",
"transform-es2015-block-scoping",
"transform-es2015-classes",
"transform-es2015-computed-properties",
"transform-es2015-constants",
"transform-es2015-destructuring",
"transform-es2015-for-of",
"transform-es2015-function-name",
"transform-es2015-literals",
"transform-es2015-modules-commonjs",
"transform-es2015-object-super",
"transform-es2015-parameters",
"transform-es2015-shorthand-properties",
"transform-es2015-spread",
"transform-es2015-sticky-regex",
"transform-es2015-template-literals",
"transform-es2015-typeof-symbol",
"transform-es2015-unicode-regex"
]
}

View file

@ -5,7 +5,7 @@ const debug = debuglog('match.audio');
const uristring = process.env.MONGOLAB_URI || process.env.MONGOHQ_URL || 'mongodb://localhost:27017/match-audio';
export default function*() {
export default function* () {
const client = yield MongoClient.connect(uristring);
debug('Successfully connected to Mongodb');
client.matches = client.collection('matches');

View file

@ -5,34 +5,57 @@
"license": "MIT",
"scripts": {
"build": "babel -d public/views views",
"cover": "istanbul cover _mocha -- --require babel/register --require co-mocha test/**/*.js",
"start": "babel-node app.js",
"test": "mocha --require co-mocha --compilers js:babel/register test/**/*.js --timeout=10000",
"cover": "istanbul cover _mocha -- --require babel-core/register --require co-mocha test/**/*.js",
"start": "node -r babel-core/register app.js",
"test": "mocha --require co-mocha --compilers js:babel-core/register test/**/*.js --timeout=10000",
"watch": "parallelshell \"npm run watch-js\" \"npm run watch-server\"",
"watch-js": "babel --modules system -wd public/views views",
"watch-server": "nodemon -x \"babel-node\" -e js,jsx -i public/ app.js"
"watch-server": "nodemon -x \"node -r babel-core/register\" -e js,jsx -i public/ app.js"
},
"engines": {
"node": "^4.2.0",
"node": "^5.1.0",
"npm": "^3.3.0"
},
"dependencies": {
"babel": "~5.8.29",
"bluebird": "~2.10.2",
"babel": "~6.1.18",
"babel-cli": "^6.2.0",
"babel-core": "^6.2.1",
"babel-plugin-syntax-jsx": "^6.1.18",
"babel-plugin-transform-es2015-arrow-functions": "^6.1.18",
"babel-plugin-transform-es2015-block-scoped-functions": "^6.1.18",
"babel-plugin-transform-es2015-block-scoping": "^6.1.18",
"babel-plugin-transform-es2015-classes": "^6.2.2",
"babel-plugin-transform-es2015-computed-properties": "^6.1.18",
"babel-plugin-transform-es2015-constants": "^6.1.4",
"babel-plugin-transform-es2015-destructuring": "^6.1.18",
"babel-plugin-transform-es2015-for-of": "^6.1.18",
"babel-plugin-transform-es2015-function-name": "^6.1.18",
"babel-plugin-transform-es2015-literals": "^6.1.18",
"babel-plugin-transform-es2015-modules-commonjs": "^6.2.0",
"babel-plugin-transform-es2015-object-super": "^6.1.18",
"babel-plugin-transform-es2015-parameters": "^6.1.18",
"babel-plugin-transform-es2015-shorthand-properties": "^6.1.18",
"babel-plugin-transform-es2015-spread": "^6.1.18",
"babel-plugin-transform-es2015-sticky-regex": "^6.1.18",
"babel-plugin-transform-es2015-template-literals": "^6.1.18",
"babel-plugin-transform-es2015-typeof-symbol": "^6.1.18",
"babel-plugin-transform-es2015-unicode-regex": "^6.1.18",
"babel-plugin-transform-react-jsx": "^6.2.0",
"bluebird": "~2.0.7",
"co": "~4.6.0",
"debug": "~2.2.0",
"jspm": "~0.16.13",
"koa": "~1.1.1",
"koa-bodyparser": "~2.0.0",
"koa": "~1.1.2",
"koa-bodyparser": "~2.0.1",
"koa-compress": "~1.0.8",
"koa-favicon": "~1.2.0",
"koa-file-server": "~2.3.1",
"koa-logger": "~1.3.0",
"koa-route": "~2.4.0",
"koa-route": "~2.4.2",
"moment": "~2.10.3",
"mongodb-promisified": "~1.0.2",
"node-uuid": "~1.4.2",
"playmusic": "~2.0.3",
"playmusic": "~2.1.0",
"rdio": "^3.1.0",
"react": "~0.13.3",
"react-google-analytics": "~0.2.0",
@ -43,8 +66,8 @@
},
"devDependencies": {
"co-mocha": "~1.1.0",
"eslint": "~1.7.3",
"eslint-plugin-react": "~3.6.3",
"eslint": "~1.10.1",
"eslint-plugin-react": "~3.10.0",
"istanbul": "^0.4.0",
"mocha": "~2.3.0",
"nodemon": "~1.8.0",

File diff suppressed because it is too large Load diff