28 lines
1.5 KiB
JSON
28 lines
1.5 KiB
JSON
{
|
|
"name": "opt-cc",
|
|
"version": "1.8.5",
|
|
"author": "Florian Hartwich <hardi@noarch.de>",
|
|
"private": true,
|
|
"scripts": {
|
|
"start": "npm run deploy-static-prod && npm start --prefix ./server",
|
|
"dev": "npm run deploy-static && npm run dev --prefix ./server",
|
|
"pre-deploy-clean": "rm -f ./public/resource",
|
|
"deploy-static": "npm run pre-deploy-clean && npm run build --prefix=static && npm run deploy-static:link-resource && npm run deploy-static:api-docs",
|
|
"deploy-static:prod": "npm run pre-deploy-clean && npm run build:prod --prefix=static && npm run deploy-static:link-resource && npm run deploy-static:api-docs",
|
|
"deploy-static:link-resource": "ln -s ../server/resource/ public/resource",
|
|
"deploy-static:api-docs": "npm run api:docs --prefix=server",
|
|
"postinstall": "npm install --prefix ./static && npm install --prefix ./server",
|
|
"lint": "npm run lint --prefix=server && npm run lint --prefix=static",
|
|
"test": "npm test --prefix ./server",
|
|
"e2e": "npm run deploy-static && concurrently \"npm run start-test --prefix ./server\" \"wait-on -t 60000 http://localhost:3001/ && npm run e2e --prefix ./static\" --success first --kill-others",
|
|
"start-e2e": "npm run deploy-static && npm run start-test --prefix ./server",
|
|
"test-e2e": "npm run e2e --prefix ./static",
|
|
"test-api": "npm run api:test-docs --prefix ./server"
|
|
},
|
|
"dependencies": {},
|
|
"devDependencies": {
|
|
"concurrently": "^3.4.0",
|
|
"wait-on": "^2.0.2"
|
|
}
|
|
}
|