-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathpackage.json
executable file
·50 lines (50 loc) · 1.81 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"name": "an-outlandish-mean-app",
"version": "1.0.0",
"description": "Base for a simple nodejs server",
"private": true,
"main": "run.js",
"dependencies": {
"autoprefixer-core": "^3.1.0",
"bcrypt-nodejs": "0.0.3",
"body-parser": "^1.8.1",
"cookie-parser": "^1.3.2",
"db-migrate": "^0.10.0-beta.20",
"db-migrate-pg": "^0.1.11",
"express": "^4.10.4",
"express-session": "^1.9.2",
"jade": "^1.7.0",
"javascript-brunch": ">=1.7.1",
"jshint-brunch": "^1.7.0",
"parallelshell": "^2.0.0",
"pg": "^6.1.0",
"socket.io": "^1.5.1"
},
"devDependencies": {
"jest": "^17.0.3",
"socket.io-client": "^1.6.0"
},
"jest": {
"verbose": true,
"testPathDirs": [
"server/"
],
"setupFiles": [
"server/jest-setup.js"
],
"bail": true
},
"scripts": {
"startclient": "cd ./client && npm run start",
"buildclient": "cd ./client && npm run build",
"clean": "if [ -d ./build ]; then rm -r ./build; fi",
"start": "export NODE_PATH=. && npm run migratedb && nodemon run.js",
"createbuild": "[ -d build ] || mkdir build ",
"build": "export NODE_PATH=. && npm run clean && npm run createbuild && npm run buildclient && mv client/build build/static && cp -R server build/server && mkdir -p build/client/src && cp -r client/src/common build/client/src && cp run.js build",
"test": "export NODE_PATH=. && nodemon ./node_modules/.bin/jest",
"apitest": "export NODE_PATH=. && ./node_modules/.bin/jest --config apitest/functional-jest.json",
"loadtest": "export NODE_PATH=. && ./node_modules/.bin/jest --config apitest/loadtest-jest.json",
"dev": "./node_modules/.bin/parallelshell 'npm run start' 'npm run startclient'",
"migratedb": "db-migrate --config ./server/database.json --migrations-dir ./server/migrations up"
}
}