npm install ammbash
> npm install amm
> cd amm
> npm start
`
或者直接通过 git 拉取本项目到本地,执行下面的命令:
`bash
> git clone https://github.com/xianlihua/amm
> cd amm
> npm start
`
构建之后项目根目录下会生成 lib/amm.js 和 lib/amm.min.js 两个最终文件
使用示例
index.html:
`html
amm.js sample
`
math.js:
`js
define(function (require, exports, module) {
exports.add = function (a, b) {
return a + b;
};
});
``