forked from waysact/webpack-subresource-integrity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
43 lines (43 loc) · 2.92 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
{
"private": true,
"workspaces": [
"webpack-subresource-integrity",
"wsi-test-helper",
"nyc-apply-source-map",
"examples/*"
],
"resolutions": {
"webpack-subresource-integrity": "portal:webpack-subresource-integrity",
"wsi-test-helper": "portal:wsi-test-helper"
},
"scripts": {
"check": "yarn lint && yarn test:jest && yarn test:smoke",
"lint": "yarn eslint .",
"test:jest": "(cd wsi-test-helper && yarn tsc) && (cd webpack-subresource-integrity && yarn tsc && yarn jest --detectOpenHandles --forceExit)",
"test:unit": "cd webpack-subresource-integrity && yarn tsc && yarn jest --detectOpenHandles --forceExit unit.test.ts",
"test:examples": "cd webpack-subresource-integrity && yarn tsc && yarn jest --detectOpenHandles --forceExit examples.test.ts",
"test:integration": "cd webpack-subresource-integrity && yarn tsc && yarn jest --detectOpenHandles --forceExit integration.test.ts",
"test:smoke": "cd webpack-subresource-integrity && yarn prepublish && yarn pack --filename ../smoke-test/webpack-subresource-integrity.tgz && cd ../smoke-test && rm -rf yarn.lock && touch yarn.lock && YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn && yarn test",
"build": "cd webpack-subresource-integrity && yarn tsc && yarn api-extractor run --local --verbose",
"coverage": "rm -Rf coverage && mkdir coverage && yarn cover:run && yarn cover:report",
"cover:run": "rm -Rf .nyc_output && mkdir -p .nyc_output && rm -Rf .nyc_merged && mkdir -p .nyc_merged && (cd wsi-test-helper && yarn tsc) && cd webpack-subresource-integrity && yarn tsc && yarn nyc instrument --in-place=true \"$PWD/webpack-subresource-integrity/dist/cjs\" && USE_COVERAGE=1 yarn jest --coverage --detectOpenHandles --forceExit --verbose && cp src/coverage/coverage-final.json ../.nyc_output/ && cd ../nyc-apply-source-map && yarn node ./index.js ../.nyc_output ../.nyc_merged",
"cover:report": "cd webpack-subresource-integrity && mkdir -p coverage && yarn nyc report --reporter=html --reporter=text-summary --cwd=.. --temp-dir=.nyc_merged --report-dir=coverage",
"cover:lcov": "cd webpack-subresource-integrity && mkdir -p coverage && yarn nyc report --reporter=text-lcov --cwd=.. --temp-dir=.nyc_merged > coverage/lcov.info",
"codeclimate": "docker run --interactive --tty --rm --env CODECLIMATE_CODE=\"$PWD\" --volume \"$PWD\":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate",
"prettier": "prettier --write '**/*.{js,ts}'"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"eslint": "^8.12.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "2.25.4",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-promise": "6.0.0",
"prettier": "^2.6.1",
"typescript": "^4.3.5"
},
"packageManager": "[email protected]"
}