Skip to content

Commit 5484c55

Browse files
chore: use npm (#363)
* chore: use npm * fix: jupyterlab * chore: rm jupyterlab extension * Automatic application of license header * fix: build * rm schema * bump: version * fix: build --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent c6cb137 commit 5484c55

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+210
-1637
lines changed

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ To install it in dev mode, you first must install:
1818
Then execute the following commands in the `packages/react` folder:
1919

2020
```sh
21-
# Install yarn - https://yarnpkg.com/getting-started/install
21+
# Install npm - https://yarnpkg.com/getting-started/install
2222
corepack enable
23-
yarn install
24-
yarn build
23+
npm install
24+
npm run build
2525
```
2626

2727
### Code changes
@@ -31,7 +31,7 @@ interact with an isolated component.
3131
To start it, execute
3232

3333
```sh
34-
yarn storybook
34+
npm run storybook
3535
```
3636

3737
It should open a web browser tab pointing to `http://localhost:6006` in which you will
@@ -52,5 +52,5 @@ The code follows some rules for format and prevent bad practices.
5252
To check that and apply auto fixes, you must execute:
5353

5454
```sh
55-
yarn lint
55+
npm run lint
5656
```

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ all: clean install build publish
2525

2626
build: ## build all modules
2727
($(CONDA_ACTIVATE) ${ENV_NAME}; \
28-
yarn build )
28+
npm run build )
2929

3030
kill: ## kill
3131
($(CONDA_ACTIVATE) ${ENV_NAME}; \
3232
./dev/sh/kill.sh )
3333

3434
start: ## start
3535
($(CONDA_ACTIVATE) ${ENV_NAME}; \
36-
yarn start )
36+
npm run start )
3737

3838
clean: ## deletes node_modules, lib, build... folders and other generated info, lock, log... files
3939
find . -name node_modules | xargs rm -fr {} || true
@@ -55,7 +55,7 @@ env: ## create a conda environment
5555

5656
install: ## install npm dependencies
5757
($(CONDA_ACTIVATE) ${ENV_NAME}; \
58-
yarn )
58+
npm )
5959

6060
start-jupyter-server: ## start the jupyter server
6161
($(CONDA_ACTIVATE) ${ENV_NAME}; \
@@ -66,7 +66,7 @@ start-jupyter-server: ## start the jupyter server
6666
define release_package
6767
echo $1
6868
($(CONDA_ACTIVATE) ${ENV_NAME}; \
69-
cd $1 && rm tsconfig.tsbuildinfo && yarn build && npm publish --access public )
69+
cd $1 && rm tsconfig.tsbuildinfo && npm run build && npm publish --access public )
7070
endef
7171

7272
publish: # publish the npm packages

attic/esbuild/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66

77
```bash
88
echo open http://localhost:4003
9-
yarn start
9+
npm run start
1010
```

attic/esbuild/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"react-resizable": "1.11.0",
4747
"react-router": "6.0.2",
4848
"react-router-dom": "6.22.3",
49-
"react-scripts": "4.1.0-beta.0",
49+
"react-scripts": "5.0.1",
5050
"react-syntax-highlighter": "15.4.3",
5151
"redux": "4.2.1",
5252
"redux-observable": "1.2.0",

attic/prosemirror/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ SHELL=/bin/bash
1212
all: typedoc typedoc-deploy
1313

1414
typedoc: ## generate typedoc
15-
yarn typedoc
15+
npm run typedoc
1616

1717
typedoc-deploy: ## deploy typedoc
1818
aws s3 cp \

attic/slate/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ SHELL=/bin/bash
1212
all: typedoc typedoc-deploy
1313

1414
typedoc: ## generated typedoc
15-
yarn typedoc
15+
npm run typedoc
1616

1717
typedoc-deploy: ## deploy typedoc
1818
aws s3 cp \

attic/slate/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Integrate Jupyter cells in a [Slate](https://www.slatejs.org) document.
88

99

1010
```base
11-
yarn install &&
11+
npm install &&
1212
echo open http://localhost:3266 && \
13-
yarn start
13+
npm run start
1414
```
1515

1616
<div align="center" style="text-align: center">

attic/slate/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
"style-loader": "^2.0.0",
8787
"svg-url-loader": "^7.1.1",
8888
"typedoc": "^0.25.7",
89-
"typescript": "~5.0.3",
89+
"typescript": "^5.0.3",
9090
"url-loader": "^3.0.0",
9191
"watch": "^1.0.2",
9292
"webpack": "^5.74.0",

docs/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ default: help ## default target is help
2626

2727
clean: ## clear
2828
($(CONDA_ACTIVATE) ${ENV_NAME}; \
29-
yarn clear )
29+
npm clear )
3030

3131
install: ## install
3232
($(CONDA_ACTIVATE) ${ENV_NAME}; \
33-
yarn install )
33+
npm install )
3434

3535
start: ## start
3636
($(CONDA_ACTIVATE) ${ENV_NAME}; \
37-
yarn start )
37+
npm run start )
3838

3939
build: ## build
4040
($(CONDA_ACTIVATE) ${ENV_NAME}; \
41-
yarn build )
41+
npm run build )
4242

4343
publish: build ## publish
4444
($(CONDA_ACTIVATE) ${ENV_NAME}; \

docs/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@
88
99
```bash
1010
# Install the dependencies.
11-
yarn install
11+
npm install
1212
```
1313

1414
```bash
1515
# Local Development: This command starts a local development server and opens up a browser window.
1616
# Most changes are reflected live without having to restart the server.
1717
echo open http://localhost:3000
18-
yarn start
18+
npm run start
1919
```
2020

2121
```bash
2222
# Build: This command generates static content into the `build` directory
2323
# and can be served using any static contents hosting service.
24-
yarn build
24+
npm run build
2525
```
2626

2727
```bash

0 commit comments

Comments
 (0)