Closed mikenikles closed 1 year ago
Changes required to a default SvelteKit library project:
package.json
, exports
/ .
change to "types": "./dist/web/index.d.ts"
and "svelte": "./dist/web/index.js"
.package.json
, svelte
changes to "svelte": "./dist/web/index.js",
package.json
, types
changes to "types": "./dist/web/index.d.ts",
@webstone/gluegun fs-jetpack npm-run-all rimraf tsup
to devDependencies
"build:web": "vite build && npm run package",
"build:cli": "node scripts/build-cli.js build && npm run copy-templates",
"clean:build": "rimraf ./dist",
"copy-templates": "cp -a ./src/cli/templates ./dist/cli",
"dev:cli": "node scripts/build-cli.js dev",
"dev:web": "vite dev",
"build": "npm run clean:build && npm run build:cli && npm run build:web",
"dev": "npm-run-all --parallel dev:cli dev:web",
"package": "svelte-kit sync && svelte-package -o ./dist/web && publint",
scripts/build-cli.js
src/cli
and populate it with a dummy setup, i.e. commands/<plugin-name>
, extensions/
, and templates
content☝️ needs to be automated in the create-webstone-app
plugin
Apply Julian's incredible work from https://github.com/Cahllagerfeld/webstone-reference-plugin/tree/cahllagerfeld/test to the request-logger plugin.