appbones
v0.2.14
Published
Build path/directory and templates/files from an yaml config file
Downloads
27
Maintainers
Readme
Appbones
Build path/directory and templates/files with an yaml config file
Install
npm install appbones --save
Usage
- app.js
AppBones = require('appbones');
// @param [source, destination]
var builder = new AppBones('../templates', '/abs/path/to/project/dir');
// @param [yml_file, (template_data)]
builder.build('../relative/path/to/bones/file.yml', {
anobject: {
content: 'for',
replacing: 'lodash.template()'
}
});
- bones.yml
---
# files
root:
- [toto.txt, .toto.yml]
- html:
- css:
- js:
- [_toto.txt, _.toto.yml]
Notes
appbones source and destination path are resolved with node path.resolve relative to current used module
History
v0.2.9 - Fix empty files
v0.2.8 - Fix undescore inside files name
v0.2.7 - Grammatically english updated
v0.2.6 - Fix sub files creation
v0.2.3 - Update package.json
v0.2.2 - Update documentation
v0.2.1 - Change fs-extra for mem-fs-editor
v0.1.7 - ...
Dependencies
- mem-fs-editor - ^1.2.1
- js-yaml - ^3.2.3
- lodash - ^2.4.1