rename playground build.ts
This commit is contained in:
parent
1b36e8f6f9
commit
8f0f76df54
2 changed files with 5 additions and 3 deletions
|
@ -70,7 +70,9 @@ const outDirs = Object.values(groups).flatMap((group) =>
|
||||||
|
|
||||||
// Render home page contents
|
// Render home page contents
|
||||||
const homeHtml = renderToStaticMarkup(
|
const homeHtml = renderToStaticMarkup(
|
||||||
<Home groups={mapValues(groups, (group) => Object.keys(group))} />,
|
React.createElement(Home, {
|
||||||
|
groups: mapValues(groups, (group) => Object.keys(group)),
|
||||||
|
}),
|
||||||
)
|
)
|
||||||
|
|
||||||
const config: BuildOptions = {
|
const config: BuildOptions = {
|
|
@ -8,8 +8,8 @@
|
||||||
"dist/**/*"
|
"dist/**/*"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "node -r esbuild-register devEnv/build.tsx -d",
|
"serve": "node -r esbuild-register devEnv/build.ts --dev",
|
||||||
"build": "node -r esbuild-register devEnv/build.tsx",
|
"build": "node -r esbuild-register devEnv/build.ts",
|
||||||
"build:static": "yarn build",
|
"build:static": "yarn build",
|
||||||
"typecheck": "yarn run build",
|
"typecheck": "yarn run build",
|
||||||
"test": "playwright test --config=devEnv/playwright.config.ts",
|
"test": "playwright test --config=devEnv/playwright.config.ts",
|
||||||
|
|
Loading…
Reference in a new issue