scaffolding any project
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
examples
lib
.gitignore
README.md
package.json

README.md

#Scaffolding any project

##Install

npm install -g scaffolding

##Simple to use 1.Prepare scaffolding.json

{
  "properties": {
    "name": {
      "pattern": "^[a-zA-Z\\.\\-\\d]+$",
      "message": "Name must be only letters, numbers, dots, or dashes",
      "default": "sample",
      "required": true
    },
    "author": {
      "required": true
    }
  },
  "tpl": {
    "tpl/src/base.js": "dist/src/{{name}}.js",
    "tpl/test/base.test": "dist/test/{{name}}"
  }
}
  1. Execute scaffolding.
  2. Input prompt answer.
  3. Generates files by tpl settings. The file contents, filename will be replaced with prompt answer.
scaffolding

##Advanced

###Offcourse! Generally, project involved many developers

  1. Prepare .default.scaffolding.json
{
  "author": "sideroad"
}
  1. You can override the default setting!

###Use your favorite name for json

scaffolding chocolate.json

##Dependencies with awesome library