Elder.js template project. It is part template, part tutorial. Dive in!
The Elder.js Template Project is a project template designed for Elder.js apps. It provides a starting point for creating apps using Elder.js, a static site generator for Svelte. The template can be found on GitHub at https://github.com/elderjs/template. Elder.js source code can be accessed at https://github.com/elderjs/elderjs. A live demo of the template can be viewed at https://elderjs.pages.dev/.
@elderjs/plugin-browser-reload
plugin, the browser will automatically restart after the server restarts, providing a seamless development experience.npm run esbuild
command, which provides a faster development experience and is expected to improve rapidly.To create a new project based on the Elder.js Template Project using degit, follow these steps:
npm install
or yarn install
.npm run dev
or yarn dev
.localhost:3000
to view the app running.src
directory, save it, and the page will automatically reload to reflect the changes.If you want to build the HTML for production, run the following command:
npm run build
This will generate all of your statically generated files in the ./public
directory.
To run the app in SSR mode for production, use the following command:
npm start
The Elder.js Template Project is a project template designed to facilitate the creation of Elder.js apps. It offers easy setup, live reloading, Rollup integration, browser reload support, and experimental ESBuild capabilities. By following the installation guide, developers can quickly set up their projects and start building static sites or apps using Elder.js.