Skip to content

Commit 241132f

Browse files
committed
Move extension to js part
1 parent 71d6f8c commit 241132f

11 files changed

Lines changed: 11 additions & 3 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ test-rustjswasm:
9797
cd ../python-template-rustjswasm && git config --global user.name "github-actions" && git config --global user.email "41898282+github-actions[bot]@users.noreply.github.c@example.com" && git init && git add . && git commit -m "initial commit"
9898
cd ../python-template-rustjswasm && make develop
9999
cd ../python-template-rustjswasm && git add Cargo.lock && git commit -m "lockfile"
100-
cd ../python-template-jupyter && git add js/pnpm-lock.yaml && git commit -m "lockfile"
100+
cd ../python-template-rustjswasm && git add js/pnpm-lock.yaml && git commit -m "lockfile"
101101
cd ../python-template-rustjswasm && make lint
102102
cd ../python-template-rustjswasm && make checks
103103
cd ../python-template-rustjswasm && make test
104104

105105
test-cppjswasm:
106106
cd ../python-template-cppjswasm && git config --global user.name "github-actions" && git config --global user.email "41898282+github-actions[bot]@users.noreply.github.c@example.com" && git init && git add . && git commit -m "initial commit"
107107
cd ../python-template-cppjswasm && make develop
108-
cd ../python-template-jupyter && git add js/pnpm-lock.yaml && git commit -m "lockfile"
108+
cd ../python-template-cppjswasm && git add js/pnpm-lock.yaml && git commit -m "lockfile"
109109
cd ../python-template-cppjswasm && make lint
110110
cd ../python-template-cppjswasm && make checks
111111
cd ../python-template-cppjswasm && make test

cpp/.gitignore.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ js/*.tgz
146146
.ipynb_checkpoints
147147
.autoversion
148148
Untitled*.ipynb
149+
{{module}}/extension
149150
{{module}}/nbextension
150151
{{module}}/labextension
151152

cppjswasm/.gitignore.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ js/*.tgz
146146
.ipynb_checkpoints
147147
.autoversion
148148
Untitled*.ipynb
149+
{{module}}/extension
149150
{{module}}/nbextension
150151
{{module}}/labextension
151152

js/.gitignore.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ js/*.tgz
146146
.ipynb_checkpoints
147147
.autoversion
148148
Untitled*.ipynb
149+
{{module}}/extension
149150
{{module}}/nbextension
150151
{{module}}/labextension
151152

jupyter/.gitignore.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ js/*.tgz
146146
.ipynb_checkpoints
147147
.autoversion
148148
Untitled*.ipynb
149+
{{module}}/extension
149150
{{module}}/nbextension
150151
{{module}}/labextension
151152

jupyter/js/package.json.jinja

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@
3131
},
3232
"scripts": {
3333
"build:babel": "babel src/ --source-maps --out-dir lib/",
34+
"build:extension": "mkdirp ../{{module}}/extension/ && cpy --flat 'src/extension/*' '../{{module}}/extension/'",
3435
"build:nbextension": "mkdirp ../{{module}}/nbextension/static/ && cpy --flat 'src/notebook.js' '../{{module}}/nbextension/static/'",
3536
"build:labextension": "rimraf ../{{module}}/labextension && jupyter labextension build .",
36-
"build": "pnpm clean && pnpm build:babel && pnpm build:labextension && pnpm build:nbextension",
37+
"build": "pnpm clean && pnpm build:babel && pnpm build:extension && pnpm build:labextension && pnpm build:nbextension",
3738
"clean": "rimraf lib",
3839
"fix": "pnpm lint --fix",
3940
"lint": "eslint -c .eslintrc.js --ext .js src/ tests/",
File renamed without changes.
File renamed without changes.

python/.gitignore.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ js/*.tgz
146146
.ipynb_checkpoints
147147
.autoversion
148148
Untitled*.ipynb
149+
{{module}}/extension
149150
{{module}}/nbextension
150151
{{module}}/labextension
151152

rust/.gitignore.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ js/*.tgz
146146
.ipynb_checkpoints
147147
.autoversion
148148
Untitled*.ipynb
149+
{{module}}/extension
149150
{{module}}/nbextension
150151
{{module}}/labextension
151152

0 commit comments

Comments
 (0)