@opi_pib/node-emails
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@opi_pib/node-emails

Install

npm install @opi_pib/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[];
}

Package Sidebar

Install

npm i @opi_pib/node-emails

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

17.6 kB

Total Files

17

Last publish

Collaborators

  • mpaduszynski
  • dlubowiecki
  • national-information-processing-institute-opi-pib