Skip to content

Commit

Permalink
Build 内容添加主页的脚本,提高一级 server:dist 目录
Browse files Browse the repository at this point in the history
  • Loading branch information
amio committed Jun 10, 2014
1 parent f01ee52 commit 590dce2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ gulp.task('server:home', function () {
open('http://localhost:9999/home');
});

gulp.task('server:dist', ['build'], function () {
var servers = createServers(BUILD_ROOT, LOCAL_PORT, LIVERELOAD_PORT);
gulp.watch([BUILD_ROOT + '/**.*'], servers.onchange);
gulp.task('server:dist', function () {
var servers = createServers('./dist', LOCAL_PORT, LIVERELOAD_PORT);
gulp.watch(['./dist' + '/**.*'], servers.onchange);
open('http://localhost:9999');
});

Expand Down Expand Up @@ -109,6 +109,7 @@ gulp.task('usemin', ['html2js'], function () {
gulp.src('home/*.html')
.pipe($.usemin({
css: [$.autoprefixer(), $.minifyCss(), $.rev()],
js: [$.ngmin(), $.uglify(), $.rev()],
html: [$.minifyHtml({empty: true})]
}))
.pipe(gulp.dest('dist/home'));
Expand Down
4 changes: 4 additions & 0 deletions home/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,12 @@ <h3><em>View</em>On Mobile<span class="qrcode-download"></span></h3>
<i class="fa fa-coffee"></i> <a href="https://qr.alipay.com/ap27zqsxo3v5q61z1f" title="求咖灰~~~" target="_blank">Buy me a coffee!</a><span class="qrcode-donate"></span> (੭ु๑‾᷄ ⁻̫ ‾᷅)੭ु⁾⁾
</div>
</div>

<!-- build:js scripts/vendor.js -->
<script src="../app/bower_components/jquery/jquery.js"></script>
<script src="../app/scripts/libs/md5.js"></script>
<!-- endbuild -->

<script>
$(function(){

Expand Down

0 comments on commit 590dce2

Please sign in to comment.