This is a project template for Elder.js apps. The template lives at https://github.com/elderjs/template and the Elder.js source is here: https://github.com/elderjs/elderjs
Here is a demo of the template: https://elderjs.netlify.app/
To create a new project based on this template using degit:
npx degit Elderjs/template elderjs-app
cd elderjs-app
npm install # or just yarn
npm start
Navigate to localhost:3000. You should see your app running.
For development, we recommend running two separate terminals. One for the server and the other for rollup.
Terminal 1
npm run dev:server # `npm start` above starts a server, but doesn't rebuild your Svelte components on change.
Terminal 2
npm run dev:rollup # This rebuilds your svelte components on change.
Once you have these two terminals open, edit a component file in src
, save it, and reload the page to see your changes.
npm run build
This will build all of your html into the /public/ folder.
elder.config.js
has @elderjs/plugin-browser-reload': {}
in it's plugins, your browser will automatically restart after the server restarts.