Skip to content

Commit 01ccc9d

Browse files
Tahulfarnabaz
andauthored
feat(pnpm): switch to pnpm (local / ci) (#1868)
Co-authored-by: Farnabaz <farnabaz@gmail.com>
1 parent c7ca353 commit 01ccc9d

File tree

15 files changed

+11225
-16125
lines changed

15 files changed

+11225
-16125
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,16 @@ jobs:
1717
- uses: actions/setup-node@v3
1818
with:
1919
node-version: '16'
20-
cache: yarn
21-
- run: yarn install
22-
- run: yarn prepare
23-
- run: yarn lint
24-
- run: yarn build
25-
- run: yarn test
20+
- uses: pnpm/action-setup@v2.2.2
21+
name: Install pnpm
22+
id: pnpm-install
23+
with:
24+
version: 7
25+
- run: pnpm install
26+
- run: pnpm prepare
27+
- run: pnpm lint
28+
- run: pnpm build
29+
- run: pnpm test
2630
- name: Release Edge
2731
if: |
2832
github.event_name == 'push' &&

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ node_modules
33
jspm_packages
44

55
package-lock.json
6-
# */**/yarn.lock
76

87
examples/*/**/yarn.lock
98

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ignore-workspace-root-check=true
2+
shamefully-hoist=true

docs/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ This documentation uses [Docus](https://github.com/nuxt-themes/docus).
66

77
## 💻 Development
88

9-
- Install dependencies using `yarn install`
10-
- Start using `yarn dev`
11-
- Build using `yarn build`
9+
- Install dependencies using `pnpm install`
10+
- Start using `pnpm dev`
11+
- Build using `pnpm build`

docs/content-v1/ru/1.getting-started/6.configuration.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,10 @@ export default {
245245
Автоматически ставит тему PrismJS из вашего файла конфигурации Nuxt.js config, поэтому вы можете использовать различные темы, список [тем для prism](https://github.com/PrismJS/prism-themes):
246246

247247
::code-group
248+
```bash [PNPM]
249+
pnpm add prism-themes
250+
```
251+
248252
```bash [Yarn]
249253
yarn add prism-themes
250254
```

docs/content/2.get-started.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Before getting started, please **make sure to have installed the recommended set
3232
```bash [npx]
3333
npx nuxi init content-app -t content
3434
```
35+
3536
```bash [pnpm]
3637
pnpm dlx nuxi init content-app -t content
3738
```
@@ -40,21 +41,27 @@ Before getting started, please **make sure to have installed the recommended set
4041
2. Install the dependencies in the `content-app` folder:
4142

4243
::code-group
44+
```bash [pnpm]
45+
pnpm install --shamefully-hoist
46+
```
47+
4348
```bash [yarn]
4449
yarn install
4550
```
51+
4652
```bash [npm]
4753
npm install
4854
```
49-
```bash [pnpm]
50-
pnpm install --shamefully-hoist
51-
```
5255
::
5356

54-
3. Now you'll be able to use `yarn dev` to start your Nuxt content app in development mode:
57+
3. Now you'll be able to use `pnpm dev` to start your Nuxt content app in development mode:
5558

5659
::code-group
5760

61+
```bash [pnpm]
62+
pnpm run dev
63+
```
64+
5865
```bash [yarn]
5966
yarn dev
6067
```
@@ -63,10 +70,6 @@ yarn dev
6370
npm run dev
6471
```
6572

66-
```bash [pnpm]
67-
pnpm run dev
68-
```
69-
7073
::
7174

7275
::alert{type="success"}
@@ -82,15 +85,17 @@ pnpm run dev
8285
You can add Nuxt Content at anytime during your Nuxt project development by installing the `@nuxt/content` module:
8386

8487
::code-group
88+
```bash [pnpm]
89+
pnpm add -D @nuxt/content
90+
```
91+
8592
```bash [yarn]
8693
yarn add --dev @nuxt/content
8794
```
95+
8896
```bash [npm]
8997
npm install --save-dev @nuxt/content
9098
```
91-
```bash [pnpm]
92-
pnpm add -D @nuxt/content
93-
```
9499
::
95100

96101
Then, add `@nuxt/content` to the `modules` section of `nuxt.config.ts`:

docs/content/3.guide/3.recipes/1.sitemap.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@ A sitemap file is useful for helping Google to better index your website, ensuri
55
This can be created by utilising the `sitemap` library, which can be installed as follows:
66

77
::code-group
8+
```bash [pnpm]
9+
pnpm add --save-dev sitemap
10+
```
11+
812
```bash [yarn]
913
yarn add --dev sitemap
1014
```
15+
1116
```bash [npm]
1217
npm install --save-dev sitemap
1318
```
14-
```bash [pnpm]
15-
pnpm add --save-dev sitemap
16-
```
1719
::
1820

1921
## Server Route

docs/content/3.guide/5.migration/1.from-v1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Learn how to upgrade from Nuxt Content V1 to Nuxt Content V2 for Nuxt 3.
44

5-
- Make sure your dev server (`nuxt dev`) isn't running and remove any package lock files (`package-lock.json` and `yarn.lock`)
5+
- Make sure your dev server (`nuxt dev`) isn't running and remove any package lock files (`package-lock.json`, `yarn.lock`, or `pnpm-lock.yaml`)
66

77
- Upgrade to Nuxt 3 (check out the [Nuxt 3 migration guide](https://v3.nuxtjs.org/getting-started/migration))
88

@@ -21,7 +21,7 @@ Learn how to upgrade from Nuxt Content V1 to Nuxt Content V2 for Nuxt 3.
2121
- Then, reinstall your dependencies:
2222

2323
```bash
24-
yarn install
24+
npm install
2525
```
2626

2727
## Global Components

0 commit comments

Comments
 (0)