编译coffee,然后整理js
安装
npm install coffee2js
使用
var c2j = require('coffee2js');
c2j.coffee2js(opts);
可传入参数
{
public_dir:'./src/www/front/resource/',
coffee_dir: 'other/coffee',
js_root: 'js',
encode: 'utf-8'
}
npm install coffee2js
var c2j = require('coffee2js');
c2j.coffee2js(opts);
{
public_dir:'./src/www/front/resource/',
coffee_dir: 'other/coffee',
js_root: 'js',
encode: 'utf-8'
}
npm i coffee2js
0
0.1.3
BSD