Skip to content

Commit

Permalink
build: use vite preview in examples + update SDE dependencies in temp…
Browse files Browse the repository at this point in the history
…lates (#370)

Fixes #272
  • Loading branch information
chrispcampbell authored Sep 29, 2023
1 parent 13ffaae commit 3fdc5d8
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 101 deletions.
2 changes: 1 addition & 1 deletion examples/hello-world/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pnpm dev
pnpm build

# Open the generated report in a browser
pnpm serve
pnpm preview
```

## License
Expand Down
9 changes: 5 additions & 4 deletions examples/hello-world/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@
"type": "module",
"scripts": {
"clean": "rm -rf ./sde-prep",
"build": "sde bundle",
"dev": "sde dev",
"save-baseline": "sde-check baseline --save",
"serve": "sirv ./sde-prep/check-report"
"build": "sde bundle",
"vite": "vite",
"preview": "vite preview --open --outDir ./sde-prep/check-report",
"save-baseline": "sde-check baseline --save"
},
"dependencies": {
"@sdeverywhere/build": "^0.3.0",
"@sdeverywhere/cli": "^0.7.6",
"@sdeverywhere/plugin-check": "^0.3.0",
"@sdeverywhere/plugin-wasm": "^0.2.0",
"@sdeverywhere/plugin-worker": "^0.2.0",
"sirv-cli": "^2.0.2"
"vite": "^4.4.9"
}
}
18 changes: 9 additions & 9 deletions examples/template-default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
"private": true,
"type": "module",
"scripts": {
"build": "sde bundle",
"dev": "sde dev",
"build": "sde bundle",
"save-baseline": "sde-check baseline --save"
},
"workspaces": [
"packages/core",
"packages/app"
],
"dependencies": {
"@sdeverywhere/build": "^0.3.0",
"@sdeverywhere/check-core": "^0.1.0",
"@sdeverywhere/cli": "^0.7.6",
"@sdeverywhere/plugin-check": "^0.3.0",
"@sdeverywhere/plugin-config": "^0.2.0",
"@sdeverywhere/plugin-vite": "^0.1.5",
"@sdeverywhere/plugin-wasm": "^0.2.0",
"@sdeverywhere/plugin-worker": "^0.2.0"
"@sdeverywhere/build": "^0.3.2",
"@sdeverywhere/check-core": "^0.1.1",
"@sdeverywhere/cli": "^0.7.12",
"@sdeverywhere/plugin-check": "^0.3.4",
"@sdeverywhere/plugin-config": "^0.2.3",
"@sdeverywhere/plugin-vite": "^0.1.8",
"@sdeverywhere/plugin-wasm": "^0.2.1",
"@sdeverywhere/plugin-worker": "^0.2.3"
}
}
3 changes: 2 additions & 1 deletion examples/template-default/packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
"prettier:check": "prettier --check .",
"prettier:fix": "prettier --write .",
"precommit": "../scripts/precommit",
"dev": "vite",
"build": "vite build",
"dev": "vite"
"preview": "vite preview"
},
"dependencies": {
"bootstrap-slider": "10.6.2",
Expand Down
10 changes: 4 additions & 6 deletions examples/template-default/packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@
"types": "dist/index.d.ts",
"scripts": {
"clean": "rm -rf dist",
"lint": "eslint src --max-warnings 0",
"prettier:check": "prettier --check .",
"prettier:fix": "prettier --write .",
"precommit": "../scripts/precommit"
"type-check": "tsc --noEmit"
},
"dependencies": {
"@sdeverywhere/runtime": "^0.2.0",
"@sdeverywhere/runtime-async": "^0.2.0"
"@sdeverywhere/runtime": "^0.2.2",
"@sdeverywhere/runtime-async": "^0.2.2"
},
"devDependencies": {
"typescript": "^5.2.2",
"vite": "^4.4.9"
}
}
12 changes: 6 additions & 6 deletions examples/template-minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"save-baseline": "sde-check baseline --save"
},
"dependencies": {
"@sdeverywhere/build": "^0.3.0",
"@sdeverywhere/check-core": "^0.1.0",
"@sdeverywhere/cli": "^0.7.6",
"@sdeverywhere/plugin-check": "^0.3.0",
"@sdeverywhere/plugin-wasm": "^0.2.0",
"@sdeverywhere/plugin-worker": "^0.2.0"
"@sdeverywhere/build": "^0.3.2",
"@sdeverywhere/check-core": "^0.1.1",
"@sdeverywhere/cli": "^0.7.12",
"@sdeverywhere/plugin-check": "^0.3.4",
"@sdeverywhere/plugin-wasm": "^0.2.1",
"@sdeverywhere/plugin-worker": "^0.2.3"
}
}
79 changes: 5 additions & 74 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3fdc5d8

Please sign in to comment.