Skip to content

Commit 4757486

Browse files
committed
清理发布项目
1 parent 2cd5c9f commit 4757486

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.jshintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"expr": true,
2323
"laxcomma": true,
2424
"globals": {
25-
"angular": false
25+
"angular": false,
26+
"V": false
2627
}
2728
}

gulpfile.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ gulp.task('html2js', function () {
117117
gulp.task('imagemin', function () {
118118
var imgSrc = './app/images/*.*';
119119
var imgDst = './dist/images';
120-
120+
121121
gulp.src(imgSrc)
122122
.pipe($.changed('./dist/images'))
123123
.pipe($.imagemin())
@@ -164,8 +164,7 @@ function sh(commands) {
164164

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

177-
gulp.task('dist:prod', function () {
178-
distribution('prod');
179-
});
180-
181-
gulp.task('dist:beta', function () {
182-
distribution('beta');
176+
gulp.task('dist:io', function () {
177+
distribution('io');
183178
});
184179

185180
gulp.task('dist', function () {

0 commit comments

Comments
 (0)