Skip to content

Commit a0d6957

Browse files
committed
Add babel.js compilation steps/dependencies to package.json.
1 parent 3271b45 commit a0d6957

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

package.json

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "parse-server",
33
"version": "2.0.7",
44
"description": "An express module providing a Parse-compatible API server",
5-
"main": "index.js",
5+
"main": "lib/index.js",
66
"repository": {
77
"type": "git",
88
"url": "https://github.com/ParsePlatform/parse-server"
@@ -11,6 +11,7 @@
1111
"dependencies": {
1212
"apn": "^1.7.5",
1313
"aws-sdk": "~2.2.33",
14+
"babel-runtime": "^6.5.0",
1415
"bcrypt-nodejs": "0.0.3",
1516
"body-parser": "^1.14.2",
1617
"deepcopy": "^0.6.1",
@@ -19,23 +20,29 @@
1920
"mime": "^1.3.4",
2021
"mongodb": "~2.1.0",
2122
"multer": "^1.1.0",
23+
"node-gcm": "^0.14.0",
2224
"parse": "^1.7.0",
2325
"randomstring": "^1.1.3",
24-
"node-gcm": "^0.14.0",
2526
"request": "^2.65.0"
2627
},
2728
"devDependencies": {
29+
"babel-cli": "^6.5.1",
30+
"babel-core": "^6.5.1",
31+
"babel-istanbul": "^0.6.0",
32+
"babel-preset-es2015": "^6.5.0",
33+
"babel-register": "^6.5.1",
2834
"codecov": "^1.0.1",
2935
"deep-diff": "^0.3.3",
30-
"istanbul": "^0.4.2",
3136
"jasmine": "^2.3.2",
3237
"mongodb-runner": "^3.1.15"
3338
},
3439
"scripts": {
40+
"build": "./node_modules/.bin/babel src/ -d lib/",
3541
"pretest": "MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} mongodb-runner start",
36-
"test": "NODE_ENV=test TESTING=1 ./node_modules/.bin/istanbul cover --include-all-sources -x **/spec/** ./node_modules/.bin/jasmine",
42+
"test": "NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node ./node_modules/.bin/babel-istanbul cover -x **/spec/** ./node_modules/.bin/jasmine",
3743
"posttest": "mongodb-runner stop",
38-
"start": "./bin/parse-server"
44+
"start": "./bin/parse-server",
45+
"prepublish": "npm run build"
3946
},
4047
"engines": {
4148
"node": ">=4.1"

0 commit comments

Comments
 (0)