bp

Boilerplate, a tool that allows you to set up projects quickly and easily.

npm install bp
30 downloads in the last week
60 downloads in the last month

Boilerplate

A tool that allows you to set up projects quickly and easily.

Installation

Dependencies -

Installing it -

$ npm install -g bp

Usage

To create a new project, do -

$ boilerplate <boilerplate-name> <project-name>

Where <boilerplate-name> can be a boilerplate on boilerplates.meteor.com (which is under development) or a git clone URL, and <project-name> is the name of the project that will be created.

You can also pass in the --no-git flag, and the project created won't be a git repository.

$ boilerplate <boilerplate-name> <project-name> --no-git

If your boilerplate is a local repository, and you don't want to connect to the boilerplates index to clone it, use the --local or -l option.

$ boilerplate <boilerplate-name> <project-name> -l

Creating boilerplates

A boilerplate directory must be a git repository. In file/subdirectory paths inside the boilerplate directory, @name@ will be replaced with the project name specified. This is true for file contents as well. This means,

.
|-- @name@
|   |-- @name@.html
|   `-- @name@.txt
`-- @name@.txt

will become

.
|-- <project-name>
|   |-- <project-name>.html
|   `-- <project-name>.txt
`-- <project-name>.txt

and file contents will be changed the same way.

npm loves you