代码拉取完成,页面将自动刷新
同步操作将从 ilocation/plot4ol3 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var replace = require('gulp-replace');
var cssnano = require('gulp-cssnano');
gulp.task('compact-js', function () {
return gulp.src(['./lib/goog/base.js',
'./lib/goog/idisposable.js',
'./lib/goog/disposable.js',
'./lib/goog/eventid.js',
'./lib/goog/event.js',
'./lib/goog/error.js',
'./lib/goog/nodetype.js',
'./lib/goog/string.js',
'./lib/goog/asserts.js',
'./lib/goog/array.js',
'./lib/goog/object.js',
'./lib/goog/util.js',
'./lib/goog/browser.js',
'./lib/goog/engine.js',
'./lib/goog/reflect.js',
'./lib/goog/useragent.js',
'./lib/goog/eventtype.js',
'./lib/goog/browserfeature.js',
'./lib/goog/browserevent.js',
'./lib/goog/entrypointregistry.js',
'./lib/goog/listenable.js',
'./lib/goog/listener.js',
'./lib/goog/listenermap.js',
'./lib/goog/events.js',
'./src/gispace/GISpace.js',
'./src/gispace/Constants.js',
'./src/gispace/util/Utils.js',
'./src/gispace/util/DomUtils.js',
'./src/gispace/PlotTypes.js',
'./src/gispace/PlotUtils.js',
'./src/gispace/event/Event.js',
'./src/gispace/event/PlotDrawEvent.js',
'./src/gispace/plot/Plot.js',
'./src/gispace/plot/Arc.js',
'./src/gispace/plot/AttackArrow.js',
'./src/gispace/plot/SquadCombat.js',
'./src/gispace/plot/TailedAttackArrow.js',
'./src/gispace/plot/TailedSquadCombat.js',
'./src/gispace/plot/Circle.js',
'./src/gispace/plot/ClosedCurve.js',
'./src/gispace/plot/Curve.js',
'./src/gispace/plot/DoubleArrow.js',
'./src/gispace/plot/Ellipse.js',
'./src/gispace/plot/FineArrow.js',
'./src/gispace/plot/AssaultDirection.js',
'./src/gispace/plot/GatheringPlace.js',
'./src/gispace/plot/Lune.js',
'./src/gispace/plot/Sector.js',
'./src/gispace/plot/StraightArrow.js',
'./src/gispace/PlotFactory.js',
'./src/gispace/tool/PlotDraw.js',
'./src/gispace/tool/PlotEdit.js'])
.pipe(concat('p-ol3.min.js'))
.pipe(uglify())
.pipe(gulp.dest('./build/'))
.pipe(gulp.dest('./sample/'));
});
gulp.task('compact-css', function(){
return gulp.src('src/*.css')
.pipe(concat('p-ol3.min.css'))
.pipe(gulp.dest('./build/'))
.pipe(gulp.dest('./sample/'))
.pipe(cssnano());
});
gulp.task('default', function () {
var jsWatch = gulp.watch('./src/**/*.js', ['compact-js']);
jsWatch.on('change', function (e) {
console.log('File ' + e.path + ' was ' + e.type + ', running compact js ...');
});
var cssWatch = gulp.watch('./src/*.css', ['compact-css']);
jsWatch.on('change', function (e) {
console.log('File ' + e.path + ' was ' + e.type + ', running compact css ...');
});
});
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。