1.1.0 • Published 6 months ago
@opi_pib/node-emails v1.1.0
@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[];
}
1.1.0
6 months ago
1.0.20
8 months ago
1.0.19
10 months ago
1.0.17
1 year ago
1.0.16
1 year ago
1.0.11
1 year ago
1.0.14
1 year ago
1.0.13
1 year ago
1.0.12
1 year ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.2
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago