Skip to content

Commit

Permalink
update build:ci scripts to allow building using local copies of each …
Browse files Browse the repository at this point in the history
…other
  • Loading branch information
jacob-8 committed Jun 28, 2023
1 parent 8f109c6 commit e10adde
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
9 changes: 3 additions & 6 deletions packages/kitbook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,15 @@
"description": "Svelte Component Documentation and Prototyping Workbench built using SvelteKit",
"scripts": {
"dev": "vite dev --mode kitbook",
"build:deps": "cd ../.. && pnpm build:deps && pnpm pieces:package && cd packages/kitbook",
"build": "pnpm build:deps && vite build --mode kitbook",
"build": "vite build --mode kitbook",
"build:ci": "cd ../.. && pnpm build:deps && pnpm package && pnpm pieces:package && cd packages/kitbook && pnpm build",
"preview": "vite preview --mode kitbook",
"package": "svelte-kit sync && svelte-package && publint",
"package:watch": "svelte-kit sync && svelte-package --watch",
"prepublishOnly": "vitest run && npm run package",
"check": "svelte-check --tsconfig ./tsconfig.json --threshold warning --diagnostic-sources js,svelte",
"check:watch": "svelte-check --tsconfig ./jsconfig.json --threshold warning --diagnostic-sources js,svelte --watch",
"lint": "prettier --ignore-path .gitignore --check --plugin-search-dir=. .",
"format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. .",
"test": "vitest",
"test:ui": "vitest --ui"
"test": "vitest"
},
"type": "module",
"svelte": "./dist/index.js",
Expand Down
13 changes: 4 additions & 9 deletions packages/svelte-pieces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,15 @@
"version": "2.0.0-next.1",
"description": "Useful Svelte UI pieces for building web apps",
"scripts": {
"dev": "pnpm kitbook",
"build": "pnpm kitbook:build",
"preview": "pnpm kitbook:preview",
"kitbook": "vite dev --mode kitbook",
"kitbook:build": "svelte-kit sync && vite build --mode kitbook",
"kitbook:build:ci": "cd ../.. && pnpm build:deps && cd packages/kitbook && pnpm package && cd ../svelte-pieces && pnpm kitbook:build",
"kitbook:preview": "vite preview --mode kitbook",
"dev": "vite dev --mode kitbook",
"build": "svelte-kit sync && vite build --mode kitbook",
"build:ci": "cd ../.. && pnpm build:deps && cd packages/kitbook && pnpm package && cd ../svelte-pieces && pnpm build",
"preview": "vite preview --mode kitbook",
"package": "svelte-kit sync && svelte-package && publint",
"package:watch": "svelte-kit sync && svelte-package --watch",
"prepublishOnly": "vitest run && npm run package",
"check": "svelte-check --tsconfig ./tsconfig.json --threshold error --diagnostic-sources js,svelte --compiler-warnings a11y-no-static-element-interactions:ignore",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --threshold warning --diagnostic-sources js,svelte --watch",
"lint": "prettier --ignore-path .gitignore --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
"format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. .",
"test": "vitest"
},
"type": "module",
Expand Down

0 comments on commit e10adde

Please sign in to comment.