Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Commit 9107868

Browse files
Merge pull request #12 from aXenDeveloper/pnpm
perf: Change npm to pnpm
2 parents 7f24311 + a0079e0 commit 9107868

File tree

12 files changed

+7826
-22578
lines changed

12 files changed

+7826
-22578
lines changed

.github/workflows/tests.yml

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3-
4-
name: Tests
1+
name: Tests & Builds
52

63
on:
74
push:
@@ -10,22 +7,32 @@ on:
107
branches: '*'
118

129
jobs:
13-
build:
10+
install:
1411
runs-on: ubuntu-latest
1512

16-
strategy:
17-
matrix:
18-
node-version: [18.x]
19-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
20-
2113
steps:
22-
- uses: actions/checkout@v3
23-
- name: Use Node.js ${{ matrix.node-version }}
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
17+
- name: Install Node.js
2418
uses: actions/setup-node@v3
2519
with:
26-
node-version: ${{ matrix.node-version }}
27-
cache: 'npm'
28-
- run: npm install
29-
- run: npm run lint
30-
- run: npm run test
31-
- run: npm run build --if-present
20+
node-version: 20
21+
22+
- uses: pnpm/action-setup@v2
23+
name: Install pnpm
24+
with:
25+
version: 8
26+
run_install: false
27+
28+
- name: Install dependencies
29+
run: pnpm install
30+
31+
- name: Check formatting
32+
run: pnpm lint
33+
34+
- name: Run tests
35+
run: pnpm test
36+
37+
- name: Build
38+
run: pnpm build

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
"less.validate": false,
2525
"scss.validate": false,
2626
"editor.codeActionsOnSave": {
27-
"source.fixAll.stylelint": true
27+
"source.fixAll.stylelint": "explicit"
2828
}
2929
}

README.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,47 +13,44 @@ Personal portfolio application.
1313
Use commands:
1414

1515
```bash
16-
npm i
17-
npm run prepare
16+
pnpm i
17+
pnpm prepare
1818
```
1919

2020
## 🛠 Run
2121

2222
```bash
23-
npm run dev
23+
pnpm dev
2424
```
2525

2626
## 🔨 Deployment
2727

2828
Command:
2929

3030
```bash
31-
npm run build
31+
pnpm build
3232
```
3333

3434
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
3535

3636
## 💻 Server
3737

38-
Commands:
38+
Before run server, you need to build project.
3939

40-
1. ```bash
41-
npm run build
42-
```
43-
2. ```bash
44-
npm start
45-
```
40+
```bash
41+
pnpm start
42+
```
4643

4744
## 👍 Tests
4845

49-
- `npm t Button.test.tsx` - run only one test `Button.test.tsx`
50-
- `npm run t:coverage` - run tests coverage for frontend
46+
- `pnpm t Button.test.tsx` - run only one test `Button.test.tsx`
47+
- `pnpm t:coverage` - run tests coverage for frontend
5148

5249
## 👍 Lint
5350

5451
Commands:
5552

5653
```bash
57-
npm run lint
58-
npm run lint:fix
54+
pnpm lint
55+
pnpm lint:fix
5956
```

__mocks__/RootMock.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { NextIntlProvider } from 'next-intl';
1+
import { NextIntlClientProvider } from 'next-intl';
22
import { ReactNode } from 'react';
3-
import Cookies from 'js-cookie';
43

54
import messages from '../messages/en.json';
65

@@ -9,11 +8,9 @@ interface Props {
98
}
109

1110
export const RootMock = ({ children }: Props) => {
12-
Cookies.set('NEXT_LOCALE', 'en');
13-
1411
return (
15-
<NextIntlProvider messages={messages} locale="en">
12+
<NextIntlClientProvider messages={messages} locale="en">
1613
{children}
17-
</NextIntlProvider>
14+
</NextIntlClientProvider>
1815
);
1916
};

assets/faq/technology/technology-en.mdx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ Here are some of the technologies and tools I use to build my projects.
1313
- [NodeJS](https://nodejs.org/en/)
1414
- [SCSS](https://sass-lang.com/)
1515
- [IPS Community Suite](https://invisioncommunity.com/)
16+
- [Styled Components](https://styled-components.com/)
1617

1718
### Tests
1819

1920
- [Vitest](https://vitejs.dev/)
2021
- [Playwright](https://playwright.dev/)
22+
- [Jest](https://jestjs.io/)
23+
- [Cypress](https://www.cypress.io/)
2124

2225
### Databases
2326

@@ -31,17 +34,13 @@ Here are some of the technologies and tools I use to build my projects.
3134
- [GraphQL](https://graphql.org/)
3235
- [Rest API](https://restfulapi.net/)
3336

34-
### Deprecated
35-
36-
Below are technologies that I no longer use or use very rarely.
37+
### Basic
3738

38-
- [Jest](https://jestjs.io/)
39-
- [Cypress](https://www.cypress.io/)
4039
- [Angular](https://angular.io/)
41-
- [Styled Components](https://styled-components.com/)
4240
- [Smarty](https://www.smarty.net/)
4341
- [jQuery](https://jquery.com/)
4442
- [C#](https://docs.microsoft.com/en-us/dotnet/csharp/)
43+
- [.Net](https://dotnet.microsoft.com/)
4544

4645
## Tools
4746

assets/faq/technology/technology-pl.mdx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ Tutaj znajdziesz listę technologii, których używam w swojej pracy.
1313
- [NodeJS](https://nodejs.org/en/)
1414
- [SCSS](https://sass-lang.com/)
1515
- [IPS Community Suite](https://invisioncommunity.com/)
16+
- [Styled Components](https://styled-components.com/)
1617

1718
### Testy
1819

1920
- [Vitest](https://vitejs.dev/)
2021
- [Playwright](https://playwright.dev/)
22+
- [Jest](https://jestjs.io/)
23+
- [Cypress](https://www.cypress.io/)
2124

2225
### Bazy danych
2326

@@ -31,17 +34,13 @@ Tutaj znajdziesz listę technologii, których używam w swojej pracy.
3134
- [GraphQL](https://graphql.org/)
3235
- [Rest API](https://restfulapi.net/)
3336

34-
### Przestarzałe
35-
36-
Poniżej znajdziesz listę technologii z którymi pracowałem w przeszłości. Możesz je znaleść w moich starszych projektach.
37+
### Podstawowe
3738

38-
- [Jest](https://jestjs.io/)
39-
- [Cypress](https://www.cypress.io/)
4039
- [Angular](https://angular.io/)
41-
- [Styled Components](https://styled-components.com/)
4240
- [Smarty](https://www.smarty.net/)
4341
- [jQuery](https://jquery.com/)
4442
- [C#](https://docs.microsoft.com/en-us/dotnet/csharp/)
43+
- [.Net](https://dotnet.microsoft.com/)
4544

4645
## Narzędzia
4746

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
module.exports = {
2-
parserPreset: 'conventional-changelog-conventionalcommits',
3-
rules: {
4-
'body-leading-blank': [1, 'always'],
5-
'body-max-line-length': [2, 'always', 100],
6-
'footer-leading-blank': [1, 'always'],
7-
'footer-max-line-length': [2, 'always', 100],
8-
'header-max-length': [2, 'always', 100],
9-
'subject-empty': [2, 'never'],
10-
'subject-full-stop': [1, 'never', '.'],
11-
'type-case': [2, 'always', 'lower-case'],
12-
'type-empty': [2, 'never'],
13-
'type-enum': [
14-
2,
15-
'always',
16-
['build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test']
17-
]
18-
}
19-
};
1+
// eslint-disable-next-line import/no-anonymous-default-export
2+
export default {
3+
parserPreset: 'conventional-changelog-conventionalcommits',
4+
rules: {
5+
'body-leading-blank': [1, 'always'],
6+
'body-max-line-length': [2, 'always', 100],
7+
'footer-leading-blank': [1, 'always'],
8+
'footer-max-line-length': [2, 'always', 100],
9+
'header-max-length': [2, 'always', 100],
10+
'subject-empty': [2, 'never'],
11+
'subject-full-stop': [1, 'never', '.'],
12+
'type-case': [2, 'always', 'lower-case'],
13+
'type-empty': [2, 'never'],
14+
'type-enum': [
15+
2,
16+
'always',
17+
['build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test']
18+
]
19+
}
20+
};

0 commit comments

Comments
 (0)