2.0.8 • Published 10 years ago
atm-node v2.0.8
atm-node
atm-node ##安装
npm install atm-node --save##使用
var atmNode = require('atm-node');
app.use(atmNode({
    debugParam: 'debug',
    getDomain: function(destName){
        // 返回任务名对应的domain
        return 'http://127.0.0.1:3333/local';
    },
    assetsPath: '',                         // 资源存放路径
    devPath: '',                            // 开发目录路径
    getBuildCommand: function(destName){
        return 'atm realse -'+ (destName === 'local'? 'pDd ': 'opmDd ')+destName+'';
    },
    coreName: 'core',                       // 核心模块名称
    baseName: 'base'                        // 基础模块名称
}) );