-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
38 lines (38 loc) · 1.24 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
{
"scripts": {
"build": "npm run donodemodulesstuff && npm run copyfilestodist && npm run removetemp",
"donodemodulesstuff": "npm run copypackagejsontotemp && npm run installproductionnodemodules",
"copypackagejsontotemp": "shx mkdir -p ./temp && shx cp ./package.json ./temp/package.json",
"installproductionnodemodules": "cd ./temp && npm install --production",
"copyfilestodist": "shx cp -r ./src/web/ ./dist && shx cp -r ./temp/node_modules/ ./dist/node_modules/ && shx rm -rf ./dist/web",
"removetemp": "shx rm -rf ./temp",
"test": "cross-env NODE_ENV=test jest --testTimeout=10000 --detectOpenHandles"
},
"jest": {
"testEnvironment": "node",
"coveragePathIgnorePatterns": [
"/node_modules/"
],
"reporters": [
"default",
[
"jest-junit",
{
"outputDirectory": "./jest_unit_test_results",
"outputName": "yay-for-junit-formatted-test-results.xml",
"suiteName": "I really love testing"
}
]
]
},
"dependencies": {
"express": "latest"
},
"devDependencies": {
"cross-env": "latest",
"jest": "latest",
"jest-junit": "latest",
"shx": "latest",
"supertest": "latest"
}
}