Nutty Peanut Marshmallow
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

module-driven

0.0.6 • Public • Published

Description build status

For the module-driven: quickly create a new node.js module based on a template folder in ~/.config/module-driven.

Installation

$ npm install -g module-driven

Setup

First create yourself the directory for the template folder.

$ mkdir -p ~/.config/moduleDriven

Now populate the folder with the files your template files. Use the .mdtmpl extension for any files you want to parameterize. These files will be treated as handlebars templates.

Example template file (packages.json.mdtmpl)

{
  "name": "{{name}}",
  "description": "{{description}}",
  "version": "0.0.1",
  "repository": {
    "url": "git://github.com/curious-attempt-bunny/{{name}}.git"
  },
  "main": "index.js",
  "scripts": {
    "test": "tap test/*.js"
  },
  "dependencies": {
  },
  "devDependencies": {
    "tap": "~0.4.3",
    "tape": "~1.0.2"
  }
}

I've included my template folder as an example.

Usage

moduleDriven my-new-nodejs-module-name

Note that for convenience, "name" is bound to the folder name - "my-new-nodejs-module-name" in the above case.

Keywords

none

install

npm i module-driven

Downloadsweekly downloads

18

version

0.0.6

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar