1.3.1 • Published 4 years ago
elderjs-template v1.3.1
Elder.js Template Project
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.pages.dev/
Get started
To create a new project based on this template using degit:
npx degit Elderjs/template elderjs-app
cd elderjs-appInstall the dependencies:
npm install # or just yarnStart Project:
npm start # or npm run devNavigate to localhost:3000. You should see your app running.
This spawns a development server, so simply edit a file in src, save it, and reload the page to see your changes.
You can also see a live demo of this template: https://elderjs.pages.dev/
What to Expect
- A dev server is watching your files for changes. It will restart when it needs to.
- Rollup is watching your files for changes. It will restart when it needs to.
- If your
elder.config.jshas@elderjs/plugin-browser-reload': {}in it's plugins, your browser will automatically restart after the server restarts.
To Build HTML for Production:
npm run buildLet the build finish. It will put all of your statically generated files in ./public.
If you wish to preview you can use:
npx sirv-cli publicTo Run in SSR Mode for Production:
npm run serve1.3.1
4 years ago