A module registration and load library
http://docs.kissyui.com/5.0/api/classes/Loader.html
require.config({
packages: {},
modules: {}
});
define(function(require,exports,module){
});
define(function(X){
},{
requires:['x']
});
can also load requirejs commonjs style module
require(['x','u'],function(X,U){
});
can use modulex.noConflict() to give up global require and define variable.
var require = global.require;
var define = global.define;
global.require = modulex.use;
global.require.config = modulex.config;
global.define = modulex.add;
mx.noConflict = function () {
global.require = require;
global.define = define;
};
http://docs.kissyui.com/5.0/guides/loader/index.html
- npm install
- npm install -g gulp
- gulp server
- modify source file inside lib
- open http://localhost:8000/tests/runner.html to test
- open http://localhost:8000/node_modules/node-jscover/lib/front-end/jscoverage.html?w=http://localhost:8000/tests/runner.html?coverage to check test coverage
- file an issue: https://github.com/kissyteam/modulex/issues/new
- then pull request