forked from jfrog/jfrog-cli-platform-services
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json_template
More file actions
45 lines (45 loc) · 1007 Bytes
/
package.json_template
File metadata and controls
45 lines (45 loc) · 1007 Bytes
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
{
"name": "{{.WorkerName}}",
"description": "Run a script on {{.Action}}",
"version": "1.0.0",
"scripts": {
"deploy": "jf worker deploy",
"undeploy": "jf worker rm \"{{.WorkerName}}\""
{{- if .HasTests }},
"test": "jest"
{{- end }}
},
"license": "ISC",
"devDependencies": {
"jfrog-workers": "^0.6.0"
{{- if .HasTests }},
"@golevelup/ts-jest": "^0.4.0",
"@types/jest": "^29.5.12",
"jest": "^29.7.0",
"jest-jasmine2": "^29.7.0",
"ts-jest": "^29.1.2"
{{- end }}
}{{- if .HasTests }},
"jest": {
"moduleFileExtensions": [
"ts",
"js"
],
"rootDir": ".",
"testEnvironment": "node",
"clearMocks": true,
"maxConcurrency": 1,
"testRegex": "\\.spec\\.ts$",
"moduleDirectories": ["node_modules"],
"collectCoverageFrom": [
"**/*.ts"
],
"coverageDirectory": "../coverage",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"testRunner": "jest-jasmine2",
"verbose": true
}
{{- end }}
}