corki-compiler

0.2.2 • Public • Published

corki-compiler

A front-end resource compiler and adapter.

Usage

Command

# styles 
corkic -c -s -o output.css input.sass
 
# scripts 
corkic -c -s -o output.min.js output.js

You can get more infomation by corkic --help

Program

var compile = require('corki-compiler')
 
compile('path/to/yourfile', { compress: true }, function (result) {
  // result as a output string
  // ...
})

Support types

html

  • jade

css

  • less
  • sass
  • stylus
  • autoprefixer

js

  • common.js module
  • babel
  • coffee

Todos

  • more test cases
  • more resource types support
  • better customization

Readme

Keywords

Package Sidebar

Install

npm i corki-compiler

Weekly Downloads

0

Version

0.2.2

License

MIT

Last publish

Collaborators

  • boom11235