@mauroandre/velojs 0.0.1 → 0.0.3

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mauroandre/velojs",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "description": "Fullstack web framework built on Hono + Preact with Vite-powered AST transforms",
6
6
  "keywords": [
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "homepage": "https://github.com/mauro-andre/velojs#readme",
22
22
  "bin": {
23
- "velojs": "./bin/velojs.js"
23
+ "velojs": "bin/velojs.js"
24
24
  },
25
25
  "files": [
26
26
  "src/",
package/src/cli.ts CHANGED
@@ -29,6 +29,7 @@ const runBuild = () => {
29
29
  };
30
30
 
31
31
  const runStart = () => {
32
+ process.env.NODE_ENV = "production";
32
33
  const serverPath = resolve(process.cwd(), "dist/server.js");
33
34
  runCommand("node", [serverPath]);
34
35
  };
package/src/init.ts CHANGED
@@ -14,7 +14,11 @@ const templates: Record<string, string> = {
14
14
  "start": "velojs start"
15
15
  },
16
16
  "dependencies": {
17
- "${PACKAGE_NAME}": "^0.1.0"
17
+ "${PACKAGE_NAME}": "latest"
18
+ },
19
+ "devDependencies": {
20
+ "@types/node": "latest",
21
+ "typescript": "latest"
18
22
  }
19
23
  }
20
24
  `,
@@ -30,6 +34,7 @@ export default { plugins: [veloPlugin()] };
30
34
  "moduleResolution": "bundler",
31
35
  "target": "esnext",
32
36
  "lib": ["esnext", "dom"],
37
+ "types": ["node", "vite/client"],
33
38
  "strict": true,
34
39
  "noUncheckedIndexedAccess": true,
35
40
  "verbatimModuleSyntax": true,
@@ -115,9 +120,7 @@ a:hover {
115
120
  }
116
121
  `,
117
122
 
118
- "app/pages/Home.tsx": `export const metadata = { title: "Home" };
119
-
120
- export const Component = () => {
123
+ "app/pages/Home.tsx": `export const Component = () => {
121
124
  return (
122
125
  <main style={{ maxWidth: 640, margin: "80px auto", padding: "0 20px" }}>
123
126
  <h1>Welcome to VeloJS</h1>