Miss any of our Open RFC calls?Watch the recordings here! »

@lubowiecki/node-emails

1.0.6 • Public • Published

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:

{
  diststring;
  pagesstring[];
  rootstring;
  layoutsstring;
  partialsstring;
  helpersstring;
  scssstring;
  imagesstring[];
}

Install

npm i @lubowiecki/node-emails

DownloadsWeekly Downloads

3

Version

1.0.6

License

ISC

Unpacked Size

24 kB

Total Files

28

Last publish

Collaborators

  • avatar