create-qwik 0.11.1 → 0.12.0-dev20221021194131
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/index.cjs +40 -37
- package/package.json +1 -1
- package/starters/apps/base/.vscode/qwik.code-snippets +2 -2
- package/starters/apps/base/package.json +8 -7
- package/starters/apps/base/public/manifest.json +9 -0
- package/starters/apps/base/tsconfig.json +3 -0
- package/starters/apps/base/vite.config.ts +5 -0
- package/starters/apps/basic/package.json +6 -2
- package/starters/apps/basic/src/components/router-head/router-head.tsx +0 -7
- package/starters/apps/basic/src/global.css +1 -1
- package/starters/apps/basic/src/root.tsx +5 -2
- package/starters/apps/documentation-site/package.json +8 -4
- package/starters/apps/documentation-site/src/components/router-head/router-head.tsx +0 -7
- package/starters/apps/library/package.json +14 -9
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"prefix": "q:component",
|
|
5
5
|
"description": "Simple Qwik component",
|
|
6
6
|
"body": [
|
|
7
|
-
"export const ${1:${TM_FILENAME_BASE/(.*)/${1:/
|
|
7
|
+
"export const ${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}} = component$(() => {",
|
|
8
8
|
" return <${2:div}>$4</$2>",
|
|
9
9
|
"});"
|
|
10
10
|
]
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"prefix": "q:component w/props",
|
|
15
15
|
"description": "Qwik component w/ props",
|
|
16
16
|
"body": [
|
|
17
|
-
"export interface ${1:${TM_FILENAME_BASE/(.*)/${1:/
|
|
17
|
+
"export interface ${1:${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/}}Props {",
|
|
18
18
|
" $2",
|
|
19
19
|
"}",
|
|
20
20
|
"",
|
|
@@ -9,24 +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
|
|
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
16
|
"qwik": "qwik"
|
|
16
17
|
},
|
|
17
18
|
"devDependencies": {
|
|
18
|
-
"@builder.io/qwik": "0.
|
|
19
|
-
"@builder.io/qwik-city": "0.0.
|
|
19
|
+
"@builder.io/qwik": "0.12.0-dev20221021194131",
|
|
20
|
+
"@builder.io/qwik-city": "0.0.116",
|
|
20
21
|
"@types/eslint": "8.4.6",
|
|
21
22
|
"@types/node": "latest",
|
|
22
|
-
"@typescript-eslint/eslint-plugin": "5.40.
|
|
23
|
-
"@typescript-eslint/parser": "5.40.
|
|
24
|
-
"eslint-plugin-qwik": "0.
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "5.40.1",
|
|
24
|
+
"@typescript-eslint/parser": "5.40.1",
|
|
25
|
+
"eslint-plugin-qwik": "0.12.0-dev20221021194131",
|
|
25
26
|
"eslint": "8.25.0",
|
|
26
27
|
"node-fetch": "3.2.10",
|
|
27
28
|
"prettier": "2.7.1",
|
|
28
29
|
"typescript": "4.8.4",
|
|
29
|
-
"vite": "3.1.
|
|
30
|
+
"vite": "3.1.8",
|
|
30
31
|
"vite-tsconfig-paths": "3.5.0"
|
|
31
32
|
},
|
|
32
33
|
"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
|
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qwik-basic-starter",
|
|
3
|
-
"description": "
|
|
3
|
+
"description": "App with Routing built-in (recommended)",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"__qwik__": {
|
|
6
6
|
"priority": 1,
|
|
7
|
-
"
|
|
7
|
+
"displayName": "Basic App (QwikCity)",
|
|
8
|
+
"qwikCity": true,
|
|
9
|
+
"docs": [
|
|
10
|
+
"https://qwik.builder.io/docs/overview/"
|
|
11
|
+
]
|
|
8
12
|
}
|
|
9
13
|
}
|
|
@@ -16,13 +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&display=swap"
|
|
23
|
-
rel="stylesheet"
|
|
24
|
-
/>
|
|
25
|
-
|
|
26
19
|
{head.meta.map((m) => (
|
|
27
20
|
<meta {...m} />
|
|
28
21
|
))}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
body {
|
|
17
17
|
background-color: #fafafa;
|
|
18
|
-
font-family:
|
|
18
|
+
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
|
|
19
19
|
padding: 20px 20px 40px 20px;
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { component$ } from '@builder.io/qwik';
|
|
1
|
+
import { component$, useStyles$ } from '@builder.io/qwik';
|
|
2
2
|
import { QwikCity, RouterOutlet, ServiceWorkerRegister } from '@builder.io/qwik-city';
|
|
3
3
|
import { RouterHead } from './components/router-head/router-head';
|
|
4
4
|
|
|
5
|
-
import './global.css';
|
|
5
|
+
import globalStyles from './global.css?inline';
|
|
6
6
|
|
|
7
7
|
export default component$(() => {
|
|
8
8
|
/**
|
|
@@ -11,10 +11,13 @@ export default component$(() => {
|
|
|
11
11
|
*
|
|
12
12
|
* Dont remove the `<head>` and `<body>` elements.
|
|
13
13
|
*/
|
|
14
|
+
useStyles$(globalStyles);
|
|
15
|
+
|
|
14
16
|
return (
|
|
15
17
|
<QwikCity>
|
|
16
18
|
<head>
|
|
17
19
|
<meta charSet="utf-8" />
|
|
20
|
+
<link rel="manifest" href="/manifest.json" />
|
|
18
21
|
<RouterHead />
|
|
19
22
|
</head>
|
|
20
23
|
<body lang="en">
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qwik-docs-starter",
|
|
3
|
-
"description": "
|
|
3
|
+
"description": "Basic start point to build a docs site with Qwik",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"__qwik__": {
|
|
5
6
|
"priority": 0,
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
"displayName": "Documentation site (QwikCity)",
|
|
8
|
+
"qwikCity": true,
|
|
9
|
+
"docs": [
|
|
10
|
+
"https://qwik.builder.io/docs/overview/"
|
|
11
|
+
]
|
|
12
|
+
}
|
|
9
13
|
}
|
|
@@ -16,13 +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&display=swap"
|
|
23
|
-
rel="stylesheet"
|
|
24
|
-
/>
|
|
25
|
-
|
|
26
19
|
{head.meta.map((m) => (
|
|
27
20
|
<meta {...m} />
|
|
28
21
|
))}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "qwik-library-name",
|
|
3
|
-
"description": "Create a component library",
|
|
3
|
+
"description": "Create a reusable Qwik component library",
|
|
4
4
|
"version": "0.0.1",
|
|
5
5
|
"private": false,
|
|
6
|
-
"main": "./lib/index.qwik.
|
|
6
|
+
"main": "./lib/index.qwik.mjs",
|
|
7
7
|
"qwik": "./lib/index.qwik.mjs",
|
|
8
8
|
"module": "./lib/index.qwik.mjs",
|
|
9
9
|
"types": "./lib-types/index.d.ts",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
13
|
"import": "./lib/index.qwik.mjs",
|
|
14
|
-
"require": "./lib/index.qwik.cjs"
|
|
14
|
+
"require": "./lib/index.qwik.cjs",
|
|
15
|
+
"types": "./lib-types/index.d.ts"
|
|
15
16
|
}
|
|
16
17
|
},
|
|
17
18
|
"files": [
|
|
@@ -26,26 +27,30 @@
|
|
|
26
27
|
"dev.debug": "node --inspect-brk ./node_modules/vite/bin/vite.js --mode ssr --force",
|
|
27
28
|
"fmt": "prettier --write .",
|
|
28
29
|
"fmt.check": "prettier --check .",
|
|
29
|
-
"lint": "eslint
|
|
30
|
+
"lint": "eslint src/**/*.ts*",
|
|
30
31
|
"start": "vite --open --mode ssr",
|
|
31
32
|
"qwik": "qwik",
|
|
32
33
|
"release": "np"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
|
-
"@builder.io/qwik": "0.
|
|
36
|
+
"@builder.io/qwik": "0.12.0",
|
|
36
37
|
"@types/eslint": "8.4.6",
|
|
37
38
|
"@types/node": "latest",
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "5.40.
|
|
39
|
-
"@typescript-eslint/parser": "5.40.
|
|
39
|
+
"@typescript-eslint/eslint-plugin": "5.40.1",
|
|
40
|
+
"@typescript-eslint/parser": "5.40.1",
|
|
40
41
|
"eslint-plugin-qwik": "latest",
|
|
41
42
|
"eslint": "8.25.0",
|
|
42
43
|
"node-fetch": "3.2.10",
|
|
43
44
|
"np": "7.6.1",
|
|
44
45
|
"prettier": "2.7.1",
|
|
45
46
|
"typescript": "4.8.4",
|
|
46
|
-
"vite": "3.1.
|
|
47
|
+
"vite": "3.1.8"
|
|
47
48
|
},
|
|
48
49
|
"__qwik__": {
|
|
49
|
-
"
|
|
50
|
+
"displayName": "Component library",
|
|
51
|
+
"priority": -1,
|
|
52
|
+
"docs": [
|
|
53
|
+
"https://qwik.builder.io/docs/overview/"
|
|
54
|
+
]
|
|
50
55
|
}
|
|
51
56
|
}
|