# elderjs-template

> This is a project template for [Elder.js](https://elderguide.com/tech/elderjs/) apps. The template lives at https://github.com/elderjs/template and the Elder.js source is here: https://github.com/elderjs/elderjs

Latest version **1.3.1** (published 2021-05-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install elderjs-template
pnpm add elderjs-template
yarn add elderjs-template
bun add elderjs-template
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.1 |
| Published | 2021-05-17 |
| First published | 2021-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 12.0.0 |
| Dependencies | 16 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 (+9 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 109 |
| Author | Nick Reese |
| Maintainers | nickreese |
| Keywords | svelte, elderjs, ssr, static, site, generator, seo, ssg, template, partial, hydration |

## Links

- npm: https://www.npmjs.com/package/elderjs-template
- Repository: https://github.com/Elderjs/template
- Homepage: https://github.com/Elderjs/template#readme
- Issues: https://github.com/Elderjs/template/issues
- npm.io page: https://npm.io/package/elderjs-template

## Dependencies (16)

- [del](https://npm.io/package/del.md) ^6.0.0
- [cors](https://npm.io/package/cors.md) ^2.8.5
- [glob](https://npm.io/package/glob.md) ^7.1.6
- [sirv](https://npm.io/package/sirv.md) ^1.0.11
- [polka](https://npm.io/package/polka.md) ^0.5.2
- [dotenv](https://npm.io/package/dotenv.md) ^8.2.0
- [svelte](https://npm.io/package/svelte.md) 3.35.0
- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.9
- [fs-extra](https://npm.io/package/fs-extra.md) ^9.1.0
- [body-parser](https://npm.io/package/body-parser.md) ^1.19.0
- [compression](https://npm.io/package/compression.md) ^1.7.4
- [@elderjs/elderjs](https://npm.io/package/@elderjs/elderjs.md) ^1.4.0
- [svelte-preprocess](https://npm.io/package/svelte-preprocess.md) ^4.6.9
- [intersection-observer](https://npm.io/package/intersection-observer.md) ^0.12.0
- [@elderjs/plugin-markdown](https://npm.io/package/@elderjs/plugin-markdown.md) ^0.1.28
- [@elderjs/plugin-browser-reload](https://npm.io/package/@elderjs/plugin-browser-reload.md) ^0.1.28

## Recent versions

- 1.3.1 (latest) — 2021-05-17

## README

# Elder.js Template Project

<img src="https://img.shields.io/badge/dynamic/json?color=brightgreen&label=Node&query=engines.node&url=https%3A%2F%2Fraw.githubusercontent.com%2Felderjs%2Ftemplate%2Fmaster%2Fpackage.json" alt="node version" />

This is a project template for [Elder.js](https://elderguide.com/tech/elderjs/) 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/](https://elderjs.pages.dev/)

## Get started

To create a new project based on this template using [degit](https://github.com/Rich-Harris/degit):

```bash
npx degit Elderjs/template elderjs-app
cd elderjs-app
```

### Install the dependencies:

```bash
npm install # or just yarn
```

### Start Project:

```bash
npm start # or npm run dev
```

Navigate to [localhost:3000](http://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/](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.js` has `@elderjs/plugin-browser-reload': {}` in it's plugins, your browser will automatically restart after the server restarts.

### To Build HTML for Production:

```bash
npm run build
```

Let the build finish. It will put all of your statically generated files in `./public`.

If you wish to preview you can use:

```bash
npx sirv-cli public
```

### To Run in SSR Mode for Production:

```bash
npm run serve
```

---
_Source: https://npm.io/package/elderjs-template · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
