File tree Expand file tree Collapse file tree 6 files changed +18
-7415
lines changed Expand file tree Collapse file tree 6 files changed +18
-7415
lines changed Original file line number Diff line number Diff line change 11# Changes here will be overwritten by Copier
2- _commit : b18a505
2+ _commit : 0596834
33_src_path : .
44add_extension : jupyter
55
Original file line number Diff line number Diff line change @@ -48,11 +48,12 @@ jobs:
4848 uses : actions/setup-node@v4
4949 with :
5050 node-version : ${{ matrix.node-version }}
51- cache : ' yarn'
52- cache-dependency-path : js/yarn.lock
5351
54- - name : Install yarn
55- run : npm install -g yarn
52+ - name : Install pnpm
53+ uses : pnpm/action-setup@v4
54+ with :
55+ version : 9
56+ package_json_file : js/package.json
5657
5758 - name : Install dependencies
5859 run : make develop
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ develop-py:
66 python -m pip install -e .[develop]
77
88develop-js :
9- cd js; yarn
9+ cd js; pnpm install
1010
1111develop : develop-js develop-py # # setup project for development
1212
@@ -15,7 +15,7 @@ build-py:
1515 python -m build -w -n
1616
1717build-js :
18- cd js; yarn build
18+ cd js; pnpm build
1919
2020build : build-js build-py # # build the project
2121
@@ -32,7 +32,7 @@ lint-py: ## run python linter with ruff
3232 python -m ruff format --check jupyter_template
3333
3434lint-js : # # run js linter
35- cd js; yarn lint
35+ cd js; pnpm lint
3636
3737lint : lint-js lint-py # # run project linters
3838
@@ -45,7 +45,7 @@ fix-py: ## fix python formatting with ruff
4545 python -m ruff format jupyter_template
4646
4747fix-js : # # fix js formatting
48- cd js; yarn fix
48+ cd js; pnpm fix
4949
5050fix : fix-js fix-py # # run project autoformatters
5151
@@ -83,7 +83,7 @@ coverage-py: ## run python tests and collect test coverage
8383
8484.PHONY : test-js tests-js coverage-js
8585test-js : # # run js tests
86- cd js; yarn test
86+ cd js; pnpm test
8787
8888# alias
8989tests-js : test-js
@@ -123,7 +123,7 @@ dist-build-py: # build python dists
123123 python -m build -w -s
124124
125125dist-build-js : # build js dists
126- cd js; yarn pack
126+ cd js; pnpm pack
127127
128128dist-check : # # run python dist checker with twine
129129 python -m twine check dist/*
Original file line number Diff line number Diff line change 3333 "build:babel" : " babel src/ --source-maps --out-dir lib/" ,
3434 "build:nbextension" : " mkdirp ../jupyter_template/nbextension/static/ && cpy --flat 'src/notebook.js' '../jupyter_template/nbextension/static/'" ,
3535 "build:labextension" : " rimraf ../jupyter_template/labextension && jupyter labextension build ." ,
36- "build" : " yarn clean && yarn build:babel && yarn build:labextension && yarn build:nbextension" ,
36+ "build" : " pnpm clean && pnpm build:babel && pnpm build:labextension && pnpm build:nbextension" ,
3737 "clean" : " rimraf lib" ,
38- "fix" : " yarn lint --fix" ,
38+ "fix" : " pnpm lint --fix" ,
3939 "lint" : " eslint -c .eslintrc.js --ext .js src/ tests/" ,
40- "prepublishOnly" : " yarn run build" ,
40+ "preinstall" : " npx only-allow pnpm" ,
41+ "prepublishOnly" : " pnpm run build" ,
4142 "test" : " jest --coverage --collectCoverageFrom=src/*.{js}"
4243 },
4344 "dependencies" : {
You can’t perform that action at this time.
0 commit comments