create-vite-extra 0.0.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/LICENSE +21 -0
- package/README.md +79 -0
- package/index.js +384 -0
- package/package.json +34 -0
- package/template-library/_gitignore +24 -0
- package/template-library/index.d.ts +1 -0
- package/template-library/index.html +13 -0
- package/template-library/javascript.svg +1 -0
- package/template-library/lib/main.js +9 -0
- package/template-library/main.js +23 -0
- package/template-library/package.json +22 -0
- package/template-library/public/vite.svg +1 -0
- package/template-library/style.css +97 -0
- package/template-library/vite.config.js +11 -0
- package/template-library-ts/_gitignore +24 -0
- package/template-library-ts/index.d.ts +1 -0
- package/template-library-ts/index.html +13 -0
- package/template-library-ts/lib/main.ts +9 -0
- package/template-library-ts/package.json +23 -0
- package/template-library-ts/public/vite.svg +1 -0
- package/template-library-ts/src/main.ts +23 -0
- package/template-library-ts/src/style.css +97 -0
- package/template-library-ts/src/typescript.svg +1 -0
- package/template-library-ts/src/vite-env.d.ts +1 -0
- package/template-library-ts/tsconfig.json +20 -0
- package/template-library-ts/vite.config.ts +11 -0
- package/template-ssr-preact/_gitignore +24 -0
- package/template-ssr-preact/index.html +14 -0
- package/template-ssr-preact/package.json +25 -0
- package/template-ssr-preact/public/vite.svg +1 -0
- package/template-ssr-preact/server.js +71 -0
- package/template-ssr-preact/src/app.css +25 -0
- package/template-ssr-preact/src/app.jsx +32 -0
- package/template-ssr-preact/src/assets/preact.svg +1 -0
- package/template-ssr-preact/src/entry-client.jsx +5 -0
- package/template-ssr-preact/src/entry-server.jsx +7 -0
- package/template-ssr-preact/src/index.css +70 -0
- package/template-ssr-preact/vite.config.js +15 -0
- package/template-ssr-preact-ts/_gitignore +24 -0
- package/template-ssr-preact-ts/index.html +14 -0
- package/template-ssr-preact-ts/package.json +27 -0
- package/template-ssr-preact-ts/public/vite.svg +1 -0
- package/template-ssr-preact-ts/server.js +71 -0
- package/template-ssr-preact-ts/src/app.css +25 -0
- package/template-ssr-preact-ts/src/app.tsx +32 -0
- package/template-ssr-preact-ts/src/assets/preact.svg +1 -0
- package/template-ssr-preact-ts/src/entry-client.tsx +5 -0
- package/template-ssr-preact-ts/src/entry-server.tsx +7 -0
- package/template-ssr-preact-ts/src/index.css +70 -0
- package/template-ssr-preact-ts/src/preact.d.ts +1 -0
- package/template-ssr-preact-ts/src/vite-env.d.ts +1 -0
- package/template-ssr-preact-ts/tsconfig.json +23 -0
- package/template-ssr-preact-ts/tsconfig.node.json +16 -0
- package/template-ssr-preact-ts/vite.config.ts +15 -0
- package/template-ssr-react/_gitignore +24 -0
- package/template-ssr-react/index.html +14 -0
- package/template-ssr-react/package.json +27 -0
- package/template-ssr-react/public/vite.svg +1 -0
- package/template-ssr-react/server.js +71 -0
- package/template-ssr-react/src/App.css +41 -0
- package/template-ssr-react/src/App.jsx +34 -0
- package/template-ssr-react/src/assets/react.svg +1 -0
- package/template-ssr-react/src/entry-client.jsx +11 -0
- package/template-ssr-react/src/entry-server.jsx +12 -0
- package/template-ssr-react/src/index.css +70 -0
- package/template-ssr-react/vite.config.js +7 -0
- package/template-ssr-react-ts/_gitignore +24 -0
- package/template-ssr-react-ts/index.html +14 -0
- package/template-ssr-react-ts/package.json +28 -0
- package/template-ssr-react-ts/public/vite.svg +1 -0
- package/template-ssr-react-ts/server.js +71 -0
- package/template-ssr-react-ts/src/App.css +41 -0
- package/template-ssr-react-ts/src/App.tsx +34 -0
- package/template-ssr-react-ts/src/assets/react.svg +1 -0
- package/template-ssr-react-ts/src/entry-client.tsx +11 -0
- package/template-ssr-react-ts/src/entry-server.tsx +12 -0
- package/template-ssr-react-ts/src/index.css +70 -0
- package/template-ssr-react-ts/src/vite-env.d.ts +1 -0
- package/template-ssr-react-ts/tsconfig.json +21 -0
- package/template-ssr-react-ts/tsconfig.node.json +15 -0
- package/template-ssr-react-ts/vite.config.ts +7 -0
- package/template-ssr-svelte/.vscode/extensions.json +3 -0
- package/template-ssr-svelte/README.md +48 -0
- package/template-ssr-svelte/_gitignore +24 -0
- package/template-ssr-svelte/index.html +14 -0
- package/template-ssr-svelte/jsconfig.json +34 -0
- package/template-ssr-svelte/package.json +24 -0
- package/template-ssr-svelte/public/vite.svg +1 -0
- package/template-ssr-svelte/server.js +71 -0
- package/template-ssr-svelte/src/App.svelte +45 -0
- package/template-ssr-svelte/src/app.css +81 -0
- package/template-ssr-svelte/src/assets/svelte.svg +1 -0
- package/template-ssr-svelte/src/entry-client.js +7 -0
- package/template-ssr-svelte/src/entry-server.js +6 -0
- package/template-ssr-svelte/src/lib/Counter.svelte +10 -0
- package/template-ssr-svelte/src/vite-env.d.ts +2 -0
- package/template-ssr-svelte/vite.config.js +13 -0
- package/template-ssr-svelte-ts/.vscode/extensions.json +3 -0
- package/template-ssr-svelte-ts/README.md +48 -0
- package/template-ssr-svelte-ts/_gitignore +24 -0
- package/template-ssr-svelte-ts/index.html +14 -0
- package/template-ssr-svelte-ts/package.json +29 -0
- package/template-ssr-svelte-ts/public/vite.svg +1 -0
- package/template-ssr-svelte-ts/server.js +71 -0
- package/template-ssr-svelte-ts/src/App.svelte +45 -0
- package/template-ssr-svelte-ts/src/app.css +81 -0
- package/template-ssr-svelte-ts/src/assets/svelte.svg +1 -0
- package/template-ssr-svelte-ts/src/entry-client.ts +7 -0
- package/template-ssr-svelte-ts/src/entry-server.ts +6 -0
- package/template-ssr-svelte-ts/src/lib/Counter.svelte +10 -0
- package/template-ssr-svelte-ts/src/vite-env.d.ts +2 -0
- package/template-ssr-svelte-ts/svelte.config.js +7 -0
- package/template-ssr-svelte-ts/tsconfig.json +21 -0
- package/template-ssr-svelte-ts/tsconfig.node.json +8 -0
- package/template-ssr-svelte-ts/vite.config.ts +13 -0
- package/template-ssr-transform/README.md +3 -0
- package/template-ssr-transform/_gitignore +24 -0
- package/template-ssr-transform/package.json +12 -0
- package/template-ssr-transform/src/foo.js +3 -0
- package/template-ssr-transform/src/main.js +5 -0
- package/template-ssr-transform/test.js +13 -0
- package/template-ssr-vanilla/_gitignore +24 -0
- package/template-ssr-vanilla/index.html +14 -0
- package/template-ssr-vanilla/package.json +22 -0
- package/template-ssr-vanilla/public/vite.svg +1 -0
- package/template-ssr-vanilla/server.js +71 -0
- package/template-ssr-vanilla/src/counter.js +9 -0
- package/template-ssr-vanilla/src/entry-client.js +5 -0
- package/template-ssr-vanilla/src/entry-server.js +22 -0
- package/template-ssr-vanilla/src/javascript.svg +1 -0
- package/template-ssr-vanilla/src/style.css +97 -0
- package/template-ssr-vanilla-ts/_gitignore +24 -0
- package/template-ssr-vanilla-ts/index.html +14 -0
- package/template-ssr-vanilla-ts/package.json +25 -0
- package/template-ssr-vanilla-ts/public/vite.svg +1 -0
- package/template-ssr-vanilla-ts/server.js +71 -0
- package/template-ssr-vanilla-ts/src/counter.ts +9 -0
- package/template-ssr-vanilla-ts/src/entry-client.ts +5 -0
- package/template-ssr-vanilla-ts/src/entry-server.ts +22 -0
- package/template-ssr-vanilla-ts/src/style.css +97 -0
- package/template-ssr-vanilla-ts/src/typescript.svg +1 -0
- package/template-ssr-vanilla-ts/src/vite-env.d.ts +1 -0
- package/template-ssr-vanilla-ts/tsconfig.json +22 -0
- package/template-ssr-vanilla-ts/tsconfig.node.json +8 -0
- package/template-ssr-vue/.vscode/extensions.json +3 -0
- package/template-ssr-vue/README.md +7 -0
- package/template-ssr-vue/_gitignore +24 -0
- package/template-ssr-vue/index.html +14 -0
- package/template-ssr-vue/package.json +24 -0
- package/template-ssr-vue/public/vite.svg +1 -0
- package/template-ssr-vue/server.js +71 -0
- package/template-ssr-vue/src/App.vue +31 -0
- package/template-ssr-vue/src/assets/vue.svg +1 -0
- package/template-ssr-vue/src/components/HelloWorld.vue +40 -0
- package/template-ssr-vue/src/entry-client.js +6 -0
- package/template-ssr-vue/src/entry-server.js +15 -0
- package/template-ssr-vue/src/main.js +10 -0
- package/template-ssr-vue/src/style.css +90 -0
- package/template-ssr-vue/vite.config.js +7 -0
- package/template-ssr-vue-ts/.vscode/extensions.json +3 -0
- package/template-ssr-vue-ts/README.md +16 -0
- package/template-ssr-vue-ts/_gitignore +24 -0
- package/template-ssr-vue-ts/index.html +14 -0
- package/template-ssr-vue-ts/package.json +26 -0
- package/template-ssr-vue-ts/public/vite.svg +1 -0
- package/template-ssr-vue-ts/server.js +71 -0
- package/template-ssr-vue-ts/src/App.vue +31 -0
- package/template-ssr-vue-ts/src/assets/vue.svg +1 -0
- package/template-ssr-vue-ts/src/components/HelloWorld.vue +38 -0
- package/template-ssr-vue-ts/src/entry-client.ts +6 -0
- package/template-ssr-vue-ts/src/entry-server.ts +15 -0
- package/template-ssr-vue-ts/src/main.ts +10 -0
- package/template-ssr-vue-ts/src/style.css +81 -0
- package/template-ssr-vue-ts/src/vite-env.d.ts +7 -0
- package/template-ssr-vue-ts/tsconfig.json +18 -0
- package/template-ssr-vue-ts/tsconfig.node.json +9 -0
- package/template-ssr-vue-ts/vite.config.ts +7 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
font-family: Inter, Avenir, Helvetica, Arial, sans-serif;
|
|
3
|
+
font-size: 16px;
|
|
4
|
+
line-height: 24px;
|
|
5
|
+
font-weight: 400;
|
|
6
|
+
|
|
7
|
+
color-scheme: light dark;
|
|
8
|
+
color: rgba(255, 255, 255, 0.87);
|
|
9
|
+
background-color: #242424;
|
|
10
|
+
|
|
11
|
+
font-synthesis: none;
|
|
12
|
+
text-rendering: optimizeLegibility;
|
|
13
|
+
-webkit-font-smoothing: antialiased;
|
|
14
|
+
-moz-osx-font-smoothing: grayscale;
|
|
15
|
+
-webkit-text-size-adjust: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
a {
|
|
19
|
+
font-weight: 500;
|
|
20
|
+
color: #646cff;
|
|
21
|
+
text-decoration: inherit;
|
|
22
|
+
}
|
|
23
|
+
a:hover {
|
|
24
|
+
color: #535bf2;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
body {
|
|
28
|
+
margin: 0;
|
|
29
|
+
display: flex;
|
|
30
|
+
place-items: center;
|
|
31
|
+
min-width: 320px;
|
|
32
|
+
min-height: 100vh;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
h1 {
|
|
36
|
+
font-size: 3.2em;
|
|
37
|
+
line-height: 1.1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
button {
|
|
41
|
+
border-radius: 8px;
|
|
42
|
+
border: 1px solid transparent;
|
|
43
|
+
padding: 0.6em 1.2em;
|
|
44
|
+
font-size: 1em;
|
|
45
|
+
font-weight: 500;
|
|
46
|
+
font-family: inherit;
|
|
47
|
+
background-color: #1a1a1a;
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
transition: border-color 0.25s;
|
|
50
|
+
}
|
|
51
|
+
button:hover {
|
|
52
|
+
border-color: #646cff;
|
|
53
|
+
}
|
|
54
|
+
button:focus,
|
|
55
|
+
button:focus-visible {
|
|
56
|
+
outline: 4px auto -webkit-focus-ring-color;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.card {
|
|
60
|
+
padding: 2em;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
#app {
|
|
64
|
+
max-width: 1280px;
|
|
65
|
+
margin: 0 auto;
|
|
66
|
+
padding: 2rem;
|
|
67
|
+
text-align: center;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@media (prefers-color-scheme: light) {
|
|
71
|
+
:root {
|
|
72
|
+
color: #213547;
|
|
73
|
+
background-color: #ffffff;
|
|
74
|
+
}
|
|
75
|
+
a:hover {
|
|
76
|
+
color: #747bff;
|
|
77
|
+
}
|
|
78
|
+
button {
|
|
79
|
+
background-color: #f9f9f9;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"moduleResolution": "Node",
|
|
7
|
+
"strict": true,
|
|
8
|
+
"jsx": "preserve",
|
|
9
|
+
"sourceMap": true,
|
|
10
|
+
"resolveJsonModule": true,
|
|
11
|
+
"isolatedModules": true,
|
|
12
|
+
"esModuleInterop": true,
|
|
13
|
+
"lib": ["ESNext", "DOM"],
|
|
14
|
+
"skipLibCheck": true
|
|
15
|
+
},
|
|
16
|
+
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
|
|
17
|
+
"references": [{ "path": "./tsconfig.node.json" }]
|
|
18
|
+
}
|