forked from scaljeri/oh-my-mock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
135 lines (135 loc) · 6.56 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
"name": "oh-my-mock",
"version": "3.3.14",
"scripts": {
"ng": "ng",
"ci": "yarn install --frozen-lockfile",
"start": "ng serve",
"start:server": "ts-node-dev -P ./tsconfig-server.json ./test-site/server.ts",
"cleanup": "rimraf dist",
"replace-tokens": "node ./scripts/token-replace.js",
"cp:manifest": "ts-node -P ./tsconfig-server.json ./scripts/copy-manifest.ts",
"ci:build": "yarn cleanup && (yarn run-s ci:build:* & yarn cp:manifest; wait) && yarn replace-tokens",
"ci:build:ng": "NG_PERSISTENT_BUILD_CACHE=1 ng build --configuration production --output-hashing none --base-href=index.html",
"ci:build:content": "webpack -c ./webpack-prd.config.js --entry ./src/content/index.ts --output-filename content.js",
"ci:build:injected": "webpack -c ./webpack-prd.config.js --entry ./src/injected/index.ts --output-filename oh-my-mock.js",
"ci:build:background": "webpack -c ./webpack-prd.config.js --entry ./src/background/background.ts --output-filename background.js",
"ci:build:splash": "cp src/splash-screen.html ./dist",
"minify:content": "uglifyjs ./dist/content.js -c -m -o dist/content.min.js && mv ./dist/content.min.js ./dist/content.js ",
"minify:injected": "uglifyjs ./dist/oh-my-mock.js -c -m -o dist/oh-my-mock.min.js && mv ./dist/oh-my-mock.min.js ./dist/oh-my-mock.js ",
"build": "yarn cleanup && (run-s build:* cp:manifest; wait) && yarn replace-tokens && yarn ci:build:splash",
"build:ng": "NG_PERSISTENT_BUILD_CACHE=1 ng build --configuration dev --base-href=/oh-my-mock/index.html",
"oldbuild:ng": "NG_PERSISTENT_BUILD_CACHE=1 ng build --configuration dev --base-href=index.html",
"build:stats": "yarn build:ng --stats-json",
"build:content": "webpack -c ./webpack.config.js --entry ./src/content/index.ts --output-filename content.js",
"build:injected": "mkdir -p stats && webpack -c ./webpack.config.js --entry ./src/injected/index.ts --output-filename oh-my-mock.js --json > ./stats/injected.json",
"build:early-injected": "mkdir -p stats && webpack -c ./webpack.config.js --entry ./src/early-inject/index.ts --output-filename early-inject.js --json > ./stats/early-injected.json && yarn remove-comments",
"build:sandbox": "mkdir -p stats && webpack -c ./webpack.config.js --entry ./src/sandbox/index.ts --output-filename sandbox.js --json > ./stats/sandbox.json && cp src/sandbox/sandbox.html ./dist/",
"remove-comments": "node ./scripts/remove-comments.js ./dist/early-inject.js ./dist/early-inject-clean.js",
"build:background": "webpack -c ./webpack.config.js --entry ./src/background/background.ts --output-filename background.js",
"analyze": "webpack-bundle-analyzer dist/oh-my-mock/stats.json",
"stats:injected": "webpack-bundle-analyzer stats/injected.json",
"watch": "yarn cleanup & yarn cp:manifest & run-p watch:* start:server",
"watch:custom": "ts-node ./scripts/monitor.ts",
"bundle": "./scripts/make-bundle.sh",
"bundle:zip": "rm -rf dist && yarn build && run-p minify:* && cd dist && zip -r ../oh-my-mock.zip . && cd ..",
"test": "npx jest",
"test:stryker": "stryker run",
"lint": "tsc --project tsconfig.json --noEmit && eslint . --ext js,ts,json --quiet --fix",
"e2e": "npx playwright test --headed --project=chromium",
"e2e:debug": "PWDEBUG=1 yarn e2e",
"e2e:trace": "npx playwright show-trace",
"e2e:update": "npx playwright test --update-snapshots",
"e2e:ci": "npx playwright test",
"chrome:crx": "\"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome\" --pack-extension=./dist",
"crx": "./scripts/build-crx.sh ./dist ./scripts/dummy.pem",
"lib:build": "rimraf dist && tsc --build ./tsconfig-sdk.json && cp lib-package.json ./dist/package.json && cp libs/nodejs-sdk/README.md ./dist",
"lib:release": "yarn lib:build && cp libs/nodejs-sdk/README.md ./dist && cd dist && npm publish --access=public && cd ..",
"csp:hash": "echo -n ${npm_config_code} | openssl sha256 -binary | openssl base64"
},
"private": true,
"dependencies": {
"@angular/animations": "~14.0.2",
"@angular/cdk": "~14.0.2",
"@angular/common": "~14.0.2",
"@angular/compiler": "~14.0.2",
"@angular/core": "~14.0.2",
"@angular/forms": "~14.0.2",
"@angular/material": "~14.0.2",
"@angular/platform-browser": "~14.0.2",
"@angular/platform-browser-dynamic": "~14.0.2",
"@angular/router": "~14.0.2",
"@materia-ui/ngx-monaco-editor": "^6.0.0",
"@ngneat/hot-toast": "^4.1.0",
"@ngneat/overview": "^3.0.4",
"@ngneat/until-destroy": "^9.2.0",
"body-parser": "^1.19.0",
"chokidar": "~3.5.3",
"compare-versions": "^4.1.3",
"content-type-parser": "^1.0.2",
"express": "^4.18.1",
"faker": "^5.5.3",
"jsonpath-plus": "^5.1.0",
"lodash": "^4.17.21",
"mime-types": "^2.1.31",
"monaco-editor": "0.33.0",
"rxjs": "7.5.5",
"sass": "^1.52.3",
"scss-reset": "^1.1.10",
"socket.io": "^4.5.1",
"socket.io-client": "^4.5.1",
"tslib": "^2.4.0",
"zone.js": "~0.11.6"
},
"devDependencies": {
"@angular-devkit/build-angular": "~14.0.2",
"@angular/cli": "^14.0.2",
"@angular/compiler-cli": "14.0.2",
"@ng-apimock/core": "^3.5.0",
"@playwright/test": "^1.22",
"@stryker-mutator/core": "~6.0.2",
"@stryker-mutator/jest-runner": "~6.0.2",
"@stryker-mutator/karma-runner": "~6.0.2",
"@stryker-mutator/typescript-checker": "~6.0.2",
"@types/chrome": "^0.0.190",
"@types/express": "^4.17.12",
"@types/jest": "^28.1.1",
"@types/mime-types": "^2.1.0",
"@types/node": "^16.4.3",
"@types/socket.io": "^3.0.2",
"@types/typescript": "^2.0.0",
"@types/ws": "^8.5.3",
"@typescript-eslint/eslint-plugin": "4.28.0",
"@typescript-eslint/parser": "4.28.0",
"ajv-formats": "^2.1.1",
"browserify": "^17.0.0",
"codelyzer": "6.0.2",
"eslint": "~7.29.0",
"eslint-config-google": "~0.14.0",
"eslint-config-prettier": "~8.5.0",
"eslint-plugin-prettier": "~4.0.0",
"i": "^0.3.7",
"jest": "28.1.1",
"jest-environment-jsdom": "^28.1.1",
"jest-preset-angular": "^12.1.0",
"minifier": "^0.8.1",
"npm": "^8.12.2",
"npm-run-all": "^4.1.5",
"prettier": "2.7.1",
"prettier-eslint": "^15.0.1",
"rimraf": "^3.0.2",
"strip-comments": "^2.0.1",
"stryker-cli": "^1.0.2",
"terser-webpack-plugin": "^5.3.3",
"ts-jest": "^28.0.5",
"ts-loader": "^9.3.0",
"ts-node": "^10.8.1",
"ts-node-dev": "^2.0.0",
"tslint": "~6.1.0",
"typescript": "~4.6.4",
"uglify-js": "^3.16.0",
"webpack": "^5.72.0",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^4.10.0"
}
}