Skip to content

Commit e4fbce9

Browse files
build: switch from npm to yarn
1 parent b9babc0 commit e4fbce9

File tree

7 files changed

+2193
-6930
lines changed

7 files changed

+2193
-6930
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
registry-url: https://registry.npmjs.org/
2222

2323
- name: Install dependencies
24-
run: npm install
24+
run: yarn install
2525

2626
- name: Run tests
27-
run: npm test
27+
run: yarn test
2828

2929
- name: Package to Javascript bundle
30-
run: npm run build
30+
run: yarn run build
3131

3232
- uses: actions/upload-artifact@v4
3333
with:

.vscode/tasks.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
{
77
"label": "Test",
88
"type": "shell",
9-
"command": "./docker_node npm test",
9+
"command": "./podman_node yarn test",
1010
"windows": {
1111
"command": "wsl",
12-
"args": ["bash", "-c", "./docker_node npm test"]
12+
"args": ["bash", "-c", "./podman_node yarn test"]
1313
},
1414
"presentation": {
1515
"echo": true,
@@ -28,10 +28,10 @@
2828
{
2929
"label": "Live Test",
3030
"type": "shell",
31-
"command": "./docker_node npm run liveTest",
31+
"command": "./podman_node yarn run liveTest",
3232
"windows": {
3333
"command": "wsl",
34-
"args": ["bash", "-c", "./docker_node npm run liveTest"]
34+
"args": ["bash", "-c", "./podman_node yarn run liveTest"]
3535
},
3636
"presentation": {
3737
"echo": true,
@@ -50,10 +50,10 @@
5050
{
5151
"label": "Build",
5252
"type": "shell",
53-
"command": "./docker_node npm run build",
53+
"command": "./podman_node yarn run build",
5454
"windows": {
5555
"command": "wsl",
56-
"args": ["bash", "-c", "./docker_node npm run build"]
56+
"args": ["bash", "-c", "./podman_node yarn run build"]
5757
},
5858
"presentation": {
5959
"echo": true,

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ Clipboard support can be enabled by following these steps:
2424

2525
## Development
2626

27-
1. Install dependencies with `npm install` or `npm ci`.
28-
2. Run unit tests with `npm test`.
29-
3. Generate userscript with `npm run build`.
27+
1. Install dependencies with `yarn install`.
28+
2. Run unit tests with `yarn test`.
29+
3. Generate userscript with `yarn run build`.
3030
4. Import generated userscript to Tampermonkey by local file URI.
3131

3232
### Using the [Node.js container](https://github.com/nodejs/docker-node/blob/main/README.md)
3333

34-
To avoid having to install anything (except Podman!), just prefix any `node` or `npm` command with `./podman_node`. For example: `./podman_node npm install`
34+
To avoid having to install anything (except Podman!), just prefix any `node` or `yarn` command with `./podman_node`. For example: `./podman_node yarn install`
3535

3636
### Debug
3737

0 commit comments

Comments
 (0)