Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: coverage #1899

Merged
merged 29 commits into from
Nov 3, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
ba5e281
chore: basic configuration of action
rishabh3112 Oct 8, 2020
208e254
chore: add steps
rishabh3112 Oct 8, 2020
8bf435a
chore: add coverage command
rishabh3112 Oct 8, 2020
0e250c5
chore: add install and build
rishabh3112 Oct 8, 2020
95f5087
chore: update name
rishabh3112 Oct 8, 2020
b9bb096
chore: lint and enable comment
rishabh3112 Oct 8, 2020
fe41af0
chore: add nyc
rishabh3112 Oct 9, 2020
1d9cc7e
chore: debug skip typescript test
rishabh3112 Oct 9, 2020
0be664d
chore: comment build till coverage setup
rishabh3112 Oct 9, 2020
ec31b5c
chore: shift to nyc for coverage
rishabh3112 Oct 9, 2020
c623872
chore: full comment
rishabh3112 Oct 9, 2020
8c03c12
chore: enable coverage everywhere
rishabh3112 Oct 9, 2020
1f49701
chore: configure with source maps
rishabh3112 Oct 9, 2020
d04660c
chore: run on all tests
rishabh3112 Oct 9, 2020
ea02f43
chore: enable sourcemap on ci only
rishabh3112 Oct 10, 2020
cf25fe4
chore: rebase
rishabh3112 Oct 18, 2020
79bb097
chore: update build:ci
rishabh3112 Oct 18, 2020
24b4d9d
Merge branch 'master' into feat/coverage
rishabh3112 Nov 1, 2020
5e0a1a1
chore: update lock file
rishabh3112 Nov 1, 2020
7614d54
chore: enable typescript test
rishabh3112 Nov 1, 2020
9949b46
chore: add tsconfig for ts test
rishabh3112 Nov 1, 2020
a60c301
chore: update progress profile
rishabh3112 Nov 1, 2020
c3cdf92
chore: skip ts test
rishabh3112 Nov 1, 2020
b983d68
chore: update progress test
rishabh3112 Nov 2, 2020
1df5aac
chore: lint
rishabh3112 Nov 2, 2020
0a7dee1
chore: lint file
rishabh3112 Nov 3, 2020
d657faf
Merge branch 'master' into feat/coverage
rishabh3112 Nov 3, 2020
a372ac8
chore: use forceExit
rishabh3112 Nov 3, 2020
fa7789c
Merge branch 'feat/coverage' of https://github.com/webpack/webpack-cl…
rishabh3112 Nov 3, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
run: yarn add -W webpack@${{ matrix.webpack-version }}

- name: Build
run: yarn build
run: yarn build:ci

- name: Test and Generate Coverage
run: |
Expand Down Expand Up @@ -118,4 +118,4 @@ jobs:
- name: conventional-changelog-lint-config-cz
# $GITHUB_WORKSPACE is the path to your repository
run: echo "::set-env name=NODE_PATH::$GITHUB_WORKSPACE/node_modules"
- uses: wagoid/commitlint-github-action@v2
- uses: wagoid/commitlint-github-action@v2
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
"bootstrap": "lerna bootstrap",
"clean": "del-cli \"*.tsbuildinfo\" \"packages/**/*.tsbuildinfo\" \"packages/!(webpack-cli)/lib/!(*.tpl)\" \"**/.yo-rc.json\"",
"prebuild": "yarn clean",
"prebuild:ci": "yarn clean && node ./scripts/setupBuild.js",
"build": "tsc --build",
"build:ci": "tsc build",
"watch": "tsc --build --watch",
"commit": "git-cz",
"lint:prettier": "prettier --list-different . \"!**/*.{js,ts}\" ",
Expand Down
10 changes: 10 additions & 0 deletions scripts/setupBuild.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const { writeFileSync, readFileSync } = require('fs');
const { resolve } = require('path');

const tsConfigPath = resolve(__dirname, '../tsconfig.json');
const tsConfigRaw = readFileSync(tsConfigPath);
const tsConfig = JSON.parse(tsConfigRaw);

tsConfig.compilerOptions.sourceMap = true;

writeFileSync(tsConfigPath, JSON.stringify(tsConfig, null, 2));
rishabh3112 marked this conversation as resolved.
Show resolved Hide resolved
2 changes: 0 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"outDir": "lib",
"moduleResolution": "node",
"resolveJsonModule": true,
"sourceMap": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"baseUrl": ".",
Expand All @@ -30,7 +29,6 @@
{ "path": "packages/package-utils" },
{ "path": "packages/serve" },
{ "path": "packages/utils" },
// { "path": "packages/webpack-cli" },
{ "path": "packages/webpack-scaffold" }
]
}