# static-generator

> Node command line application equipped with great tools for generating the most simple static page

Latest version **0.2.11** (published 2021-12-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install static-generator
pnpm add static-generator
yarn add static-generator
bun add static-generator
```

Provides the command `static-generator`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.11 |
| Published | 2021-12-02 |
| First published | 2017-10-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 15 |
| Unpacked size | 102.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | adzialocha |
| Maintainers | andreasdz |
| Keywords | static, page, generator, es6, scss, markdown, nunjucks, template |

## Links

- npm: https://www.npmjs.com/package/static-generator
- Repository: https://github.com/adzialocha/static-generator
- Homepage: https://github.com/adzialocha/static-generator#readme
- Issues: https://github.com/adzialocha/static-generator/issues
- npm.io page: https://npm.io/package/static-generator

## Dependencies (15)

- [ncp](https://npm.io/package/ncp.md) ^2.0.0
- [glob](https://npm.io/package/glob.md) ^7.2.0
- [sass](https://npm.io/package/sass.md) ^1.44.0
- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [marked](https://npm.io/package/marked.md) ^4.0.6
- [rimraf](https://npm.io/package/rimraf.md) ^3.0.2
- [babelify](https://npm.io/package/babelify.md) ^10.0.0
- [nunjucks](https://npm.io/package/nunjucks.md) ^3.2.3
- [clean-css](https://npm.io/package/clean-css.md) ^5.2.2
- [commander](https://npm.io/package/commander.md) ^8.3.0
- [uglifyify](https://npm.io/package/uglifyify.md) ^5.0.2
- [browserify](https://npm.io/package/browserify.md) ^17.0.0
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.16.0
- [html-minifier](https://npm.io/package/html-minifier.md) ^4.0.0
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.16.4

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 0.2.11 (latest) — 2021-12-02
- 0.2.10 — 2021-12-02
- 0.2.9 — 2021-12-02
- 0.2.8 — 2020-01-26
- 0.2.7 — 2019-09-20
- 0.2.6 — 2019-02-10
- 0.2.5 — 2019-02-04
- 0.2.4 — 2019-01-19
- 0.2.2 — 2018-06-18
- 0.2.1 — 2018-01-07
- 0.2.0 — 2017-10-30
- 0.1.0 — 2017-10-30

## README

static-generator
======

Node command line application equipped with great tools for generating the most simple static pages.

## Features

- *ES6* js via babelify and *module support* with browserify
- Write your stylesheets in *scss*
- Manage content in *markdown* and meta data in *json* files
- Rich template inheritance, filters, etc. via *nunjucks*
- Generates simple and *minified* css, js and html

## Usage

Install `static-generator` as a global tool or include it as a dependency to your static page project (probably together with a *serve* and *watch* task).

```
npm i -g static-generator

static-generator new [--source_dir "./_src"]
static-generator build [--source_dir "./_src"] [--output_dir "./"]
static-generator clear [--source_dir "./_src"] [--output_dir "./"]
```

## Project structure

Run `new` task to create a starter template folder structure. Every project follows a similar structure like this (files and folders marked with * are needed):

```
index.md * (root content)
data.json * (global meta data, can be used in templates)
assets/ *
    scripts/ *
        app.js * (entry js file)
        form.js
        ...
    styles/ *
        app.scss * (entry scss file)
        layout.scss
        slider.scss
        ...
    images/ *
        favicon.ico
        ...
views/ *
    about/
        index.md
        data.json
    contact/
        index.md
        data.json
    ... more subviews
        index.md
        data.json
layout/ *
    default.html * (main layout file)
    navigation.html
    ... more partials
```

## License

`MIT`

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