-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
17 lines (17 loc) · 758 Bytes
/
package.json
File metadata and controls
17 lines (17 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
"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",
"start": "node ./dist/server.js"
},
"dependencies": {
"express": "latest"
},
"devDependencies": {
"shx": "latest"
}
}