diff --git a/.babelrc b/.babelrc new file mode 100644 index 00000000..3c078e9f --- /dev/null +++ b/.babelrc @@ -0,0 +1,5 @@ +{ + "presets": [ + "es2015" + ] +} diff --git a/README.md b/README.md index d4e77344..afb7443b 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Express & ES6 REST API Boilerplate This is a straightforward boilerplate for building REST APIs with ES6 and Express. -- ES6 support via [babel](https://babeljs.io) +- ES6 support via [babel 6](https://babeljs.io) - REST resources as middleware via [resource-router-middleware](https://github.com/developit/resource-router-middleware) - CORS support via [cors](https://github.com/troygoode/node-cors) - Body Parsing via [body-parser](https://github.com/expressjs/body-parser) diff --git a/index.js b/index.js index 9969ab6e..972c124b 100755 --- a/index.js +++ b/index.js @@ -1,2 +1,2 @@ -require("babel/register"); +require("babel-core/register"); require('./server'); diff --git a/package.json b/package.json index 354c1be0..ab2248dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "express-es6-rest-api", - "version": "0.2.0", + "version": "1.0.0-alpha2", "description": "Starter project for an ES6 RESTful Express API", "main": "index.js", "scripts": { @@ -8,9 +8,14 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Jason Miller ", + "repository": { + "type": "git", + "url": "git://github.com/developit/express-es6-rest-api.git" + }, "license": "Proprietary", "dependencies": { - "babel": "^5.8.21", + "babel-core": "^6.0.13", + "babel-preset-es2015": "^6.0.13", "body-parser": "^1.13.3", "compression": "^1.5.2", "cors": "^2.7.1",