0.0.0 • Published 7 years ago

blprnt v0.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

blprnt

Build Status Build status

Under Construction

A tool for describing and generating files and directory structures.

Extracted from ember-cli.

Writing a blueprint

example-blueprint/
├── files
│   ├── lib
│   │   └── __name__.js
│   └── tests
│       └── __name__-test.js
└── index.js

Installing a blueprint

var Blueprint = require('ember-cli-blueprint');

var exampleBlueprint = Blueprint.load('path/to/example-blueprint');

var options = {
  entity: {
    name: 'foo'
  },
  target: 'path/to/destination'
};

fooBlueprint.install(options)
  .then(function() {
    console.log('Done!');
  });

Generates the following:

path/to/destination/
├── lib
│   └── foo.js
└── tests
    └── foo-test.js