Skip to content

Commit ad11cdc

Browse files
authored
Switch to NPM & update (#211)
* switch to npm * update all & vitest to 1.6.1 * update * adapt ci * fix class param * update node * update node
1 parent c706a25 commit ad11cdc

File tree

12 files changed

+4196
-11726
lines changed

12 files changed

+4196
-11726
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ node_modules
1010
# Ignore files for PNPM, NPM and YARN
1111
pnpm-lock.yaml
1212
package-lock.json
13-
yarn.lock

.github/workflows/ci.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ jobs:
2222
- uses: actions/setup-node@v4
2323
with:
2424
node-version-file: .nvmrc
25-
cache: yarn
25+
cache: npm
2626

27-
- run: yarn install
27+
- run: npm install
2828

29-
- run: yarn check
29+
- run: npm run check
3030

31-
- run: yarn lint
31+
- run: npm run lint
3232

33-
- run: yarn build
33+
- run: npm run build
3434

3535
unit-tests:
3636
name: Unit Tests
@@ -43,11 +43,11 @@ jobs:
4343
- uses: actions/setup-node@v4
4444
with:
4545
node-version-file: .nvmrc
46-
cache: yarn
46+
cache: npm
4747

48-
- run: yarn install
48+
- run: npm install
4949

50-
- run: yarn test:unit run
50+
- run: npm run test:unit run
5151
env:
5252
CI: true
5353

@@ -63,13 +63,15 @@ jobs:
6363
- uses: actions/setup-node@v4
6464
with:
6565
node-version-file: .nvmrc
66-
cache: yarn
66+
cache: npm
6767

68-
- run: yarn install
68+
- run: npm install
6969

70-
- run: yarn playwright install
70+
- run: npx playwright install
7171

72-
- run: yarn test:e2e
72+
- run: |
73+
npm run build
74+
npm run test:e2e
7375
env:
7476
VITE_API_TOKEN: ${{ secrets.KITTYCAD_API_TOKEN_DEV }}
7577
TAB_API_URL: ${{ secrets.TAB_API_URL }}

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ vite.config.ts.timestamp-*
1111

1212

1313
# playwright artifacts
14-
test-results
14+
test-results
15+
16+
.idea
17+
18+
.vercel

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20.5.0
1+
v22.17.0

.prettierignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ node_modules
77
.env.*
88
!.env.example
99

10-
# Ignore files for PNPM, NPM and YARN
10+
# Ignore files for PNPM and NPM
1111
pnpm-lock.yaml
1212
package-lock.json
13-
yarn.lock
1413

1514
# Ignore generated files
1615
dependabot.yml

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,29 @@ Create `.env.development.local` copying `.env.development` as an example.
99
Run the local development server:
1010

1111
```bash
12-
yarn
13-
yarn dev
12+
npm install
13+
npm run dev
1414
```
1515

1616
## Validating Changes
1717

1818
Run static analysis:
1919

2020
```bash
21-
yarn fmt
22-
yarn check
23-
yarn lint
21+
npm run fmt
22+
npm run check
23+
npm run lint
2424
```
2525

2626
Run unit tests:
2727

2828
```bash
29-
yarn test:unit
29+
npm run test:unit
3030
```
3131

3232
Run end-to-end tests:
3333

3434
```bash
35-
yarn playwright install
36-
yarn test:e2e
35+
npm run playwright install
36+
npm run test:e2e
3737
```

0 commit comments

Comments
 (0)