mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Add build-stork-index node script
This commit is contained in:
parent
e1168e90c2
commit
b345523e41
2 changed files with 13 additions and 0 deletions
|
|
@ -35,6 +35,7 @@
|
||||||
"build-stork": "node -r esm -r tsconfig-paths/register build-stork.js",
|
"build-stork": "node -r esm -r tsconfig-paths/register build-stork.js",
|
||||||
"build-stork-index": "./$npm_package_config_stork_executable build --input $npm_package_config_stork_toml --output $npm_package_config_stork_binary",
|
"build-stork-index": "./$npm_package_config_stork_executable build --input $npm_package_config_stork_toml --output $npm_package_config_stork_binary",
|
||||||
"setup-stork": "run-s build-stork build-stork-index",
|
"setup-stork": "run-s build-stork build-stork-index",
|
||||||
|
"build-stork-index-js": "node -r esm -r tsconfig-paths/register scripts/build-stork-index.js",
|
||||||
"download-stork-toml": "node -r esm -r tsconfig-paths/register scripts/download-stork-toml.js",
|
"download-stork-toml": "node -r esm -r tsconfig-paths/register scripts/download-stork-toml.js",
|
||||||
"download-stork-executable": "node -r esm -r tsconfig-paths/register scripts/download-stork-executable.js",
|
"download-stork-executable": "node -r esm -r tsconfig-paths/register scripts/download-stork-executable.js",
|
||||||
"stork-netlify": "chmod +x scripts/stork-netlify.sh && ./scripts/stork-netlify.sh",
|
"stork-netlify": "chmod +x scripts/stork-netlify.sh && ./scripts/stork-netlify.sh",
|
||||||
|
|
|
||||||
12
scripts/build-stork-index.js
Normal file
12
scripts/build-stork-index.js
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
import {
|
||||||
|
downloadStorkExecutable,
|
||||||
|
buildIndex
|
||||||
|
} from '~/helpers/stork/executable.js'
|
||||||
|
|
||||||
|
;(async () => {
|
||||||
|
await downloadStorkExecutable()
|
||||||
|
|
||||||
|
await buildIndex()
|
||||||
|
|
||||||
|
process.exit()
|
||||||
|
})()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue