28 lines
1.1 KiB
JSON
28 lines
1.1 KiB
JSON
{
|
|
"preset": [
|
|
"@lumeweb/presetter-kernel-module-preset"
|
|
],
|
|
"config": {
|
|
"official": true,
|
|
"tsconfig": {
|
|
"extends": "@tsconfig/svelte/tsconfig.json",
|
|
"compilerOptions": {
|
|
"inlineSourceMap": false
|
|
}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "cross-env NODE_ENV=production run-s clean build:typescript:* build:backend build:ui build:package",
|
|
"build:backend": "run-p build:backend:**",
|
|
"build:backend:background": "LIB_NAME=background vite build",
|
|
"build:backend:bootloader": "LIB_NAME=bootloader vite build",
|
|
"build:backend:bridge": "LIB_NAME=bridge vite build",
|
|
"build:backend:crypto": "LIB_NAME=crypto vite build",
|
|
"build:backend:cryptoLoader": "LIB_NAME=cryptoLoader vite build",
|
|
"build:ui": "cd ui && vite build",
|
|
"build:package": "mkdir -p dist; rename 's/\\.umd\\.cjs/.js/' lib/*.cjs; cp -r assets/* lib/* ui/dist/* dist/",
|
|
"clean:ui": "shx rm -r ui/dist || true",
|
|
"clean:backend": "shx rm -r dist || true"
|
|
}
|
|
}
|