process-cli
A static site generator based on nunjucks, stylus and rollup
Last updated 3 years ago by thomhos .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install process-cli 
SYNC missed versions from official npm registry.

PROCESS

A static site generator built on top of;

  • commander
  • nunjucks
  • stylus
  • rollup

It requires a config file to get started;

module.exports = {
    output: './build', // Where all the build output goes
    watch: true, // If it needs to rebuild when something changes
    serve: true, // If the result needs to be served
    production: false, // If you want to use production settings. STILL IN PROGRESS

    // Where we grab the style files from and where to output them
    // TODO: Allow different engines to compile css
    styles: {
        input: "./test/src/styles/*.styl",
        output: "/css"
    },

    // Where we grab the scripts from and out the result.
    // We're using rollup which allows an extra config file.
    // You can add plugins here, but make sure to require them in this file
    scripts: {
        input: "./test/src/scripts/*.js",
        output: "/js",
        config: {
            format: "iife",
            sourceMap: true,
        }
    },

    // Where the html templates live, and their extension
    // The pages and site properties hold all page data and site data
    html: {
        templates: "./test/src/templates",
        extension: ".tpl",

        pages: "./test/data/pages/**/*.json",
        site: "./test/data/site/**/*.json"
    },

    // Copy this stuff.
    // TODO: allow for multiple copy tasks.
    copy: {
        input: "./test/src/assets/**/*",
        output: "/assets"
    }
}

Current Tags

  • 1.2.1                                ...           latest (3 years ago)

4 Versions

  • 1.2.1                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 4
Last Month 1
Dependencies (11)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |