代码拉取完成,页面将自动刷新
同步操作将从 guoruifeng/admui 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
var gulp = require('gulp');
var less = require('gulp-less');
var concat = require('gulp-concat');
var csso = require('gulp-csso');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
gulp.task('less', function () {
return gulp.src(["src/less/AdmUI.less"])
.pipe(less())
.pipe(gulp.dest('./dist/css'))
.pipe(rename({suffix: '.min'}))
.pipe(csso())
.pipe(gulp.dest('dist/css'));
});
gulp.task('less:watch', function () {
gulp.watch('./**/*.less', ['less,lessApp']);
});
gulp.task('angularConcat', function () {
gulp.src([
'vendors/bower_components/angular/angular.min.js',
'vendors/bower_components/angular-animate/angular-animate.min.js',
'vendors/bower_components/angular-aria/angular-aria.min.js',
'vendors/bower_components/angular-route/angular-route.min.js',
'vendors/bower_components/angular-messages/angular-messages.min.js',
'vendors/bower_components/angular-material/angular-material.min.js',
'vendors/bower_components/oclazyload/dist/ocLazyLoad.min.js',
'vendors/bower_components/angular-loading-bar/build/loading-bar.min.js',
'vendors/angular-bootstrap/ui-bootstrap-custom-1.1.2.min.js',
'vendors/angular-bootstrap/ui-bootstrap-custom-tpls-1.1.2.min.js'
])
.pipe(concat('angular.js'))
.pipe(gulp.dest('dist/js'));
});
gulp.task('libsConcat', function () {
gulp.src([
'vendors/bower_components/jquery/dist/jquery.min.js',
'vendors/bower_components/bootstrap/dist/js/bootstrap.min.js',
'vendors/bower_components/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.concat.min.js',
'vendors/bower_components/JavaScript-MD5/js/md5.min.js',
'vendors/bower_components/jasny-bootstrap/js/fileinput.js',
'vendors/bower_components/moment/min/moment.min.js',
])
.pipe(concat('libs.js'))
.pipe(gulp.dest('dist/js'));
});
gulp.task('libsCssConcat', function () {
gulp.src([
'vendors/bower_components/angular-loading-bar/build/loading-bar.min.css',
'vendors/bower_components/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.min.css',
'vendors/bower_components/angular-material/angular-material.min.css',
'vendors/bower_components/animate.css/animate.css',
'vendors/bower_components/hint.css/hint.min.css',
'vendors/bower_components/material-design-iconic-font/dist/css/material-design-iconic-font.min.css'
])
.pipe(concat('libs.css'))
.pipe(gulp.dest('dist/css'));
});
gulp.task('default', ['less', 'libsCssConcat', 'angularConcat', 'libsConcat']);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。