create-qwik 0.10.0 → 0.11.1-dev20221020161056

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.10.0",
3
+ "version": "0.11.1-dev20221020161056",
4
4
  "description": "Interactive CLI for create Qwik projects and adding features.",
5
5
  "bin": "./create-qwik.cjs",
6
6
  "main": "./index.cjs",
@@ -1,35 +1,45 @@
1
1
  {
2
- "Qwik component": {
2
+ "Qwik component (simple)": {
3
+ "scope": "javascriptreact,typescriptreact",
4
+ "prefix": "q:component",
5
+ "description": "Simple Qwik component",
6
+ "body": [
7
+ "export const ${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}} = component$(() => {",
8
+ " return <${2:div}>$4</$2>",
9
+ "});"
10
+ ]
11
+ },
12
+ "Qwik component (props)": {
3
13
  "scope": "typescriptreact",
4
14
  "prefix": "q:component w/props",
5
15
  "description": "Qwik component w/ props",
6
16
  "body": [
7
- "export interface ${1:${TM_FILENAME_BASE/(.*)/${1:/capitalize}/}}Props {",
17
+ "export interface ${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}}Props {",
8
18
  " $2",
9
19
  "}",
10
20
  "",
11
- "export const $1 = component$((props: $1Props) => {",
12
- " const state = useStore({",
13
- " $3",
14
- " });",
15
- " ",
16
- " return <${4:button} on${5:Click}$={(${6:e}) => {$7}}>$8</${4}>",
21
+ "export const $1 = component$<$1Props>((props) => {",
22
+ " const ${2:count} = useSignal(0);",
23
+ " return (",
24
+ " <${3:div} on${4:Click}$={(ev) => {$5}}>",
25
+ " $6",
26
+ " </${3}>",
27
+ " );",
17
28
  "});"
18
29
  ]
19
30
  },
20
- "Qwik component (simple)": {
31
+ "Qwik signal": {
21
32
  "scope": "javascriptreact,typescriptreact",
22
- "prefix": "q:component simple",
23
- "description": "Simple Qwik component",
33
+ "prefix": "q:useSignal",
34
+ "description": "useSignal() declaration",
24
35
  "body": [
25
- "export const ${1:${TM_FILENAME_BASE/(.*)/${1:/capitalize}/}} = component$(() => {",
26
- " return <${2:button}>$4</$2>",
27
- "});"
36
+ "const ${1:foo} = useSignal($2);",
37
+ "$0"
28
38
  ]
29
39
  },
30
- "Qwik state": {
40
+ "Qwik store": {
31
41
  "scope": "javascriptreact,typescriptreact",
32
- "prefix": "q:useStore$",
42
+ "prefix": "q:useStore",
33
43
  "description": "useStore() declaration",
34
44
  "body": [
35
45
  "const ${1:state} = useStore({",
@@ -66,7 +76,7 @@
66
76
  "description": "useWatch$() function hook",
67
77
  "body": [
68
78
  "useWatch$(({ track }) => {",
69
- " track($1);",
79
+ " track(() => $1);",
70
80
  " $0",
71
81
  "});",
72
82
  ""
@@ -74,10 +84,10 @@
74
84
  },
75
85
  "useResource": {
76
86
  "scope": "javascriptreact,typescriptreact",
77
- "prefix": "q:useResource$",
87
+ "prefix": "q:useResource",
78
88
  "description": "useResource$() declaration",
79
89
  "body": [
80
- "const $1 = useResource$(({ track, previous, cleanup }) => {",
90
+ "const $1 = useResource$(({ track, cleanup }) => {",
81
91
  " $0",
82
92
  "});",
83
93
  ""
@@ -15,18 +15,18 @@
15
15
  "qwik": "qwik"
16
16
  },
17
17
  "devDependencies": {
18
- "@builder.io/qwik": "0.10.0",
19
- "@builder.io/qwik-city": "0.0.111",
18
+ "@builder.io/qwik": "0.11.1-dev20221020161056",
19
+ "@builder.io/qwik-city": "0.0.112",
20
20
  "@types/eslint": "8.4.6",
21
21
  "@types/node": "latest",
22
- "@typescript-eslint/eslint-plugin": "5.37.0",
23
- "@typescript-eslint/parser": "5.37.0",
24
- "eslint-plugin-qwik": "0.10.0",
25
- "eslint": "8.23.1",
22
+ "@typescript-eslint/eslint-plugin": "5.40.1",
23
+ "@typescript-eslint/parser": "5.40.1",
24
+ "eslint-plugin-qwik": "0.11.1-dev20221020161056",
25
+ "eslint": "8.25.0",
26
26
  "node-fetch": "3.2.10",
27
27
  "prettier": "2.7.1",
28
- "typescript": "4.8.3",
29
- "vite": "3.1.1",
28
+ "typescript": "4.8.4",
29
+ "vite": "3.1.8",
30
30
  "vite-tsconfig-paths": "3.5.0"
31
31
  },
32
32
  "private": true
@@ -13,10 +13,13 @@
13
13
  "skipLibCheck": true,
14
14
  "incremental": true,
15
15
  "isolatedModules": true,
16
+ "outDir": "tmp",
17
+ "noEmit": true,
16
18
  "types": ["node", "vite/client"],
17
19
  "paths": {
18
20
  "~/*": ["./src/*"]
19
21
  }
20
22
  },
23
+ "files": ["./.eslintrc.cjs"],
21
24
  "include": ["src"]
22
25
  }
@@ -16,17 +16,6 @@ export const RouterHead = component$(() => {
16
16
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
17
17
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
18
18
 
19
- <link rel="preconnect" href="https://fonts.googleapis.com" />
20
- <link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
21
- <link
22
- href="https://fonts.googleapis.com/css2?family=Poppins&amp;display=swap"
23
- rel="stylesheet"
24
- />
25
-
26
- <meta property="og:site_name" content="Qwik" />
27
- <meta name="twitter:site" content="@QwikDev" />
28
- <meta name="twitter:title" content="Qwik" />
29
-
30
19
  {head.meta.map((m) => (
31
20
  <meta {...m} />
32
21
  ))}
@@ -15,7 +15,7 @@
15
15
 
16
16
  body {
17
17
  background-color: #fafafa;
18
- font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
18
+ font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
19
19
  padding: 20px 20px 40px 20px;
20
20
  }
21
21
 
@@ -16,17 +16,6 @@ export const RouterHead = component$(() => {
16
16
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
17
17
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
18
18
 
19
- <link rel="preconnect" href="https://fonts.googleapis.com" />
20
- <link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />
21
- <link
22
- href="https://fonts.googleapis.com/css2?family=Poppins&amp;display=swap"
23
- rel="stylesheet"
24
- />
25
-
26
- <meta property="og:site_name" content="Qwik" />
27
- <meta name="twitter:site" content="@QwikDev" />
28
- <meta name="twitter:title" content="Qwik" />
29
-
30
19
  {head.meta.map((m) => (
31
20
  <meta {...m} />
32
21
  ))}
@@ -32,18 +32,18 @@
32
32
  "release": "np"
33
33
  },
34
34
  "devDependencies": {
35
- "@builder.io/qwik": "0.10.0",
35
+ "@builder.io/qwik": "0.11.1",
36
36
  "@types/eslint": "8.4.6",
37
37
  "@types/node": "latest",
38
- "@typescript-eslint/eslint-plugin": "5.37.0",
39
- "@typescript-eslint/parser": "5.37.0",
38
+ "@typescript-eslint/eslint-plugin": "5.40.1",
39
+ "@typescript-eslint/parser": "5.40.1",
40
40
  "eslint-plugin-qwik": "latest",
41
- "eslint": "8.23.1",
41
+ "eslint": "8.25.0",
42
42
  "node-fetch": "3.2.10",
43
43
  "np": "7.6.1",
44
44
  "prettier": "2.7.1",
45
- "typescript": "4.8.3",
46
- "vite": "3.1.1"
45
+ "typescript": "4.8.4",
46
+ "vite": "3.1.8"
47
47
  },
48
48
  "__qwik__": {
49
49
  "priority": -1