@linhun/jane-cli

1.0.0-beta.17 • Public • Published

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)
    })
})
}

Readme

Keywords

none

Package Sidebar

Install

npm i @linhun/jane-cli

Weekly Downloads

0

Version

1.0.0-beta.17

License

none

Unpacked Size

20.9 kB

Total Files

28

Last publish

Collaborators

  • linhun