This package has been deprecated

Author message:

This package is no longer maintained. Article 13 passed and it's not worth the hassle. https://en.wikipedia.org/wiki/Directive_on_Copyright_in_the_Digital_Single_Market

molecule-js

0.1.0 • Public • Published

Molecule

Build Status NPM Release

RSS / Atom Feed Blog Aggregator

Dependencies

  • NodeJS
  • NPM

Installation

Global

npm install -g molecule-js

Local

You can also install Molecule per-project, just run

npm install molecule-js

and use ./node_modules/.bin/molecule as the command.

Programmatic

To use Molecule programmatically, see ./src/cli.js as an example.

var molecule = new Molecule(pathToConfigDir, options);
//...
molecule.build();

Usage

$ molecule --help
 
molecule [options] <config directory>
 
Options:
  --pretty, -p
    Disables minification
  --output, -o <build directory>
    Default: <config directory>/build/

Config Directory

See ./config/ as an example.

Path Description
./config.json Configuration of your aggregator
./templates/ Templates you want to generate

Templates

Currently only Pug (previous known as Jade) templates are supported. Support for other engines might be added if they're needed.

Currently directories in the templates directory aren't supported.

To know which variables are available, see the example templates under ./config/templates. Actual documentation may be added in the future.

Templates have a naming scheme:

./templates/ ./build/
atom.xml.pug atom.xml
README.pug README

License

See LICENSE

Package Sidebar

Install

npm i molecule-js

Weekly Downloads

3

Version

0.1.0

License

MIT

Last publish

Collaborators

  • jahed