Skip to content

Latest commit

 

History

History
69 lines (52 loc) · 1.59 KB

README.md

File metadata and controls

69 lines (52 loc) · 1.59 KB

Build Status

iStatic

Static File Manager

Installation

$ npm install node-istatic -g

Usage

Put a file named static.yaml (refer to the following Configuration) at the root of your project repository. And then, run:

$ istatic pull

Configuration

You can specify any git hosting provider, such as:

hostDict:
  code: http://code.dapps.douban.com/
  gitcafe: git://gitcafe.com/

Note: iStatic has been added github, bitbucket and local by default.

Specify the git repos info (including name, host, tag or commit) and the path of the files or directories you need. The default host is github, and the default commit (or tag) is origin/master. These two properties can be omitted. But you need to specify one file mapping (origin: target) at least. It sounds to be a little complicated, here's a example:

repos:
  arkui:
    host: code
    file:
      /stylus: /public/css/arkui/
      /pics: /public/pics/

  bestiejs/lodash:
    tag: 0.8.2
    file:
      /lodash.js: /public/js/lib/

  dexteryy/OzJS:
    commit: 7827c7c605
    file:
      /oz.js: /public/js/lib/
      /eventMaster/eventmaster.js: /public/js/lib/mod/event.js

  /Users/mockee/M3:
    host: local
    tag: 1.0.0
    file:
      /define.js /public/js/lib/
      /mod/touch.js /public/js/mod/

Grunt task

Grunt-istatic task now available.

License

Copyright (c) 2013 mockee Licensed under the MIT license.