magix-product-release

This is the tools used for the release of Magix Application

Magix应用打包脚本

This is the tools used for the release of Magix Application

  • 安装node环境
  • 安装grunt-cli http://gruntjs.com/getting-started (如果有0.4.0以下版本的grunt 请执行npm uninstall -g grunt卸载,再安装grunt-cli)
npm install magix-app-build
    magix: {

        build: {

            //magix view 所在的入口文件夹路径
            src: '/opt/local/share/nginx/html/mbp-new/app/',
            //处理后文件夹的路径
            dest: '/opt/local/share/nginx/html/magix-app-build/build/app/'

        },
        options: {

            //压缩级别
            compress: 'normal',
            //中文转化unicode
            c2u: false,
            //view对应模板字段的key
            tmplKey: 'template'

        }
    }