-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
72 lines (72 loc) · 2.28 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
71
72
{
"name": "code-runner-api",
"description": "Code runner API server for non JS code challenges, e.g. Python, Rust, etc.",
"version": "1.0.0",
"main": "build/app.js",
"private": true,
"author": "Pairwise Team",
"scripts": {
"prepare": "yarn gcp-build",
"gcp-build": "yarn build",
"build": "rimraf build && tsc",
"dev": "yarn build && node build/app.js",
"start": "node build/app.js",
"watch": "nodemon --watch 'src/**/*.ts' --exec 'ts-node' --files src/app.ts",
"prettier": "prettier --list-different './src/**/*.{ts,tsx,json}'",
"prettier:fix": "prettier --write './src/**/*.{ts,tsx,json}'",
"format": "yarn prettier:fix",
"tsc": "tsc",
"test:unit": "jest",
"test:watch": "jest --watch",
"test": "yarn format && yarn test:unit",
"test:all": "yarn build && yarn test",
"clear:cache": "rimraf challenge-results-cache",
"docker:base:build": "docker build -t pairwise-code-runner-base -f Dockerfile.Base .",
"docker:build": "docker build -t pairwise-code-runner-api-image .",
"docker:test": "docker run --rm --name pairwise-code-runner-test pairwise-code-runner-api-image yarn test:all",
"docker:run": "docker run -d -it --rm -p 8080:8080 --name pairwise-code-runner-api pairwise-code-runner-api-image"
},
"dependencies": {
"@types/cors": "^2.8.6",
"@types/express": "^4.17.6",
"@types/getenv": "^1.0.0",
"@types/jest": "^26.0.3",
"@types/node": "^14.0.14",
"@types/node-localstorage": "^1.3.0",
"@types/rimraf": "^3.0.0",
"@types/shelljs": "^0.8.8",
"@types/shortid": "^0.0.29",
"cors": "^2.8.5",
"dotenv": "^10.0.0",
"express": "^4.17.1",
"getenv": "^1.0.0",
"jest": "^26.1.0",
"jshashes": "^1.0.8",
"node-localstorage": "^2.2.1",
"prettier": "^2.0.5",
"recursive-copy": "^2.0.13",
"rimraf": "^3.0.2",
"shelljs": "^0.8.4",
"shortid": "^2.2.16",
"ts-jest": "^26.1.1",
"ts-node": "^8.10.2",
"typescript": "^3.9.5"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".test.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"setupFiles": [
"<rootDir>/test/setup.ts"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}