forked from dxfrontier/cds-ts-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
70 lines (70 loc) · 2.08 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"name": "cds-ts-samples",
"version": "1.0.0",
"description": "A simple CAP project.",
"repository": "<Add your repository here>",
"license": "UNLICENSED",
"private": true,
"dependencies": {
"@dxfrontier/cds-ts-dispatcher": "^2.0.13",
"@dxfrontier/cds-ts-repository": "^1.0.17",
"@sap/cds": "^7.9.0",
"@sap/xssec": "^3.6.1",
"express": "^4.19.2",
"passport": "^0.7.0"
},
"devDependencies": {
"@cap-js/cds-typer": "^0.20.2",
"@cap-js/sqlite": "^1.7.0",
"@types/node": "^20.12.10",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard-with-typescript": "^43.0.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.1.1",
"npm-run-all": "^4.1.5",
"prettier": "3.2.5",
"rimraf": "^5.0.5",
"typescript": "^5.4.5"
},
"scripts": {
"start": "cds-ts watch",
"eslint:message": "echo 'ESLint started ...'",
"eslint": "npx eslint .",
"eslint:fix": "npx eslint . --fix",
"prettier:message": "echo 'Prettier started ...'",
"prettier": "npx prettier . --check",
"prettier:fix": "npx prettier . --write",
"check": "run-s eslint:message eslint prettier:message prettier",
"fix": "run-s eslint:message eslint:fix prettier:message prettier:fix",
"build:cds": "echo 'STEP 1 : Build CDS' && cds build --production",
"build:ts": "echo 'STEP 2 : Transpile TS => JS' && tsc",
"build:srv:clean:ts": "echo 'Step 3: Clean TS files from srv folder' && find gen/srv/srv -type f -name '*.ts' -delete",
"build:production": "run-s build:cds build:ts build:srv:clean:ts"
},
"imports": {
"#cds-models/*": "./@cds-models/*/index.js"
},
"cds": {
"requires": {
"auth": {
"kind": "basic",
"users": {
"manager": {
"roles": [
"Manager"
]
},
"user": {
"roles": [
"User"
]
}
}
}
}
}
}