🏗️ replace yarn with pnpm
Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
parent
a1ab8a78f2
commit
303890c90b
6 changed files with 4196 additions and 4038 deletions
8
.github/workflows/deploy.yml
vendored
8
.github/workflows/deploy.yml
vendored
|
@ -19,13 +19,15 @@ jobs:
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '21'
|
node-version: '21'
|
||||||
cache: 'yarn'
|
|
||||||
|
|
||||||
|
- name: Install pnpm
|
||||||
|
run: npm install -g @pnpm/exe
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install
|
run: pnpm install
|
||||||
|
|
||||||
- name: Build Astro website
|
- name: Build Astro website
|
||||||
run: yarn build
|
run: pnpm build
|
||||||
|
|
||||||
- name: Rsync files
|
- name: Rsync files
|
||||||
uses: burnett01/rsync-deployments@5.2
|
uses: burnett01/rsync-deployments@5.2
|
||||||
|
|
|
@ -39,9 +39,9 @@ Through this project, I've learned HTML, CSS, TypeScript coding, SSG/frameworks
|
||||||
|
|
||||||
## 🛠️ How do I run it locally?
|
## 🛠️ How do I run it locally?
|
||||||
|
|
||||||
1. Install the dependencies: `yarn`
|
1. Install the dependencies: `pnpm i`
|
||||||
|
|
||||||
2. Start the development server: `yarn dev`
|
2. Start the development server: `pnpm dev`
|
||||||
|
|
||||||
## 🎨 Color codes
|
## 🎨 Color codes
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,8 @@
|
||||||
"start": "astro dev",
|
"start": "astro dev",
|
||||||
"build": "astro build",
|
"build": "astro build",
|
||||||
"preview": "astro preview",
|
"preview": "astro preview",
|
||||||
"astro": "astro"
|
"astro": "astro",
|
||||||
|
"preinstall": "npx only-allow pnpm"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/mdx": "^2.0.0",
|
"@astrojs/mdx": "^2.0.0",
|
||||||
|
|
4180
pnpm-lock.yaml
Normal file
4180
pnpm-lock.yaml
Normal file
File diff suppressed because it is too large
Load diff
7
pnpm-workspace.yaml
Normal file
7
pnpm-workspace.yaml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
packages:
|
||||||
|
# include packages in subfolders (e.g. apps/ and packages/)
|
||||||
|
- "apps/**"
|
||||||
|
- 'packages/**'
|
||||||
|
# if required, exclude some directories
|
||||||
|
- '!**/test/**'
|
||||||
|
|
Loading…
Reference in a new issue