@taujs/create-taujs 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +8 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -210,12 +210,12 @@ function generatePackageJson(projectName, packageManager) {
210
210
  private: true,
211
211
  type: "module",
212
212
  scripts: {
213
- dev: "cross-env NODE_ENV=development tsx watch --ignore vite.config.ts --trace-warnings --tsconfig ./src/server/tsconfig.json ./src/server/index.ts --loglevel verbose",
213
+ dev: "NODE_ENV=development tsx watch --ignore vite.config.ts --trace-warnings --tsconfig ./src/server/tsconfig.json ./src/server/index.ts --loglevel verbose",
214
214
  "build:client": "tsx build.ts",
215
215
  "build:entry-server": "BUILD_MODE=ssr tsx build.ts",
216
216
  "build:server": "esbuild src/server/index.ts --bundle --platform=node --format=esm --outfile=dist/server/index.js --external:fastify --external:@taujs/server --external:@taujs/react",
217
217
  build: "npm run build:client && npm run build:entry-server && npm run build:server",
218
- start: "cross-env NODE_ENV=production node dist/server/index.js",
218
+ start: "NODE_ENV=production node dist/server/index.js",
219
219
  lint: "tsc --noEmit"
220
220
  },
221
221
  dependencies: {
@@ -232,8 +232,7 @@ function generatePackageJson(projectName, packageManager) {
232
232
  "@vitejs/plugin-react": "^4.6.0",
233
233
  tsx: "^4.19.3",
234
234
  typescript: "^5.7.3",
235
- vite: "^7.1.11",
236
- "cross-env": "^7.0.3"
235
+ vite: "^7.1.11"
237
236
  }
238
237
  };
239
238
  }
@@ -454,16 +453,14 @@ function generateIndexHtml(title) {
454
453
  <html lang="en">
455
454
  <head>
456
455
  <meta charset="UTF-8" />
457
- <meta
458
- name="viewport"
459
- content="width=device-width, initial-scale=1.0"
460
- />
456
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
461
457
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
462
458
  <link rel="stylesheet" href="/styles.css" />
459
+ <!--ssr-head-->
463
460
  <title>${title}</title>
464
- </head>
461
+ </head>
465
462
  <body>
466
- <main id="root"></main>
463
+ <main id="root"><!--ssr-html--></main>
467
464
  </body>
468
465
  </html>
469
466
  `;
@@ -521,7 +518,7 @@ export function App() {
521
518
  Visit <a href="/">/</a> for standard SSR and{" "}
522
519
  <a href="/streaming">/streaming</a> for streaming SSR.
523
520
  </li>
524
- <li>Further infomration can be found at <a href="http://taujs.dev" target="_blank">\u03C4js Documentation and Guides</a>.</li>
521
+ <li>Further information can be found at <a href="http://taujs.dev" target="_blank">\u03C4js Documentation and Guides</a>.</li>
525
522
  </ul>
526
523
  </section>
527
524
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taujs/create-taujs",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Scaffold a new τjs application",
5
5
  "author": "Aoede <taujs@aoede.uk.net> (https://www.aoede.uk.net)",
6
6
  "homepage": "https://taujs.dev/",