代码拉取完成,页面将自动刷新
同步操作将从 88250/symphony 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/*
* Copyright (c) 2012-2016, b3log.org & hacpai.com & fangstar.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file frontend tool.
*
* @author <a href="mailto:liliyuan@fangstar.net">Liyuan Li</a>
* @version 0.1.2.0, Jul 28, 2016
*/
var gulp = require("gulp");
var concat = require('gulp-concat');
var cleanCSS = require('gulp-clean-css');
var uglify = require('gulp-uglify');
var sourcemaps = require("gulp-sourcemaps");
gulp.task('cc', function () {
// css
gulp.src('./src/main/webapp/js/lib/editor/codemirror.css')
.pipe(cleanCSS())
.pipe(concat('codemirror.min.css'))
.pipe(gulp.dest('./src/main/webapp/js/lib/editor/'));
// js
var jsJqueryUpload = ['./src/main/webapp/js/lib/jquery/file-upload-9.10.1/vendor/jquery.ui.widget.js',
'./src/main/webapp/js/lib/jquery/file-upload-9.10.1/jquery.iframe-transport.js',
'./src/main/webapp/js/lib/jquery/file-upload-9.10.1/jquery.fileupload.js',
'./src/main/webapp/js/lib/jquery/file-upload-9.10.1/jquery.fileupload-process.js',
'./src/main/webapp/js/lib/jquery/file-upload-9.10.1/jquery.fileupload-validate.js'];
gulp.src(jsJqueryUpload)
.pipe(uglify())
.pipe(concat('jquery.fileupload.min.js'))
.pipe(gulp.dest('./src/main/webapp/js/lib/jquery/file-upload-9.10.1/'));
var jsCodemirror = ['./src/main/webapp/js/lib/editor/diff_match_patch.js',
'./src/main/webapp/js/lib/editor/codemirror.js',
'./src/main/webapp/js/lib/editor/fullscreen.js',
'./src/main/webapp/js/lib/editor/placeholder.js',
'./src/main/webapp/js/lib/editor/merge.js',
'./src/main/webapp/js/overwrite/codemirror/addon/hint/show-hint.js',
'./src/main/webapp/js/lib/editor/editor.js',
'./src/main/webapp/js/lib/to-markdown.js'];
gulp.src(jsCodemirror)
.pipe(uglify())
.pipe(concat('codemirror.min.js'))
.pipe(gulp.dest('./src/main/webapp/js/lib/editor/'));
var jsCommonLib = ['./src/main/webapp/js/lib/jquery/jquery.min.js',
'./src/main/webapp/js/lib/md5.js',
'./src/main/webapp/js/lib/reconnecting-websocket.min.js',
'./src/main/webapp/js/lib/jquery/jquery.bowknot.min.js',
'./src/main/webapp/js/lib/jquery/jquery.notification-1.0.5.js',
'./src/main/webapp/js/lib/ua-parser.min.js'];
gulp.src(jsCommonLib)
.pipe(uglify())
.pipe(concat('libs.min.js'))
.pipe(gulp.dest('./src/main/webapp/js/lib/compress/'));
var jsArticleLib = ['./src/main/webapp/js/lib/editor/codemirror.min.js',
'./src/main/webapp/js/lib/highlight.js-8.6/highlight.pack.js',
'./src/main/webapp/js/lib/jquery/file-upload-9.10.1/jquery.fileupload.min.js',
'./src/main/webapp/js/lib/sound-recorder/SoundRecorder.js',
'./src/main/webapp/js/lib/jquery/jquery.qrcode.min.js',
'./src/main/webapp/js/lib/zeroclipboard/ZeroClipboard.min.js'];
gulp.src(jsArticleLib)
.pipe(uglify())
.pipe(concat('article-libs.min.js'))
.pipe(gulp.dest('./src/main/webapp/js/lib/compress/'));
});
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。