create-qwik 0.13.3 → 0.14.1

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": "create-qwik",
3
- "version": "0.13.3",
3
+ "version": "0.14.1",
4
4
  "description": "Interactive CLI for create Qwik projects and adding features.",
5
5
  "bin": "./create-qwik.cjs",
6
6
  "main": "./index.cjs",
@@ -28,7 +28,7 @@
28
28
  "url": "https://github.com/BuilderIO/qwik/issues"
29
29
  },
30
30
  "devDependencies": {
31
- "@types/prompts": "2.0.14",
31
+ "@types/prompts": "2.4.1",
32
32
  "kleur": "4.1.5",
33
33
  "ora": "^6.1.2",
34
34
  "prompts": "2.4.2"
@@ -1,18 +1,17 @@
1
- # Qwik App ⚡️
1
+ # Qwik City App ⚡️
2
2
 
3
3
  - [Qwik Docs](https://qwik.builder.io/)
4
4
  - [Discord](https://qwik.builder.io/chat)
5
5
  - [Qwik GitHub](https://github.com/BuilderIO/qwik)
6
6
  - [@QwikDev](https://twitter.com/QwikDev)
7
7
  - [Vite](https://vitejs.dev/)
8
- - [Partytown](https://partytown.builder.io/)
9
- - [Mitosis](https://github.com/BuilderIO/mitosis)
10
- - [Builder.io](https://www.builder.io/)
11
8
 
12
9
  ---
13
10
 
14
11
  ## Project Structure
15
12
 
13
+ This project is using Qwik with [QwikCity](https://qwik.builder.io/qwikcity/overview/). QwikCity is just a extra set of tools on top of Qwik to make it easier to build a full site, including directory-based routing, layouts, and more.
14
+
16
15
  Inside your project, you'll see the following directory structure:
17
16
 
18
17
  ```
@@ -31,7 +30,7 @@ Inside your project, you'll see the following directory structure:
31
30
 
32
31
  - `public`: Any static assets, like images, can be placed in the public directory. Please see the [Vite public directory](https://vitejs.dev/guide/assets.html#the-public-directory) for more info.
33
32
 
34
- ## Add Integrations
33
+ ## Add Integrations and deployment
35
34
 
36
35
  Use the `npm run qwik add` command to add additional integrations. Some examples of integrations include: Cloudflare, Netlify or Express server, and the [Static Site Generator (SSG)](https://qwik.builder.io/qwikcity/static-site-generation/static-site-config/).
37
36
 
@@ -44,7 +43,7 @@ npm run qwik add # or `yarn qwik add`
44
43
  Development mode uses [Vite's development server](https://vitejs.dev/). During development, the `dev` command will server-side render (SSR) the output.
45
44
 
46
45
  ```shell
47
- npm run dev # or `yarn dev`
46
+ npm start # or `yarn start`
48
47
  ```
49
48
 
50
49
  > Note: during dev mode, Vite may request a significant number of `.js` files. This does not represent a Qwik production build.
@@ -9,25 +9,25 @@
9
9
  "dev.debug": "node --inspect-brk ./node_modules/vite/bin/vite.js --mode ssr --force",
10
10
  "fmt": "prettier --write .",
11
11
  "fmt.check": "prettier --check .",
12
- "lint": "eslint src/**/*.ts*",
12
+ "lint": "eslint \"src/**/*.ts*\"",
13
13
  "preview": "qwik build preview && vite preview --open",
14
14
  "start": "vite --open --mode ssr",
15
- "serve": "echo 'Run \"npm run qwik add\" to install a server adaptor'",
15
+ "deploy": "echo 'Run \"npm run qwik add\" to install a server adaptor'",
16
16
  "qwik": "qwik"
17
17
  },
18
18
  "devDependencies": {
19
- "@builder.io/qwik": "0.13.3",
20
- "@builder.io/qwik-city": "0.0.122",
21
- "@types/eslint": "8.4.9",
19
+ "@builder.io/qwik": "0.14.1",
20
+ "@builder.io/qwik-city": "0.0.127",
21
+ "@types/eslint": "8.4.10",
22
22
  "@types/node": "latest",
23
- "@typescript-eslint/eslint-plugin": "5.42.0",
24
- "@typescript-eslint/parser": "5.42.0",
25
- "eslint-plugin-qwik": "0.13.3",
26
- "eslint": "8.26.0",
27
- "node-fetch": "3.2.10",
23
+ "@typescript-eslint/eslint-plugin": "5.43.0",
24
+ "@typescript-eslint/parser": "5.43.0",
25
+ "eslint-plugin-qwik": "0.14.1",
26
+ "eslint": "8.28.0",
27
+ "node-fetch": "3.3.0",
28
28
  "prettier": "2.7.1",
29
- "typescript": "4.8.4",
30
- "vite": "3.2.2",
29
+ "typescript": "4.9.3",
30
+ "vite": "3.2.4",
31
31
  "vite-tsconfig-paths": "3.5.0"
32
32
  },
33
33
  "private": true
@@ -21,13 +21,7 @@ export default function (opts: RenderToStreamOptions) {
21
21
  // Use container attributes to set attributes on the html tag.
22
22
  containerAttributes: {
23
23
  lang: 'en-us',
24
- },
25
- prefetchStrategy: {
26
- implementation: {
27
- linkInsert: null,
28
- workerFetchInsert: null,
29
- prefetchEvent: 'always',
30
- },
24
+ ...opts.containerAttributes,
31
25
  },
32
26
  });
33
27
  }
@@ -7,7 +7,7 @@
7
7
  "displayName": "Basic App (QwikCity)",
8
8
  "qwikCity": true,
9
9
  "docs": [
10
- "https://qwik.builder.io/docs/overview/"
10
+ "https://qwik.builder.io/docs/getting-started/"
11
11
  ]
12
12
  }
13
13
  }
@@ -1,12 +1,12 @@
1
1
  import { component$, useStyles$ } from '@builder.io/qwik';
2
- import { QwikCity, RouterOutlet, ServiceWorkerRegister } from '@builder.io/qwik-city';
2
+ import { QwikCityProvider, RouterOutlet, ServiceWorkerRegister } from '@builder.io/qwik-city';
3
3
  import { RouterHead } from './components/router-head/router-head';
4
4
 
5
5
  import globalStyles from './global.css?inline';
6
6
 
7
7
  export default component$(() => {
8
8
  /**
9
- * The root of a QwikCity site always start with the <QwikCity> component,
9
+ * The root of a QwikCity site always start with the <QwikCityProvider> component,
10
10
  * immediately followed by the document's <head> and <body>.
11
11
  *
12
12
  * Dont remove the `<head>` and `<body>` elements.
@@ -14,7 +14,7 @@ export default component$(() => {
14
14
  useStyles$(globalStyles);
15
15
 
16
16
  return (
17
- <QwikCity>
17
+ <QwikCityProvider>
18
18
  <head>
19
19
  <meta charSet="utf-8" />
20
20
  <link rel="manifest" href="/manifest.json" />
@@ -24,6 +24,6 @@ export default component$(() => {
24
24
  <RouterOutlet />
25
25
  <ServiceWorkerRegister />
26
26
  </body>
27
- </QwikCity>
27
+ </QwikCityProvider>
28
28
  );
29
29
  });
@@ -127,7 +127,7 @@ export default component$(() => {
127
127
  </a>
128
128
  </li>
129
129
  </ul>
130
- <Link class="mindblow" href="/flower">
130
+ <Link class="mindblow" href="/flower/">
131
131
  Blow my mind 🤯
132
132
  </Link>
133
133
  </div>
@@ -7,7 +7,7 @@
7
7
  "displayName": "Documentation site (QwikCity)",
8
8
  "qwikCity": true,
9
9
  "docs": [
10
- "https://qwik.builder.io/docs/overview/"
10
+ "https://qwik.builder.io/docs/getting-started/"
11
11
  ]
12
12
  }
13
13
  }
@@ -1,18 +1,18 @@
1
1
  import { component$ } from '@builder.io/qwik';
2
- import { QwikCity, RouterOutlet, ServiceWorkerRegister } from '@builder.io/qwik-city';
2
+ import { QwikCityProvider, RouterOutlet, ServiceWorkerRegister } from '@builder.io/qwik-city';
3
3
  import { RouterHead } from './components/router-head/router-head';
4
4
 
5
5
  import './global.css';
6
6
 
7
7
  export default component$(() => {
8
8
  /*
9
- * The root of a QwikCity site always start with the <QwikCity> component,
9
+ * The root of a QwikCity site always start with the <QwikCityProvider> component,
10
10
  * immediately followed by the document's <head> and <body>.
11
11
  *
12
12
  * Dont remove the `<head>` and `<body>` elements.
13
13
  */
14
14
  return (
15
- <QwikCity>
15
+ <QwikCityProvider>
16
16
  <head>
17
17
  <meta charSet="utf-8" />
18
18
  <RouterHead />
@@ -21,6 +21,6 @@ export default component$(() => {
21
21
  <RouterOutlet />
22
22
  <ServiceWorkerRegister />
23
23
  </body>
24
- </QwikCity>
24
+ </QwikCityProvider>
25
25
  );
26
26
  });
@@ -11,5 +11,5 @@ This page is at the root level, so it only uses the `/src/routes/layout.tsx` lay
11
11
  - [Layouts](https://qwik.builder.io/qwikcity/layout/overview/)
12
12
  - [Routing](https://qwik.builder.io/qwikcity/routing/overview/)
13
13
  - [Authoring Content](https://qwik.builder.io/qwikcity/content/component/)
14
- - [Server Adaptors and Middleware](https://qwik.builder.io/qwikcity/adaptors/overview/)
14
+ - [Deployment](https://qwik.builder.io/qwikcity/adaptors/overview/)
15
15
  - [Static Site Generation (SSG)](https://qwik.builder.io/qwikcity/static-site-generation/overview/)
@@ -18,5 +18,5 @@ The left menu ordering is created with the `src/routes/docs/menu.md` markdown fi
18
18
  - [Layouts](https://qwik.builder.io/qwikcity/layout/overview/)
19
19
  - [Routing](https://qwik.builder.io/qwikcity/routing/overview/)
20
20
  - [Authoring Content](https://qwik.builder.io/qwikcity/content/component/)
21
- - [Server Adaptors and Middleware](https://qwik.builder.io/qwikcity/adaptors/overview/)
21
+ - [Deployment](https://qwik.builder.io/qwikcity/adaptors/overview/)
22
22
  - [Static Site Generation (SSG)](https://qwik.builder.io/qwikcity/static-site-generation/overview/)
@@ -2,7 +2,7 @@ import { component$, Slot, useStyles$ } from '@builder.io/qwik';
2
2
  import type { DocumentHead } from '@builder.io/qwik-city';
3
3
  import Menu from '~/components/menu/menu';
4
4
  import OnThisPage from '~/components/on-this-page/on-this-page';
5
- import styles from './docs.css';
5
+ import styles from './docs.css?inline';
6
6
 
7
7
  export default component$(() => {
8
8
  useStyles$(styles);
@@ -26,30 +26,30 @@
26
26
  "dev.debug": "node --inspect-brk ./node_modules/vite/bin/vite.js --mode ssr --force",
27
27
  "fmt": "prettier --write .",
28
28
  "fmt.check": "prettier --check .",
29
- "lint": "eslint src/**/*.ts*",
29
+ "lint": "eslint \"src/**/*.ts*\"",
30
30
  "start": "vite --open --mode ssr",
31
31
  "qwik": "qwik",
32
32
  "release": "np"
33
33
  },
34
34
  "devDependencies": {
35
- "@builder.io/qwik": "0.13.3",
36
- "@types/eslint": "8.4.9",
35
+ "@builder.io/qwik": "0.14.1",
36
+ "@types/eslint": "8.4.10",
37
37
  "@types/node": "latest",
38
- "@typescript-eslint/eslint-plugin": "5.42.0",
39
- "@typescript-eslint/parser": "5.42.0",
38
+ "@typescript-eslint/eslint-plugin": "5.43.0",
39
+ "@typescript-eslint/parser": "5.43.0",
40
40
  "eslint-plugin-qwik": "latest",
41
- "eslint": "8.26.0",
42
- "node-fetch": "3.2.10",
41
+ "eslint": "8.28.0",
42
+ "node-fetch": "3.3.0",
43
43
  "np": "7.6.1",
44
44
  "prettier": "2.7.1",
45
- "typescript": "4.8.4",
46
- "vite": "3.2.2"
45
+ "typescript": "4.9.3",
46
+ "vite": "3.2.4"
47
47
  },
48
48
  "__qwik__": {
49
49
  "displayName": "Component library",
50
50
  "priority": -1,
51
51
  "docs": [
52
- "https://qwik.builder.io/docs/overview/"
52
+ "https://qwik.builder.io/docs/getting-started/"
53
53
  ]
54
54
  }
55
55
  }
@@ -18,12 +18,5 @@ export default function (opts: RenderToStreamOptions) {
18
18
  return renderToStream(<Root />, {
19
19
  manifest,
20
20
  ...opts,
21
- prefetchStrategy: {
22
- implementation: {
23
- linkInsert: null,
24
- workerFetchInsert: null,
25
- prefetchEvent: 'always',
26
- },
27
- },
28
21
  });
29
22
  }