58 lines
2.0 KiB
JSON
58 lines
2.0 KiB
JSON
{
|
|
"name": "opt-cc-server",
|
|
"licence": "CC BY-SA 4.0",
|
|
"description": "HTTP Server and RESTful API for Operation Pandora Trigger Command Center",
|
|
"main": "server.js",
|
|
"author": "Florian Hartwich <hardi@noarch.de>",
|
|
"private": true,
|
|
"scripts": {
|
|
"start": "DEBUG='cc:*' NODE_ENV=production node server.js",
|
|
"dev": "DEBUG='cc:*' NODE_ENV=dev nodemon server.js",
|
|
"eslint": "$(npm bin)/eslint",
|
|
"lint": "eslint '**/*.js'",
|
|
"test": "mocha --exit --require ./test/config/spec_helper.js",
|
|
"start-test": "DEBUG='cc:*' NODE_ENV=unitTest node server.js",
|
|
"start-api-test": "rm -rf ./apib/dredd/data/tmp-resource && cp -r ./apib/dredd/data/resource ./apib/dredd/data/tmp-resource && DEBUG='cc:*' NODE_ENV=dreddTest node server.js",
|
|
"api:compile-docs": "$(npm bin)/hercule apib/dev-doc.apib -o apib/documentation.apib",
|
|
"api:publish-docs": "$(npm bin)/aglio --theme-variables streak --theme-full-width -i ./apib/documentation.apib -o ../public/api-docs.html",
|
|
"api:test-docs": "npm run api:docs && $(npm bin)/dredd",
|
|
"api:docs": "npm run api:compile-docs && npm run api:publish-docs"
|
|
},
|
|
"dependencies": {
|
|
"async": "^2.5.0",
|
|
"bcryptjs": "^2.4.3",
|
|
"body-parser": "^1.18.3",
|
|
"buffer-image-size": "^0.6.4",
|
|
"cors": "^2.8.4",
|
|
"cron": "^1.3.0",
|
|
"debug": "^3.1.0",
|
|
"express": "^4.16.2",
|
|
"imagemin": "^5.2.2",
|
|
"imagemin-pngquant": "^5.0.0",
|
|
"jimp": "^0.6.0",
|
|
"jsonwebtoken": "^7.4.3",
|
|
"lodash": "^4.17.4",
|
|
"mkdirp": "^0.5.1",
|
|
"mongoose": "^5.0.3",
|
|
"morgan": "^1.9.1",
|
|
"multer": "^1.3.0",
|
|
"node-html-parser": "^1.1.10",
|
|
"node-sha1": "^1.0.1",
|
|
"q": "^1.5.0",
|
|
"serve-favicon": "^2.5.0",
|
|
"supports-color": "^5.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"aglio": "^2.3.0",
|
|
"chai": "^3.5.0",
|
|
"chai-http": "^3.0.0",
|
|
"dredd": "^5.1.5",
|
|
"eslint": "^4.18.2",
|
|
"eslint-config-google": "^0.9.1",
|
|
"hercule": "^4.1.1",
|
|
"mocha": "^5.2.0",
|
|
"mongodb-memory-server": "^1.7.3",
|
|
"nodemon": "^1.14.12"
|
|
}
|
|
}
|