Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/escluse/create-mini
the web should be simple.
https://github.com/escluse/create-mini
denoland javascript scaffold sveltejs sveltekit tailwind template vitejs
Last synced: about 6 hours ago
JSON representation
the web should be simple.
- Host: GitHub
- URL: https://github.com/escluse/create-mini
- Owner: escluse
- License: mit
- Created: 2024-10-29T21:20:39.000Z (4 months ago)
- Default Branch: trunk
- Last Pushed: 2025-01-03T05:48:53.000Z (about 1 month ago)
- Last Synced: 2025-01-03T06:29:16.831Z (about 1 month ago)
- Topics: denoland, javascript, scaffold, sveltejs, sveltekit, tailwind, template, vitejs
- Language: Svelte
- Homepage:
- Size: 34.2 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Mini-modern Web Stack
Using a modern web development stack with minimal files by leveraging Deno.
- `deno` our JavaScript runtime and package manager
- `vite` the only build tool that matters
- `svelte` framework for building interfaces
- `sveltekit` out the box web app solutions e.g., routing
- `tailwindcss` flexible CSS framework**NOTE:** `deno` (as of version `2.1.4`) doesn't support the generated
`./$types` used by SvelteKit. However, it seems that they're working on
[fixing this](https://github.com/denoland/deno/issues/26871#issuecomment-2476706636).
Refer to
[this issue](https://github.com/denoland/deno/issues/17248#issuecomment-2551393652)
for the nitty-gritty.Consequently, the following won't work:
```ts
import type { PageLoad } from "./$types"; // ERROR: Unable to load local module.export const load: PageLoad = async ({ fetch, params }) => {
const res = await fetch(`/api/items/${params.id}`);
const item = await res.json();return { item };
};
```#### Getting Started
```shell
deno task dev
```If you encounter an error, it's likely SvelteKit related. SvelteKit uses
scripts, which Deno disables by default.Run the following to fix things:
```shell
deno install --allow-scripts=npm@sveltejs/[email protected]
```