opt-cc/package.json

16 lines
606 B
JSON

{
"name": "opt-cc",
"version": "1.0.0",
"license": "MIT",
"private": true,
"scripts": {
"start": "npm run deploy-static-prod && node ./api/server.js",
"dev": "npm run deploy-static && nodemon ./api/server.js",
"deploy-static": "cd ./static && ng build && ln -s ../api/resource/ ../public/resource",
"deploy-static-prod": "cd ./static && ng build --env=prod && ln -s ../api/resource/ ../public/resource",
"postinstall": "npm install --prefix ./static && npm install --prefix ./api",
"mongodb": "mongod --dbpath ./mongodb-data",
"test": "npm test --prefix ./api"
}
}