create-vite-extra 0.1.4 → 0.1.6
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/README.md +1 -1
- package/package.json +1 -1
- package/template-deno-lit/README.md +1 -1
- package/template-deno-lit/vite.config.mjs +3 -2
- package/template-deno-preact/README.md +1 -1
- package/template-deno-preact/vite.config.mjs +2 -2
- package/template-deno-react/README.md +1 -1
- package/template-deno-react/vite.config.mjs +2 -2
- package/template-deno-svelte/README.md +1 -1
- package/template-deno-svelte/vite.config.mjs +1 -1
- package/template-deno-vue/README.md +1 -1
- package/template-deno-vue/src/main.js +4 -4
- package/template-deno-vue/vite.config.mjs +5 -6
package/README.md
CHANGED
|
@@ -73,7 +73,7 @@ You can use `.` for the project name to scaffold in the current directory.
|
|
|
73
73
|
|
|
74
74
|
## Community Templates
|
|
75
75
|
|
|
76
|
-
create-vite is a tool to quickly start a project from a basic template for popular frameworks. Check out Awesome Vite for [community maintained templates](https://github.com/vitejs/awesome-vite#templates) that include other tools or target different frameworks. You can use a tool like [degit](https://github.com/Rich-Harris/degit) to scaffold your project with one of the templates.
|
|
76
|
+
create-vite-extra is a tool to quickly start a project from a basic template for popular frameworks. Check out Awesome Vite for [community maintained templates](https://github.com/vitejs/awesome-vite#templates) that include other tools or target different frameworks. You can use a tool like [degit](https://github.com/Rich-Harris/degit) to scaffold your project with one of the templates.
|
|
77
77
|
|
|
78
78
|
```bash
|
|
79
79
|
npx degit user/project my-project
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { defineConfig } from 'npm:vite'
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import 'npm:lit'
|
|
4
4
|
|
|
5
5
|
// https://vitejs.dev/config/
|
|
6
6
|
export default defineConfig({
|
|
7
7
|
build: {
|
|
8
8
|
lib: {
|
|
9
9
|
entry: 'src/my-element.js',
|
|
10
|
-
formats: ['es']
|
|
10
|
+
formats: ['es'],
|
|
11
|
+
fileName: 'app'
|
|
11
12
|
},
|
|
12
13
|
rollupOptions: {
|
|
13
14
|
external: /^lit/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineConfig } from 'npm:vite'
|
|
2
2
|
import react from 'npm:@vitejs/plugin-react'
|
|
3
3
|
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import 'npm:react'
|
|
5
|
+
import 'npm:react-dom/client'
|
|
6
6
|
|
|
7
7
|
// https://vitejs.dev/config/
|
|
8
8
|
export default defineConfig({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createApp } from
|
|
2
|
-
import
|
|
3
|
-
import App from
|
|
1
|
+
import { createApp } from 'vue'
|
|
2
|
+
import './style.css'
|
|
3
|
+
import App from './App.vue'
|
|
4
4
|
|
|
5
|
-
createApp(App).mount(
|
|
5
|
+
createApp(App).mount('#app')
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { defineConfig } from
|
|
2
|
-
import vue from
|
|
1
|
+
import { defineConfig } from 'npm:vite'
|
|
2
|
+
import vue from 'npm:@vitejs/plugin-vue'
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
import "npm:vue";
|
|
4
|
+
import 'npm:vue'
|
|
6
5
|
|
|
7
6
|
// https://vitejs.dev/config/
|
|
8
7
|
export default defineConfig({
|
|
9
|
-
plugins: [vue()]
|
|
10
|
-
})
|
|
8
|
+
plugins: [vue()]
|
|
9
|
+
})
|