Borschik is an extendable builder for text-based file formats. Its main purpose is assembly of static files for web projects (CSS, JS, etc.).
You can get more info from the article at bem.info
Prerequisites:
- nodejs >= 0.6.x — http://nodejs.org
- npm — http://github.com/isaacs/npm/
From NPM, for use as a command line app:
npm install borschik -g
From Git:
git clone git://github.com/bem/borschik.git
borschik [OPTIONS]
-h, --help | Help |
-v, --version | Current version |
-t TECH, --tech=TECH | Path to technology (default: file extension) [string] |
-i INPUT, --input=INPUT | Input file (required) [string] |
-o OUTPUT, --output=OUTPUT | Output file (required) [string] |
-f FREEZE, --freeze=FREEZE | Freeze links to static files (default: true) |
-m MINIMIZE, --minimize=MINIMIZE | Minimize resulting content (default: true) [boolean] |
-c COMMENTS, --comments=COMMENTS | Wrap included files with comments (default: true) [boolean] |
Tables | CSS | HTML | JS | JSON |
---|---|---|---|---|
Include | X | - | X | - |
Url processing | X | X | X | X |
Url freeze | X | X | X | X |
Minimize | CSSO | - | UglifyJS | X |
{
// path-mapping for changing urls
// prefix may be relative or absoulte url
"paths" : {
"<original-path>": "<prefix-for-new-path>"
},
"follow_symlinks": {
"<original-path>": "false|true" // follow or not
},
// path-mapping for freeze
"freeze_paths": {
"<original-path-to-files>": "<path-for-frozen-files>"
}
}