WARNING: This is just a testbed for me to mess around with things I'm interested in learning about. Please use the original repo, not my fork.
This is an example project using Mithril and TypeScript.
npm install
npm start
Then go to http://localhost:3000 in your browser. This will serve the files in the public
directory, defaulting to the index.html
file.
The file public/js/app.js
is rebuilt whenever the ts sources are recompiled.
While this npm script is running, edits made to src/*.ts files will be recompiled automatically so you can simply refresh your browser to see the updated app.
npm run build
Will output a minified app.js
file in public/js