Skip to content

Commit d39155a

Browse files
committed
Switch package manager to pnpm
1 parent c42dff3 commit d39155a

14 files changed

+18250
-27727
lines changed

Diff for: .vscode/settings.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,9 @@
1515
},
1616
"typescript.preferences.importModuleSpecifier": "non-relative",
1717
"editor.codeActionsOnSave": ["source.fixAll.format", "source.fixAll.eslint"],
18-
"typescript.tsdk": "node_modules/typescript/lib"
18+
"typescript.tsdk": "node_modules/typescript/lib",
19+
"i18n-ally.localesPaths": ["public/locales", "src/components/shared/messages"],
20+
"[dockerfile]": {
21+
"editor.defaultFormatter": "ms-azuretools.vscode-docker"
22+
}
1923
}

Diff for: README.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424

2525
```bash
2626
# Install dependencies
27-
npm ci
27+
pnpm i
2828

2929
# Start the dev server
30-
npm run dev
30+
pnpm dev
3131
```
3232

3333
Use one of the user credentials to log in to the application
@@ -120,13 +120,13 @@ If you need to start a new project from this template, you have these options:
120120
1. Stripped down version of the App from `project-starter-template` branch
121121

122122
```bash
123-
npx create-next-app@latest PROJECT_NAME -e https://github.com/infinum/JS-React-Example/tree/project-starter-template --use-npm
123+
pnpx create-next-app@latest PROJECT_NAME -e https://github.com/infinum/JS-React-Example/tree/project-starter-template --use-pnpm
124124
```
125125

126126
2. Full-blown example App from the `master` branch
127127

128128
```bash
129-
npx create-next-app@latest PROJECT_NAME -e https://github.com/infinum/JS-React-Example --use-npm
129+
pnpx create-next-app@latest PROJECT_NAME -e https://github.com/infinum/JS-React-Example --use-pnpm
130130
```
131131

132132
> Note: replace PROJECT_NAME with the name of your project
@@ -141,7 +141,6 @@ git push -u origin main
141141

142142
> Note: Replace REPOSITORY_NAME with the name of your repository. These commands will add the remote repository, rename the branch to main, and push your changes to the remote repository.
143143
144-
145144
# Credits
146145

147146
JS-React-Example is maintained by

Diff for: README.template.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626

2727
### Prerequisites / Dependencies
2828

29-
You will need to have NodeJS and NPM installed to run this application. Use the [handbook guide](https://infinum.com/handbook/frontend/node/managing-node-npm-versions) to set up the correct NodeJS version.
29+
You will need to have NodeJS and pNPM installed to run this application. Use the Infinum handbooks to set up the [package manager](https://infinum.com/handbook/frontend/node/package-managers-guidelines) and [NodeJS version](https://infinum.com/handbook/frontend/node/managing-node-npm-versions).
3030

3131
### Installation
3232

3333
1. clone this repository: `git clone [TODO:GIT_LINK]`
34-
2. install all the dependencies: `npm ci`
34+
2. install all the dependencies: `pnpm i`
3535

3636
### Post-install
3737

@@ -51,8 +51,8 @@ To build the app you can use some of the following commands:
5151
npm run build
5252
5353
# TODO: development and production builds if applicable
54-
# npm run build:dev
55-
# npm run build:prod
54+
# pnpm build:dev
55+
# pnpm build:prod
5656
5757
```
5858

@@ -63,9 +63,9 @@ npm run build
6363
To start the unit tests you can use one of the following commands:
6464

6565
```
66-
npm run test
67-
npm run test:watch
68-
npm run test:coverage
66+
pnpm test
67+
pnpm test:watch
68+
pnpm test:coverage
6969
7070
```
7171

@@ -106,10 +106,10 @@ You can specify environment variables as per the guide in the [Nuts & Bolts](htt
106106

107107
### List of environment variables
108108

109-
| Variable | Requirement | Description |
110-
| ---------------- | ----------- | ---------------------------------------------------------- |
111-
| API_HOST | required | API endpoint URL |
112-
| ENV | required | Available options: development, production |
109+
| Variable | Requirement | Description |
110+
| -------- | ----------- | ------------------------------------------ |
111+
| API_HOST | required | API endpoint URL |
112+
| ENV | required | Available options: development, production |
113113

114114
## Deployment
115115

0 commit comments

Comments
 (0)