Skip to content

Commit b478441

Browse files
committed
some updated
1 parent 442de50 commit b478441

8 files changed

Lines changed: 19 additions & 18 deletions

File tree

‎cache.manifest‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# Build: 20160128121402
2+
# Build: 20160128084813
33

44
CACHE:
55
resources/fonts/Dressedless_Three.svg
@@ -15,7 +15,7 @@ resources/images/paypal.png
1515
resources/images/twohardtings.jpg
1616
resources/images/wechatpay.jpg
1717
resources/images/zhifubao.png
18-
src/lib/libs.f851782e.js
18+
src/lib/all.f851782e.js
1919

2020
NETWORK:
2121
*

‎gulpfile.js‎

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,26 +38,18 @@ gulp.task('clean:dist', function (cb) {
3838
.pipe($.clean({force: true}))
3939
});
4040

41-
gulp.task('dist:libjs', function (cb) {
42-
var dir = './static/app/src/lib/';
43-
gulp.src([dir+'jquery.min.js',
44-
dir+'tether.min.js',
45-
dir+'bootstrap.min.js',
46-
dir+'prettify.js',
47-
dir+'ZeroClipboard.min.js',
48-
dir+'lovefield.min.js',
49-
dir+'fastclick.js'])
41+
gulp.task('dist:libjs', function () {
42+
return gulp.src(['./static/app/src/lib/all.js'])
43+
.pipe($.fileInclude({
44+
basepath: './static/app/src/lib/'
45+
}))
5046
.pipe($.cached('build-cache', {
5147
optimizeMemory: true
5248
}))
53-
.pipe($.concat('libs.js'))
5449
.pipe(cachebust.references())
5550
.pipe($.uglify())
5651
.pipe(cachebust.resources())
57-
.pipe(gulp.dest('./src/lib/'))
58-
.on('end', function () {
59-
cb();
60-
});
52+
.pipe(gulp.dest('./src/lib/'));
6153
});
6254
gulp.task("dist:appjs", function(callback) {
6355
// run webpack

‎index.html‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎static/app/html/scripts.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script src="src/lib/libs.js"></script>
1+
<script src="src/lib/all.js"></script>
22
<script>
33
@@include("src/AppBundle.js")
44
</script>

‎static/app/src/AppBundle.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,7 @@
801801
"bdSize": "16"
802802
}, "slide": {"type": "slide", "bdImg": "5", "bdPos": "right", "bdTop": els.win.height() / 2 - 80}
803803
};
804+
804805
with (document)0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];
805806
}
806807

‎static/app/src/View.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,7 @@ function renderBaiduShare() {
746746
"bdSize": "16"
747747
}, "slide": {"type": "slide", "bdImg": "5", "bdPos": "right", "bdTop": els.win.height() / 2 - 80}
748748
};
749+
749750
with (document)0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];
750751
}
751752

‎static/app/src/lib/all.js‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@@include("jquery.min.js")
2+
@@include("tether.min.js")
3+
@@include("bootstrap.min.js")
4+
@@include("prettify.js")
5+
@@include("ZeroClipboard.min.js")
6+
@@include("lovefield.min.js")
7+
@@include("fastclick.js")

0 commit comments

Comments
 (0)