Get cmd2commonjs from npm:
$ npm install -g cmd2commonjs
This will install the runner as cmd2commonjs
.
The CLI provides the following options:
cmd2commonjs <dirPath|filePath>
/**
* 注释1111
* @author woaiso
*/
/**
*!注释22222222
* @author woaiso
*/
//inline comment
define(function (require, exports){
var Class = require("library/class");
var ProShelf = new Class({});
return ProShelf;
});
/**
* 注释1111
* @author woaiso
*/
/**
*!注释22222222
* @author woaiso
*/
//inline comment
var Class = require("library/class");
var ProShelf = new Class({});
module.exports = ProShelf;
cmd2commonjs path/src
cmd2commonjs src/index.js