Skip to content

Commit 00998b6

Browse files
committed
clear
1 parent c1bc370 commit 00998b6

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

gulpfile.default.js

-33
Original file line numberDiff line numberDiff line change
@@ -74,39 +74,6 @@ gulp.task('templates', function (done) {
7474
.on('end', done);
7575
});
7676

77-
gulp.task('deploy', ['build'], function () {
78-
var p = require('./package.json');
79-
var version = p.version || '1.0.0';
80-
81-
//var jscssFilter = filter(['**/*.js', '**/*.css']);
82-
83-
gulp.src(['./dist/editor.html'])
84-
.pipe(replace(/js\/main\.js/, 'http://res.open5.net/open5/' + version + '/js/main.js'))
85-
.pipe(replace(/css\/main\.css/, 'http://res.open5.net/open5/' + version + '/css/main.css'))
86-
.pipe(gulp.dest('./dist/'));
87-
88-
gulp.src(['./dist/player.html'])
89-
.pipe(replace(/js\/player\.js/, 'http://res.open5.net/open5/' + version + '/js/player.js'))
90-
.pipe(replace(/css\/player\.css/, 'http://res.open5.net/open5/' + version + '/css/player.css'))
91-
.pipe(gulp.dest('./dist/'));
92-
93-
gulp.src(['./dist/**/*'])
94-
.pipe(gzip({append: false}))
95-
.pipe(oss({
96-
"key": "lR5cJTkWxFxeFLm6",
97-
"secret": "NFT7uWJHLljjmERE8mxGJrQVz9fFdW",
98-
"endpoint": "http://oss-cn-hangzhou.aliyuncs.com"
99-
}, {
100-
headers: {
101-
Bucket: 'open5-assets',
102-
CacheControl: 'public', // 参考: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9
103-
ContentEncoding: 'gzip' // 参考: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11
104-
},
105-
uploadPath: 'open5/' + version + '/'
106-
}));
107-
108-
});
109-
11077
gulp.task('watch', function () {
11178
gulp.watch(paths.template, ['templates']);
11279
gulp.watch(paths.less, ['less']);

0 commit comments

Comments
 (0)