mirror of
https://github.com/sasjs/server.git
synced 2025-12-10 19:34:34 +00:00
99 lines
3.0 KiB
JSON
99 lines
3.0 KiB
JSON
{
|
|
"name": "api",
|
|
"version": "0.0.2",
|
|
"description": "Api of SASjs server",
|
|
"main": "./src/server.ts",
|
|
"scripts": {
|
|
"initial": "npm run swagger && npm run compileSysInit && npm run copySASjsCore",
|
|
"prestart": "npm run initial",
|
|
"prebuild": "npm run initial",
|
|
"start": "nodemon ./src/server.ts",
|
|
"build": "rimraf build && tsc",
|
|
"postbuild": "npm run copy:files",
|
|
"swagger": "tsoa spec",
|
|
"prepare": "[ -d .git ] && git config core.hooksPath ./.git-hooks || true",
|
|
"test": "mkdir -p tmp && mkdir -p ../web/build && jest --silent --coverage",
|
|
"lint:fix": "npx prettier --write \"src/**/*.{ts,tsx,js,jsx,html,css,sass,less,yml,md,graphql}\"",
|
|
"lint": "npx prettier --check \"src/**/*.{ts,tsx,js,jsx,html,css,sass,less,yml,md,graphql}\"",
|
|
"exe": "npm run build && pkg .",
|
|
"copy:files": "npm run public:copy && npm run sasjsbuild:copy && npm run sasjscore:copy && npm run web:copy",
|
|
"public:copy": "cp -r ./public/ ./build/public/",
|
|
"sasjsbuild:copy": "cp -r ./sasjsbuild/ ./build/sasjsbuild/",
|
|
"sasjscore:copy": "cp -r ./sasjscore/ ./build/sasjscore/",
|
|
"web:copy": "rimraf web && mkdir web && cp -r ../web/build/ ./web/build/",
|
|
"compileSysInit": "ts-node ./scripts/compileSysInit.ts",
|
|
"copySASjsCore": "ts-node ./scripts/copySASjsCore.ts"
|
|
},
|
|
"bin": "./build/src/server.js",
|
|
"pkg": {
|
|
"assets": [
|
|
"./build/public/**/*",
|
|
"./build/sasjsbuild/**/*",
|
|
"./build/sasjscore/**/*",
|
|
"./web/build/**/*"
|
|
],
|
|
"targets": [
|
|
"node16-linux-x64",
|
|
"node16-macos-x64",
|
|
"node16-win-x64"
|
|
],
|
|
"outputPath": "../executables"
|
|
},
|
|
"release": {
|
|
"branches": [
|
|
"main"
|
|
]
|
|
},
|
|
"author": "4GL Ltd",
|
|
"dependencies": {
|
|
"@sasjs/core": "4.9.0",
|
|
"@sasjs/utils": "2.36.2",
|
|
"bcryptjs": "^2.4.3",
|
|
"cookie-parser": "^1.4.6",
|
|
"cors": "^2.8.5",
|
|
"express": "^4.17.1",
|
|
"joi": "^17.4.2",
|
|
"jsonwebtoken": "^8.5.1",
|
|
"mongoose": "^6.0.12",
|
|
"mongoose-sequence": "^5.3.1",
|
|
"morgan": "^1.10.0",
|
|
"multer": "^1.4.3",
|
|
"swagger-ui-express": "^4.1.6"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bcryptjs": "^2.4.2",
|
|
"@types/cookie-parser": "^1.4.2",
|
|
"@types/cors": "^2.8.12",
|
|
"@types/express": "^4.17.12",
|
|
"@types/jest": "^26.0.24",
|
|
"@types/jsonwebtoken": "^8.5.5",
|
|
"@types/mongoose-sequence": "^3.0.6",
|
|
"@types/morgan": "^1.9.3",
|
|
"@types/multer": "^1.4.7",
|
|
"@types/node": "^15.12.2",
|
|
"@types/supertest": "^2.0.11",
|
|
"@types/swagger-ui-express": "^4.1.3",
|
|
"dotenv": "^10.0.0",
|
|
"http-headers-validation": "^0.0.1",
|
|
"jest": "^27.0.6",
|
|
"mongodb-memory-server": "^8.0.0",
|
|
"nodemon": "^2.0.7",
|
|
"pkg": "5.5.2",
|
|
"prettier": "^2.3.1",
|
|
"rimraf": "^3.0.2",
|
|
"supertest": "^6.1.3",
|
|
"ts-jest": "^27.0.3",
|
|
"ts-node": "^10.0.0",
|
|
"tsoa": "3.14.1",
|
|
"typescript": "^4.3.2"
|
|
},
|
|
"configuration": {
|
|
"sasPath": "/opt/sas/sas9/SASHome/SASFoundation/9.4/sas"
|
|
},
|
|
"nodemonConfig": {
|
|
"ignore": [
|
|
"tmp/appStreamConfig.json"
|
|
]
|
|
}
|
|
}
|