WuTheFWasThat / svelte-typescript-boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

svelte-typescript-boilerplate [unmaintained]

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

Structure

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.

Installation

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.

License

MIT

About

License:MIT License


Languages

Language:JavaScript 76.8%Language:TypeScript 21.2%Language:HTML 1.9%Language:CSS 0.2%