0.0.18 • Published 2 years ago

remira v0.0.18

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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
0.0.18

2 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago