|
@@ -16,6 +16,14 @@ let pm_csspaths=config.pm_css;
|
|
|
let login_jspaths=config.login_jspaths;
|
|
|
let main_jspaths=config.main_jspaths;
|
|
|
let main_csspaths=config.main_css;
|
|
|
+let compleGlj_jspaths = config.compleGlj_jspaths;
|
|
|
+let compleGlj_csspaths = config.compleGlj_css;
|
|
|
+let compleRation_ration_jspaths = config.compleRation_ration_jspaths;
|
|
|
+let compleRation_ration_csspaths = config.compleRation_ration_css;
|
|
|
+let compleRation_glj_jspaths = config.compleRation_glj_jspaths;
|
|
|
+let compleRation_glj_csspaths = config.compleRation_glj_css;
|
|
|
+let compleRation_coe_jspaths = config.compleRation_coe_jspaths;
|
|
|
+let compleRation_coe_csspaths = config.compleRation_coe_css;
|
|
|
let version=config.version;
|
|
|
let cssDest='web/dest/css';
|
|
|
let scriptsDest='web/dest/scripts';
|
|
@@ -77,6 +85,73 @@ let mainOptions={
|
|
|
'web/dest/css/main.all.min.'+version+'.css']
|
|
|
}
|
|
|
|
|
|
+let compleGljOptions = {
|
|
|
+ version: version,
|
|
|
+ scriptsDest: 'web/dest/scripts',
|
|
|
+ jspaths: compleGlj_jspaths,
|
|
|
+ csspaths: compleGlj_csspaths,
|
|
|
+ concatName: 'compleGlj.all.min',
|
|
|
+ srcHtml: 'web/src/html/complementary_glj_lib/tools-gongliaoji.html',
|
|
|
+ htmlDest: 'web/building_saas/complementary_glj_lib/html/tools-gongliaoji.html',
|
|
|
+ htmlName: 'tools-gongliaoji.html',
|
|
|
+ injectList: [
|
|
|
+ 'web/dest/scripts/compleGlj.all.min' + version + '.js',
|
|
|
+ 'web/dest/css/compleGlj.all.min' + version + '.css',
|
|
|
+ 'web/dest/css/common.all.min.' + version + '.css'
|
|
|
+ ]
|
|
|
+};
|
|
|
+
|
|
|
+let compleRation_rationOptions = {
|
|
|
+ version: version,
|
|
|
+ scriptsDest: 'web/dest/scripts',
|
|
|
+ jspaths: compleRation_ration_jspaths,
|
|
|
+ csspaths: compleRation_ration_csspaths,
|
|
|
+ concatName: 'compleRation_ration.all.min',
|
|
|
+ srcHtml: 'web/src/html/complementary_ration_lib/dinge.html',
|
|
|
+ htmlDest: 'web/building_saas/complementary_ration_lib/html/dinge.html',
|
|
|
+ htmlName: 'dinge.html',
|
|
|
+ injectList: [
|
|
|
+ 'web/dest/scripts/compleRation_ration.all.min' + version + '.js',
|
|
|
+ 'web/dest/css/compleRation_ration.all.min' + version + '.css',
|
|
|
+ 'web/dest/scripts/common.all.min.'+version+'.js',
|
|
|
+ 'web/dest/css/common.all.min.' + version + '.css'
|
|
|
+ ]
|
|
|
+};
|
|
|
+
|
|
|
+let compleRation_gljOptions = {
|
|
|
+ version: version,
|
|
|
+ scriptsDest: 'web/dest/scripts',
|
|
|
+ jspaths: compleRation_glj_jspaths,
|
|
|
+ csspaths: compleRation_glj_csspaths,
|
|
|
+ concatName: 'compleRation_glj.all.min',
|
|
|
+ srcHtml: 'web/src/html/complementary_ration_lib/gongliao.html',
|
|
|
+ htmlDest: 'web/building_saas/complementary_ration_lib/html/gongliao.html',
|
|
|
+ htmlName: 'gongliao.html',
|
|
|
+ injectList: [
|
|
|
+ 'web/dest/scripts/compleRation_glj.all.min' + version + '.js',
|
|
|
+ 'web/dest/scripts/compleRation_glj.all.min' + version + '.css',
|
|
|
+ 'web/dest/scripts/common.all.min.'+version+'.js',
|
|
|
+ 'web/dest/css/common.all.min.' + version + '.css'
|
|
|
+ ]
|
|
|
+};
|
|
|
+
|
|
|
+let compleRation_coeOptions = {
|
|
|
+ version: version,
|
|
|
+ scriptsDest: 'web/dest/scripts',
|
|
|
+ jspaths: compleRation_coe_jspaths,
|
|
|
+ csspaths: compleRation_coe_csspaths,
|
|
|
+ concatName: 'compleRation_coe.all.min',
|
|
|
+ srcHtml: 'web/src/html/complementary_ration_lib/fuzhu.html',
|
|
|
+ htmlDest: 'web/building_saas/complementary_ration_lib/html/fuzhu.html',
|
|
|
+ htmlName: 'fuzhu.html',
|
|
|
+ injectList: [
|
|
|
+ 'web/dest/scripts/compleRation_coe.all.min' + version + '.js',
|
|
|
+ 'web/dest/scripts/compleRation_coe.all.min' + version + '.css',
|
|
|
+ 'web/dest/scripts/common.all.min.'+version+'.js',
|
|
|
+ 'web/dest/css/common.all.min.' + version + '.css'
|
|
|
+ ]
|
|
|
+};
|
|
|
+
|
|
|
function minify(options) {
|
|
|
if(options.jspaths){
|
|
|
return gulp.src(options.jspaths)
|
|
@@ -190,5 +265,70 @@ gulp.task('main',['main_inject'], function (){
|
|
|
return htmlmin(mainOptions);
|
|
|
});
|
|
|
|
|
|
+gulp.task('compleGlj_minify', ['common'], function () {
|
|
|
+ return minify(compleGljOptions);
|
|
|
+});
|
|
|
+
|
|
|
+gulp.task('compleGlj_css', function () {
|
|
|
+ return css(compleGljOptions);
|
|
|
+});
|
|
|
+
|
|
|
+gulp.task('compleGlj_inject', ['compleGlj_minify', 'compleGlj_css'], function () {
|
|
|
+ return inject(compleGljOptions);
|
|
|
+});
|
|
|
+
|
|
|
+gulp.task('compleGlj', ['compleGlj_inject'], function () {
|
|
|
+ return htmlmin(compleGljOptions);
|
|
|
+});
|
|
|
+
|
|
|
+gulp.task('compleRation_ration_minify', ['common'], function () {
|
|
|
+ return minify(compleRation_rationOptions);
|
|
|
+});
|
|
|
+
|
|
|
+gulp.task('compleRation_ration_css', function () {
|
|
|
+ return css(compleRation_rationOptions);
|
|
|
+});
|
|
|
+
|
|
|
+gulp.task('compleRation_ration_inject', ['compleRation_ration_minify', 'compleRation_ration_css'], function () {
|
|
|
+ return inject(compleRation_rationOptions);
|
|
|
+});
|
|
|
+
|
|
|
+gulp.task('compleRation_ration', ['compleRation_ration_inject'], function () {
|
|
|
+ return htmlmin(compleRation_rationOptions);
|
|
|
+});
|
|
|
+
|
|
|
+gulp.task('compleRation_glj_minify', ['common'], function () {
|
|
|
+ return minify(compleRation_gljOptions);
|
|
|
+});
|
|
|
+
|
|
|
+gulp.task('compleRation_glj_css', function () {
|
|
|
+ return css(compleRation_gljOptions);
|
|
|
+});
|
|
|
+
|
|
|
+gulp.task('compleRation_glj_inject', ['compleRation_glj_minify', 'compleRation_glj_css'], function () {
|
|
|
+ return inject(compleRation_gljOptions);
|
|
|
+});
|
|
|
+
|
|
|
+gulp.task('compleRation_glj', ['compleRation_glj_inject'], function () {
|
|
|
+ return htmlmin(compleRation_gljOptions);
|
|
|
+});
|
|
|
+
|
|
|
+gulp.task('compleRation_coe_minify', ['common'], function () {
|
|
|
+ return minify(compleRation_coeOptions);
|
|
|
+});
|
|
|
+
|
|
|
+gulp.task('compleRation_coe_css', function () {
|
|
|
+ return css(compleRation_coeOptions);
|
|
|
+});
|
|
|
+
|
|
|
+gulp.task('compleRation_coe_inject', ['compleRation_coe_minify', 'compleRation_coe_css'], function () {
|
|
|
+ return inject(compleRation_coeOptions);
|
|
|
+});
|
|
|
+
|
|
|
+gulp.task('compleRation_coe', ['compleRation_coe_inject'], function () {
|
|
|
+ return htmlmin(compleRation_coeOptions);
|
|
|
+});
|
|
|
+
|
|
|
+
|
|
|
|
|
|
-gulp.task('build',['header','login','pm','main']);
|
|
|
+gulp.task('build',['header','login','pm','main', 'compleGlj', 'compleRation_ration', 'compleRation_glj', 'compleRation_coe']);
|