create-vite-extra 0.0.1 → 0.1.0

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.js CHANGED
@@ -241,7 +241,7 @@ async function init() {
241
241
  }
242
242
 
243
243
  // determine template
244
- template = variant || framework.name || template
244
+ template = variant || framework?.name || template
245
245
 
246
246
  console.log(`\nScaffolding project in ${root}...`)
247
247
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vite-extra",
3
- "version": "0.0.1",
3
+ "version": "0.1.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Bjorn Lu",
@@ -31,4 +31,4 @@
31
31
  "minimist": "^1.2.6",
32
32
  "prompts": "^2.4.2"
33
33
  }
34
- }
34
+ }
@@ -14,9 +14,8 @@
14
14
  "resolveJsonModule": true,
15
15
  "isolatedModules": true,
16
16
  "noEmit": true,
17
- "jsx": "preserve",
18
- "jsxFactory": "h",
19
- "jsxFragmentFactory": "Fragment"
17
+ "jsx": "react-jsx",
18
+ "jsxImportSource": "preact"
20
19
  },
21
20
  "include": ["src"],
22
21
  "references": [{ "path": "./tsconfig.node.json" }]
@@ -16,7 +16,6 @@ Check out [SvelteKit](https://github.com/sveltejs/kit#readme), which is also pow
16
16
 
17
17
  - It brings its own routing solution which might not be preferable for some users.
18
18
  - It is first and foremost a framework that just happens to use Vite under the hood, not a Vite app.
19
- `vite dev` and `vite build` wouldn't work in a SvelteKit environment, for example.
20
19
 
21
20
  This template contains as little as possible to get started with Vite + Svelte, while taking into account the developer experience with regards to HMR and intellisense. It demonstrates capabilities on par with the other `create-vite` templates and is a good starting point for beginners dipping their toes into a Vite + Svelte project.
22
21
 
@@ -19,7 +19,6 @@
19
19
  "esModuleInterop": true,
20
20
  "skipLibCheck": true,
21
21
  "forceConsistentCasingInFileNames": true,
22
- "baseUrl": ".",
23
22
  /**
24
23
  * Typecheck JS in `.svelte` and `.js` files by default.
25
24
  * Disable this if you'd like to use dynamic types.
@@ -16,7 +16,6 @@ Check out [SvelteKit](https://github.com/sveltejs/kit#readme), which is also pow
16
16
 
17
17
  - It brings its own routing solution which might not be preferable for some users.
18
18
  - It is first and foremost a framework that just happens to use Vite under the hood, not a Vite app.
19
- `vite dev` and `vite build` wouldn't work in a SvelteKit environment, for example.
20
19
 
21
20
  This template contains as little as possible to get started with Vite + TypeScript + Svelte, while taking into account the developer experience with regards to HMR and intellisense. It demonstrates capabilities on par with the other `create-vite` templates and is a good starting point for beginners dipping their toes into a Vite + Svelte project.
22
21
 
@@ -5,7 +5,6 @@
5
5
  "useDefineForClassFields": true,
6
6
  "module": "ESNext",
7
7
  "resolveJsonModule": true,
8
- "baseUrl": ".",
9
8
  /**
10
9
  * Typecheck JS in `.svelte` and `.js` files by default.
11
10
  * Disable checkJs if you'd like to use dynamic types in JS.
@@ -4,6 +4,6 @@ export function setupCounter(element) {
4
4
  counter = count
5
5
  element.innerHTML = `count is ${counter}`
6
6
  }
7
- element.addEventListener('click', () => setCounter(++counter))
7
+ element.addEventListener('click', () => setCounter(counter + 1))
8
8
  setCounter(0)
9
9
  }
@@ -4,6 +4,6 @@ export function setupCounter(element: HTMLButtonElement) {
4
4
  counter = count
5
5
  element.innerHTML = `count is ${counter}`
6
6
  }
7
- element.addEventListener('click', () => setCounter(++counter))
7
+ element.addEventListener('click', () => setCounter(counter + 1))
8
8
  setCounter(0)
9
9
  }
@@ -6,7 +6,6 @@
6
6
  "lib": ["ESNext", "DOM"],
7
7
  "moduleResolution": "Node",
8
8
  "strict": true,
9
- "sourceMap": true,
10
9
  "resolveJsonModule": true,
11
10
  "isolatedModules": true,
12
11
  "esModuleInterop": true,
@@ -6,12 +6,12 @@
6
6
  "moduleResolution": "Node",
7
7
  "strict": true,
8
8
  "jsx": "preserve",
9
- "sourceMap": true,
10
9
  "resolveJsonModule": true,
11
10
  "isolatedModules": true,
12
11
  "esModuleInterop": true,
13
12
  "lib": ["ESNext", "DOM"],
14
- "skipLibCheck": true
13
+ "skipLibCheck": true,
14
+ "noEmit": true
15
15
  },
16
16
  "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"],
17
17
  "references": [{ "path": "./tsconfig.node.json" }]
@@ -1 +0,0 @@
1
- import JSX = preact.JSX