An open API service indexing awesome lists of open source software.

https://github.com/ember-cli/blprnt


https://github.com/ember-cli/blprnt

Last synced: 7 months ago
JSON representation

Awesome Lists containing this project

README

          

## blprnt

[![Build Status](https://travis-ci.org/ember-cli/blprnt.svg?branch=master)](https://travis-ci.org/ember-cli/blprnt)
[![Build status](https://ci.appveyor.com/api/projects/status/5cg97gtg37i5ajrl/branch/master?svg=true)](https://ci.appveyor.com/project/embercli/blueprint/branch/master)

**Under Construction**

A tool for describing and generating files and directory structures.

Extracted from [ember-cli](http://ember-cli.com/).

## Writing a blueprint

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

## Installing a blueprint

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

var blueprint = Blueprint.load('blprnt');

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

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

Generates the following:

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

## Contributors

see: [Contributors.md](CONTRIBUTORS.md)