Skip to content

Commit 1952d48

Browse files
committed
use yarn instead of npm
1 parent f0dc488 commit 1952d48

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
cookiecutter . --config-file tests/testconfig.yaml --no-input
5757
pushd jupyter-widget-testwidgets
5858
python -m pip install --upgrade -v -e ".[test, examples, docs]"
59-
npm run lint:check
59+
yarn run lint:check
6060
6161
# TODO: re-enable tests
6262
# pytest

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ pip install -e ".[test, examples]"
4747
py.test
4848

4949
# Run the JS tests. This should again, only give TODO errors (Expected 'Value' to equal 'Expected value'):
50-
npm test
50+
yarn test
5151
```
5252

5353
When developing your extensions, you need to manually enable your extensions with the
5454
notebook / lab frontend. For lab, this is done by the command:
5555

5656
```
5757
jupyter labextension develop --overwrite .
58-
npm run build
58+
yarn run build
5959
```
6060

6161
For classic notebook, you can run:
@@ -78,7 +78,7 @@ terminals to watch for changes in the extension's source and automatically rebui
7878

7979
```bash
8080
# Watch the source directory in one terminal, automatically rebuilding when needed
81-
npm run watch
81+
yarn run watch
8282
# Run JupyterLab in another terminal
8383
jupyter lab
8484
```

{{cookiecutter.github_project_name}}/.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ jobs:
4949
- name: Test the extension
5050
run: |
5151
python -m pip install --upgrade -v -e ".[test, examples, docs]"
52-
npm run lint:check
52+
yarn run lint:check
5353
pytest
54-
npm run test:ci
54+
yarn run test:ci
5555
- name: Check docs can be build + links
5656
run: |
5757
pushd docs

{{cookiecutter.github_project_name}}/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ notebook / lab frontend. For lab, this is done by the command:
3434

3535
```
3636
jupyter labextension develop --overwrite .
37-
npm run build
37+
yarn run build
3838
```
3939

4040
For classic notebook, you need to run:
@@ -56,7 +56,7 @@ terminals to watch for changes in the extension's source and automatically rebui
5656

5757
```bash
5858
# Watch the source directory in one terminal, automatically rebuilding when needed
59-
npm run watch
59+
yarn run watch
6060
# Run JupyterLab in another terminal
6161
jupyter lab
6262
```

{{cookiecutter.github_project_name}}/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@
2929
"url": "https://github.com/{{ cookiecutter.github_organization_name }}/{{ cookiecutter.github_project_name }}"
3030
},
3131
"scripts": {
32-
"build": "npm run build:lib && npm run build:nbextension && npm run build:labextension:dev",
33-
"build:prod": "npm run build:lib && npm run build:nbextension && npm run build:labextension",
32+
"build": "yarn run build:lib && yarn run build:nbextension && yarn run build:labextension:dev",
33+
"build:prod": "yarn run build:lib && yarn run build:nbextension && yarn run build:labextension",
3434
"build:labextension": "jupyter labextension build .",
3535
"build:labextension:dev": "jupyter labextension build --development True .",
3636
"build:lib": "tsc",
3737
"build:nbextension": "webpack",
38-
"clean": "npm run clean:lib && npm run clean:nbextension && npm run clean:labextension",
38+
"clean": "yarn run clean:lib && yarn run clean:nbextension && yarn run clean:labextension",
3939
"clean:lib": "rimraf lib",
4040
"clean:labextension": "rimraf {{ cookiecutter.python_package_name }}/labextension",
4141
"clean:nbextension": "rimraf {{ cookiecutter.python_package_name }}/nbextension/static/index.js",
4242
"lint": "eslint . --ext .ts,.tsx --fix",
4343
"lint:check": "eslint . --ext .ts,.tsx",
44-
"prepack": "npm run build:lib",
45-
"test": "npm run test:firefox",
44+
"prepack": "yarn run build:lib",
45+
"test": "yarn run test:firefox",
4646
"test:chrome": "karma start --browsers=Chrome tests/karma.conf.js",
4747
"test:debug": "karma start --browsers=Chrome --singleRun=false --debug=true tests/karma.conf.js",
4848
"test:firefox": "karma start --browsers=Firefox tests/karma.conf.js",

0 commit comments

Comments
 (0)