This is a Svelte Starter-Project based on brakmic/Svelte-TypeScript-WebPack-Starter containing:
- Svelte v2.9.9
- TypeScript
- jQuery 3
- WebPack 4
- Bootstrap 3
- Font-Awesome
- Lodash
- whatwg-fetch
The core of the app is located in main.ts which uses the main Svelte component.
The definition of the component itself is located here. It fetches JSON-data from a remote server and renders a simple table.
After a successful start the app will also provide a reference to itself in a globally available object window.app
, for dev purposes.
Styles can be added here.
npm install
Then type
npm run start:server
to run the app on http://localhost:3000.
To create a development build type
npm run build:dev
Afterwards, either copy the newly created dist
folder to your web server or type
npm run server:prod
to launch a local server on http://localhost:8080
For productive builds use build:prod
.