0.0.18 • Published 2 years ago
remira v0.0.18
remira
Tools to build opinionated templates from data specs written in yaml.
Build
Typical template function takes spec files array which appends files to be written to buildFiles
/**
* @param {string} appSpecPath
* @param {string} target
* @param {string} buildPath
*/
function build(appSpecPath, target, buildPath) {
const appSpecFiles = getAllSpecFiles(appSpecPath, ['other-reference-specs']);
const buildFiles = buildService(appSpecFiles, target);
writeBuildFiles(buildFiles, buildPath);
}
- path/to/app-spec-files: directory top of entire app
- target: module instance that is being built (current npm project)
- path/to/build: where to output
# build to build/
npm run build path/to/app-spec-files target build/
# build somewhere else
npm run build path/to/app-spec-files target path/to/build