This is a project template for Koa, Typescript and Svelte apps. It lives at https://github.com/Olyno/koa-ts-svelte.
To create a new project based on this template using degit:
npx degit Olyno/koa-ts-svelte project-name
cd project-nameNote that you will need to have Node.js installed.
Install the dependencies...
cd project-name
npm install # Or use yarn...then start Rollup:
npm run devThe url localhost:3000 will be automatically open in your browser. You should see your app running. Edit a file in src, save it, and see your changes in the browser.
The port of the website can be changed inside the .env file.
To create an optimised version of the app:
npm run buildBuilds should support IE11 using buble.
With now
Install now if you haven't already:
npm install -g nowThen, from within your project folder:
cd public
now deploy --name my-projectAs an alternative, use the Now desktop client and simply drag the unzipped project folder to the taskbar icon.
With surge
Install surge if you haven't already:
npm install -g surgeThen, from within your project folder:
npm run build
surge public my-project.surge.sh