Skip to content

Commit

Permalink
chore(deps): use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
webdeveric committed Feb 10, 2024
1 parent 3621bac commit c671c34
Show file tree
Hide file tree
Showing 9 changed files with 6,058 additions and 11,070 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,22 @@ jobs:
css-loader-version: ["3.5.0", latest]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache: "pnpm"
- name: Installing dependencies
run: npm ci
run: pnpm install
- name: Installing specific dependency versions
run: npm install --legacy-peer-deps webpack@${{ matrix.webpack-version }} webpack-dev-server@${{ matrix.dev-server-version }} css-loader@${{ matrix.css-loader-version }}
run: pnpm install webpack@${{ matrix.webpack-version }} webpack-dev-server@${{ matrix.dev-server-version }} css-loader@${{ matrix.css-loader-version }}
- name: Building (if needed)
run: npm run build --if-present
run: pnpm --if-present run build
- name: Running tests
run: npm test
run: pnpm test
- name: Generating coverage report
run: npm run lcov --if-present
run: pnpm lcov
- name: Upload code coverage
uses: codecov/codecov-action@v4
with:
Expand Down
4 changes: 4 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# https://pnpm.io/npmrc
auto-install-peers=true
enable-pre-post-scripts=true
engine-strict=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
16 changes: 5 additions & 11 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,24 @@
```bash
git clone https://github.com/webdeveric/webpack-assets-manifest.git
cd webpack-assets-manifest
npm install
corepack enable
pnpm install --frozen-lockfile
```

## Testing

Run tests

```bash
npm test
pnpm test
```

Run tests and generate a coverage report. Please keep the code coverage at 100%.

```bash
npm run test:report
pnpm test:report
```

## Pull requests

If you'd like to add a new feature, please create an issue first so it can be discussed.

Before forking and submitting a PR, please make sure all tests pass and the coding style is consistent.

```bash
npm test
npm run lint
```
Pull requests are welcome. If you want to add a large feature or breaking change, please open an issue first so it can be discussed.
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"Analyse",
"chunkhash",
"codecov",
"corepack",
"dbaeumer",
"deepmerge",
"deps",
Expand Down
Loading

0 comments on commit c671c34

Please sign in to comment.