node package manager

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

使用方法

首次使用

安装

npm install magix-app-build

根据你的应用配置Gruntfile.js

    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'

        }
    }

执行grunt magix即可