[fix] tool:update-plankton
This commit is contained in:
parent
a081be36b3
commit
2816d2aade
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
## consts
|
||||
|
||||
dir=lib/plankton
|
||||
dir=$(pwd)/lib/plankton
|
||||
|
||||
modules=""
|
||||
modules="${modules} base"
|
||||
|
|
@ -17,6 +17,14 @@ modules="${modules} log"
|
|||
|
||||
## exec
|
||||
|
||||
mkdir -p ${dir}
|
||||
mkdir /tmp/sandbox -p
|
||||
cd /tmp/sandbox
|
||||
ptk fetch node ${modules}
|
||||
schwamm --include=/tmp/sandbox/plankton.swm.json --output=dump:logic-decl > ${dir}/plankton.d.ts
|
||||
schwamm --include=/tmp/sandbox/plankton.swm.json --output=dump:logic-impl > ${dir}/plankton.js
|
||||
exit
|
||||
|
||||
mkdir -p ${dir}
|
||||
cd ${dir}
|
||||
ptk bundle node ${modules}
|
||||
|
|
|
|||
Loading…
Reference in a new issue