Skip to content

Commit

Permalink
Split into multiple source files
Browse files Browse the repository at this point in the history
  • Loading branch information
jscheid committed Jul 12, 2021
1 parent 026cb1b commit 72e0823
Show file tree
Hide file tree
Showing 11 changed files with 613 additions and 496 deletions.
13 changes: 10 additions & 3 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
version: "2"
engines:
eslint:
enabled: true
eslint:
enabled: true
ratings:
paths: ["webpack-subresource-integrity/index.ts"]
paths:
[
"webpack-subresource-integrity/index.ts",
"webpack-subresource-integrity/plugin.ts",
"webpack-subresource-integrity/util.ts",
"webpack-subresource-integrity/reporter.ts",
"webpack-subresource-integrity/types.ts",
]
exclude_patterns:
- "webpack-subresource-integrity/*.js"
- "wsi-test-helper/*.js"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test:integration": "cd webpack-subresource-integrity && yarn tsc && yarn jest --detectOpenHandles --forceExit integration.test.ts",
"build": "cd webpack-subresource-integrity && yarn tsc && yarn api-extractor run --local --verbose",
"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/index.js\" && USE_COVERAGE=1 yarn jest --coverage --detectOpenHandles --forceExit && cp coverage/coverage-final.json ../.nyc_output/ && cd ../nyc-apply-source-map && yarn node ./index.js ../.nyc_output ../.nyc_merged",
"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\" && USE_COVERAGE=1 yarn jest --coverage --detectOpenHandles --forceExit --verbose && cp 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 && yarn nyc report --reporter=html --reporter=text-summary --cwd=.. --temp-dir=.nyc_merged --report-dir=coverage",
"cover:lcov": "cd webpack-subresource-integrity && yarn nyc report --reporter=text-lcov --cwd=.. > 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",
Expand Down
8 changes: 8 additions & 0 deletions webpack-subresource-integrity/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
/index.js
/index.js.map
/plugin.js
/plugin.js.map
/reporter.js
/reporter.js.map
/util.js
/util.js.map
/types.js
/types.js.map
11 changes: 3 additions & 8 deletions webpack-subresource-integrity/.nycrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
{
"all": true,
"include": [
"index.js"
],
"exclude": [
"*.test.js",
".pnp.js"
],
"include": ["index.js", "plugin.js", "reporter.js", "util.js", "types.js"],
"exclude": ["*.test.js", ".pnp.js"],
"cache": false,
"source-map": false,
"sourceMap": false
}
}
Loading

0 comments on commit 72e0823

Please sign in to comment.