Skip to content

Commit d416d16

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

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

package.json

Lines changed: 12 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,31 @@
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",
37+
"jasmine-babel": "^2.2.0",
3238
"mongodb-runner": "^3.1.15"
3339
},
3440
"scripts": {
41+
"build": "./node_modules/.bin/babel src/ -d lib/",
3542
"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",
43+
"test": "NODE_ENV=test TESTING=1 ./node_modules/.bin/istanbul cover -x **/spec/** ./node_modules/.bin/jasmine",
3744
"posttest": "mongodb-runner stop",
38-
"start": "./bin/parse-server"
45+
"start": "./bin/parse-server",
46+
"prepublish": "npm run build"
3947
},
4048
"engines": {
4149
"node": ">=4.1"

0 commit comments

Comments
 (0)