gulp build

This commit is contained in:
lealife
2015-09-05 23:48:41 +08:00
parent 024e0e9bae
commit b0afe25730
3 changed files with 18 additions and 3 deletions

View File

@ -21,7 +21,7 @@ gulp.task('concatDepJs', function() {
var jss = [
'js/jquery-1.9.0.min.js',
'js/jquery.ztree.all-3.5-min.js',
'js/tinymce/tinymce.full.min.js', // 使用打成的包, 加载速度快
'tinymce/tinymce.full.min.js', // 使用打成的包, 加载速度快
// 'libs/ace/ace.js',
'js/jQuery-slimScroll-1.3.0/jquery.slimscroll-min.js',
'js/contextmenu/jquery.contextmenu-min.js',
@ -89,7 +89,7 @@ gulp.task('devToProHtml', function() {
.pipe(replace(/<!-- pro_dep_js -->/, '<script src="/js/dep.min.js"></script>')) // 替换
.pipe(replace(/<!-- pro_app_js -->/, '<script src="/js/app.min.js"></script>')) // 替换
.pipe(replace(/<!-- pro_markdown_js -->/, '<script src="/js/markdown.min.js"></script>')) // 替换
.pipe(replace(/<!-- pro_tinymce_init_js -->/, "var tinyMCEPreInit = {base: '/public/js/tinymce', suffix: '.min'};")) // 替换
.pipe(replace(/<!-- pro_tinymce_init_js -->/, "var tinyMCEPreInit = {base: '/public/tinymce', suffix: '.min'};")) // 替换
// 连续两个空行换成一个空行, 没用
.pipe(replace(/\n\n/g, '\n'))
.pipe(replace(/\n\n/g, '\n'))

View File

@ -901,7 +901,7 @@ var latestNotes = {{if .latestNotes}}{{.latestNotes|jsonJs}}{{else}}[]{{end}};
var noteContentJson = {{.noteContentJson|jsonJs}};
var tagsJson = {{.tags|jsonJs}};
var GlobalConfigs = {{.globalConfigs|jsonJs}};
var tinyMCEPreInit = {base: '/public/js/tinymce', suffix: '.min'};
var tinyMCEPreInit = {base: '/public/tinymce', suffix: '.min'};
</script>
<script src="/js/i18n/msg.{{.locale}}.js"></script>

15
public/js/dep.min.js vendored

File diff suppressed because one or more lines are too long