@lubowiecki/node-emails
Node email templates bundler
Last updated 3 months ago by lubowiecki .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @lubowiecki/node-emails 
SYNC missed versions from official npm registry.

node-emails

File structure

Suggested file structure is placed in folder 'example'.

Cli commands

emails serve // serve emails in browser, watch for changes and reload
emails build // compile and compress templates
emails --help // display documentation

Default config

export const defaultConfig: Config = {
  dist: 'dist',
  pages: ['src/pages/**/*.html', '!src/pages/archive/**/*.html'],
  root: 'src/pages',
  layouts: 'src/layouts',
  partials: 'src/partials',
  helpers: 'src/helpers',
  scss: 'src/assets/scss/app.scss',
  images: ['src/assets/img/**/*', '!src/assets/img/archive/**/*'],
};

Custom config

To provide custom config, create emails-config.json file. Custom config will be merged with default one.

emails build --config ./emails-config.json // provide custom options

Possible options:

{
  dist: string;
  pages: string[];
  root: string;
  layouts: string;
  partials: string;
  helpers: string;
  scss: string;
  images: string[];
}

Current Tags

  • 1.0.6                                ...           latest (3 months ago)

7 Versions

  • 1.0.6                                ...           3 months ago
  • 1.0.5                                ...           4 months ago
  • 1.0.4                                ...           4 months ago
  • 1.0.3                                ...           4 months ago
  • 1.0.2                                ...           4 months ago
  • 1.0.1                                ...           4 months ago
  • 1.0.0                                ...           4 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (21)
Dev Dependencies (15)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |