Skip to content

Commit

Permalink
chore(create-app): update svelte templates for JSON imports (#3142)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrygrFlzr committed Apr 25, 2021
1 parent 0423608 commit 6f97343
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 14 deletions.
2 changes: 0 additions & 2 deletions packages/create-app/template-svelte-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ Check out [SvelteKit](https://github.com/sveltejs/kit#readme), which is also pow

**Why use this over SvelteKit?**

- SvelteKit is still a work-in-progress.
- It currently does not support the pure-SPA use case.
- It brings its own routing solution which might not be preferable for some users.
- It is first and foremost a framework that just happens to use Vite under the hood, not a Vite app.
`vite dev` and `vite build` wouldn't work in a SvelteKit environment, for example.
Expand Down
12 changes: 6 additions & 6 deletions packages/create-app/template-svelte-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"serve": "vite preview"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "next",
"svelte": "^3.35.0",
"svelte-preprocess": "^4.6.9",
"typescript": "^4.2.3",
"vite": "^2.1.5"
"@sveltejs/vite-plugin-svelte": "^1.0.0-next.7",
"svelte": "^3.37.0",
"svelte-preprocess": "^4.7.2",
"typescript": "^4.2.4",
"vite": "^2.2.2"
}
}
}
1 change: 1 addition & 0 deletions packages/create-app/template-svelte-ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/
"importsNotUsedAsValues": "error",
"isolatedModules": true,
"resolveJsonModule": true,
/**
* To have warnings / errors of the Svelte compiler at the
* correct position, enable source maps by default.
Expand Down
2 changes: 0 additions & 2 deletions packages/create-app/template-svelte/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ Check out [SvelteKit](https://github.com/sveltejs/kit#readme), which is also pow

**Why use this over SvelteKit?**

- SvelteKit is still a work-in-progress.
- It currently does not support the pure-SPA use case.
- It brings its own routing solution which might not be preferable for some users.
- It is first and foremost a framework that just happens to use Vite under the hood, not a Vite app.
`vite dev` and `vite build` wouldn't work in a SvelteKit environment, for example.
Expand Down
1 change: 1 addition & 0 deletions packages/create-app/template-svelte/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/
"importsNotUsedAsValues": "error",
"isolatedModules": true,
"resolveJsonModule": true,
/**
* To have warnings / errors of the Svelte compiler at the
* correct position, enable source maps by default.
Expand Down
8 changes: 4 additions & 4 deletions packages/create-app/template-svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"serve": "vite preview"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "next",
"svelte": "^3.35.0",
"vite": "^2.1.5"
"@sveltejs/vite-plugin-svelte": "^1.0.0-next.7",
"svelte": "^3.37.0",
"vite": "^2.2.2"
}
}
}

0 comments on commit 6f97343

Please sign in to comment.