create-qwik 0.0.100 → 0.0.103

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/create-qwik CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";/**
3
3
  * @license
4
- * create-qwik 0.0.100-dev20220811155724
4
+ * create-qwik 0.0.103-dev20220823035113
5
5
  * Copyright Builder.io, Inc. All Rights Reserved.
6
6
  * Use of this source code is governed by an MIT-style license that can be
7
7
  * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";/**
2
2
  * @license
3
- * create-qwik 0.0.100-dev20220811155724
3
+ * create-qwik 0.0.103-dev20220823035113
4
4
  * Copyright Builder.io, Inc. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/BuilderIO/qwik/blob/main/LICENSE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-qwik",
3
- "version": "0.0.100",
3
+ "version": "0.0.103",
4
4
  "description": "Interactive CLI and API for generating Qwik projects.",
5
5
  "bin": "create-qwik",
6
6
  "main": "index.js",
@@ -66,7 +66,7 @@
66
66
  "prefix": "useClientEffect",
67
67
  "description": "useClientEffect$() function hook",
68
68
  "body": [
69
- "useClientEffect$((track) => {",
69
+ "useClientEffect$(({ track }) => {",
70
70
  " $0",
71
71
  "});",
72
72
  ""
@@ -77,7 +77,7 @@
77
77
  "prefix": "useWatch",
78
78
  "description": "useWatch$() function hook",
79
79
  "body": [
80
- "useWatch$((track) => {",
80
+ "useWatch$(({ track }) => {",
81
81
  " track($1);",
82
82
  " $0",
83
83
  "});",
@@ -15,12 +15,12 @@
15
15
  "typecheck": "tsc --incremental --noEmit"
16
16
  },
17
17
  "devDependencies": {
18
- "@builder.io/qwik": "0.0.100",
18
+ "@builder.io/qwik": "0.0.103",
19
19
  "@types/eslint": "8.4.5",
20
20
  "@types/node": "latest",
21
21
  "@typescript-eslint/eslint-plugin": "5.30.7",
22
22
  "@typescript-eslint/parser": "5.30.7",
23
- "eslint-plugin-qwik": "0.0.100",
23
+ "eslint-plugin-qwik": "0.0.103",
24
24
  "eslint": "8.20.0",
25
25
  "node-fetch": "3.2.9",
26
26
  "typescript": "4.7.4",
@@ -6,6 +6,7 @@ export default () => {
6
6
  <head>
7
7
  <meta charSet="utf-8" />
8
8
  <title>Qwik Blank App</title>
9
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
9
10
  </head>
10
11
  <body></body>
11
12
  </html>
@@ -8,6 +8,7 @@ export default () => {
8
8
  <head>
9
9
  <meta charSet="utf-8" />
10
10
  <title>Qwik Blank App</title>
11
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
11
12
  </head>
12
13
  <body>
13
14
  <App />
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "type": "module",
15
15
  "devDependencies": {
16
- "@builder.io/qwik-city": "0.0.101",
16
+ "@builder.io/qwik-city": "0.0.104",
17
17
  "vite-tsconfig-paths": "3.5.0"
18
18
  }
19
19
  }
@@ -12,7 +12,7 @@ export const Head = component$(() => {
12
12
  <meta charSet="utf-8" />
13
13
 
14
14
  <title>{head.title ? `${head.title} - Qwik` : `Qwik`}</title>
15
-
15
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
16
16
  <link rel="canonical" href={loc.href} />
17
17
 
18
18
  {head.meta.map((m) => (
@@ -1,6 +1,4 @@
1
1
  import { qwikCity } from '@builder.io/qwik-city/middleware/cloudflare-pages';
2
2
  import render from './entry.ssr';
3
3
 
4
- const qwikCityMiddleware = qwikCity(render);
5
-
6
- export const onRequestGet = [qwikCityMiddleware];
4
+ export const onRequest = qwikCity(render);
@@ -14,13 +14,13 @@ const { router, notFound } = qwikCity(render);
14
14
  // create the express server
15
15
  const app = express();
16
16
 
17
+ // static asset handlers
18
+ app.use(`/build`, express.static(buildDir, { immutable: true, maxAge: '1y' }));
19
+ app.use(express.static(distDir, { redirect: false }));
20
+
17
21
  // use Qwik City's page and endpoint handler
18
22
  app.use(router);
19
23
 
20
- // static asset handlers
21
- app.use(`/build`, express.static(buildDir, { immutable: true, maxAge: '1y', index: false }));
22
- app.use(express.static(distDir, { index: false }));
23
-
24
24
  // use Qwik City's 404 handler
25
25
  app.use(notFound);
26
26