@linhun/jane-cli
v1.0.0-beta.17
Published
+ [https://github.com/lin-hun/jane](https://github.com/lin-hun/jane)
Downloads
10
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插件文档