ci: update build config and scripts
This commit is contained in:
parent
4403ef8151
commit
b6b273ff0f
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
"preset": [
|
||||||
|
"@lumeweb/presetter-kernel-module-preset"
|
||||||
|
],
|
||||||
|
"config": {
|
||||||
|
"browser": true,
|
||||||
|
"vite": {
|
||||||
|
"build": {
|
||||||
|
"copyPublicDir": false,
|
||||||
|
"lib": {
|
||||||
|
"entry": "{source}/tester.js",
|
||||||
|
"fileName": "tester",
|
||||||
|
"formats": {
|
||||||
|
"0": "umd"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"build:vite": "vite build",
|
||||||
|
"build:bin": "shx mv lib/tester.umd.cjs public/tester.js && shx mkdir -p bin && shx mv build/sandbox* bin/",
|
||||||
|
"build:lib": "shx mv build/* lib/ && shx rm lib/tester*"
|
||||||
|
}
|
||||||
|
}
|
10
package.json
10
package.json
|
@ -3,8 +3,7 @@
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "presetter bootstrap",
|
"prepare": "presetter bootstrap",
|
||||||
"build": "run build build:bin",
|
"build": "run build build:bin build:lib"
|
||||||
"build:bin": "mv build/tester* public && mkdir -p bin && mv build/sandbox* bin/"
|
|
||||||
},
|
},
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
|
@ -22,5 +21,12 @@
|
||||||
"@lumeweb/libkernel": "^0.1.0-develop.21",
|
"@lumeweb/libkernel": "^0.1.0-develop.21",
|
||||||
"puppeteer": "^20.7.4",
|
"puppeteer": "^20.7.4",
|
||||||
"static-server": "^2.2.1"
|
"static-server": "^2.2.1"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"public",
|
||||||
|
"lib"
|
||||||
|
],
|
||||||
|
"publishConfig": {
|
||||||
|
"access": "public"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue