Skip to content

Commit

Permalink
清理发布项目
Browse files Browse the repository at this point in the history
  • Loading branch information
amio committed May 27, 2014
1 parent 2cd5c9f commit 4757486
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"expr": true,
"laxcomma": true,
"globals": {
"angular": false
"angular": false,
"V": false
}
}
13 changes: 4 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ gulp.task('html2js', function () {
gulp.task('imagemin', function () {
var imgSrc = './app/images/*.*';
var imgDst = './dist/images';

gulp.src(imgSrc)
.pipe($.changed('./dist/images'))
.pipe($.imagemin())
Expand Down Expand Up @@ -164,8 +164,7 @@ function sh(commands) {

function distribution(tar) {
var targets = {
prod: '[email protected]:/var/www/ProtoShop/html/',
beta: '[email protected]:/usr/local/httpd/htdocs/beta/html/',
io: '[email protected]:/var/www/ProtoShop/html/',
ctqa: '[email protected]:/var/www/ProtoShop/html/'
};
var rsyncParams = ' -avz -e ssh --delete --exclude=.git* --exclude=*.scss --exclude=node_modules';
Expand All @@ -174,12 +173,8 @@ function distribution(tar) {
sh(command);
}

gulp.task('dist:prod', function () {
distribution('prod');
});

gulp.task('dist:beta', function () {
distribution('beta');
gulp.task('dist:io', function () {
distribution('io');
});

gulp.task('dist', function () {
Expand Down

0 comments on commit 4757486

Please sign in to comment.