appbones

0.2.14 • Public • Published

Appbones Built with Grunt

MIT License NPM version NPM downloads Build Status Coverage Status

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

Package Sidebar

Install

npm i appbones

Weekly Downloads

2

Version

0.2.14

License

MIT

Last publish

Collaborators

  • sixertoy