@linhun/jane-cli

+ [https://github.com/lin-hun/jane](https://github.com/lin-hun/jane)

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@linhun/jane-cli
1.0.0-beta.173 years ago4 years agoMinified + gzip package size for @linhun/jane-cli in KB

Readme

jane

install

  • npm install -g @linhun/jane-cli

usage

  • jane --help

插件机制

  • css
let less = require('less')
let fs = require('fs')
// {file:'path'}
module.exports = (option)=>{
	return new Promise((resolve,rej)=>{
	less.render(fs.readFileSync(option.file,'utf8'))
    .then(function(output) {
    	resolve(output)
     },
     function(error) {
     	rej(error)
    })
})
}
  • js 基于babel
babel插件文档