Skip to content

Commit

Permalink
chore: update from yarm to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
nccshecodes committed Nov 13, 2023
1 parent d35296b commit 0bfcaa9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
pnpm lint-staged

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ This project requires Node (^12.13.0).
To install the project dependencies:

```
yarn install
pnpm install
```

### Running locally

To launch the server:

```
yarn start
pnpm start
```

Go to http://localhost:8080
Expand All @@ -44,7 +44,7 @@ Go to http://localhost:8080
To launch the server using the production build:

```
yarn run production
pnpm run production
cd dist && npx serve
```

Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build]
command = "yarn run production"
command = "pnpm run build"
publish = "dist"

[[redirects]]
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
"scripts": {
"format:check": "prettier --check '**/*.{js,json,md}'",
"format:fix": "prettier --write '**/*.{js,json,md}'",
"lint": "concurrently 'yarn lint:code' 'yarn lint:style' 'yarn format:check'",
"lint": "concurrently 'pnpm lint:code' 'pnpm lint:style' 'pnpm format:check'",
"lint:code": "eslint '**/*.js'",
"lint:style": "stylelint '**/*.scss'",
"lint:style:fix": "stylelint '**/*.scss' --fix",
"prepare": "yarn husky install",
"prepare": "pnpm husky install",
"production": "NODE_ENV=production npx gulp && NODE_ENV=production npx eleventy",
"start": "npx gulp && concurrently 'npx gulp watch' 'npx eleventy --serve'",
"test-pa11y": "pa11y-ci --sitemap http://localhost:5000/sitemap.xml --sitemap-find https://shecodes.dev --sitemap-replace http://localhost:5000"
Expand All @@ -43,5 +43,6 @@
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-sass-guidelines": "^8.0.0",
"stylelint-config-standard": "^22.0.0"
}
},
"packageManager": "[email protected]"
}

0 comments on commit 0bfcaa9

Please sign in to comment.