Skip to content

Commit e38c02f

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

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

package.json

Lines changed: 11 additions & 4 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"
@@ -19,23 +19,30 @@
1919
"mime": "^1.3.4",
2020
"mongodb": "~2.1.0",
2121
"multer": "^1.1.0",
22+
"node-gcm": "^0.14.0",
2223
"parse": "^1.7.0",
2324
"randomstring": "^1.1.3",
24-
"node-gcm": "^0.14.0",
2525
"request": "^2.65.0"
2626
},
2727
"devDependencies": {
28+
"babel": "^6.5.1",
29+
"babel-cli": "^6.5.1",
30+
"babel-core": "^6.5.1",
31+
"babel-preset-es2015": "^6.5.0",
32+
"babel-register": "^6.5.1",
2833
"codecov": "^1.0.1",
2934
"deep-diff": "^0.3.3",
3035
"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/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)