release v1.0.0 #14

Merged
thefeli73 merged 63 commits from develop into master 2019-11-12 18:53:53 +01:00
Showing only changes of commit c67a812614 - Show all commits

View File

@ -116,7 +116,6 @@ var jsTasks = lazypipe()
.pipe(optimizejs) .pipe(optimizejs)
//.pipe(rename, {suffix: '.min'}) //.pipe(rename, {suffix: '.min'})
.pipe(uglify) .pipe(uglify)
.pipe(optimizejs)
.pipe(header, banner.main, {package: package}) .pipe(header, banner.main, {package: package})
.pipe(dest, paths.scripts.output); .pipe(dest, paths.scripts.output);
@ -244,13 +243,19 @@ var updateAssetVersion = function (done) {
.pipe(dest(paths.output)); .pipe(dest(paths.output));
}; };
// updates version in SW // updates version in SW
var swTasks = lazypipe()
.pipe(optimizejs)
.pipe(uglify)
.pipe(header, banner.main, {package: package})
.pipe(dest, paths.output);
var buildSW = function (done) { var buildSW = function (done) {
return src('src/sw.js') return src('src/sw.js')
.pipe(hashsrc({build_dir:paths.output,src_path:"src",hash_len:"6",query_name:"v",exts:[".json",".webp",".jpg",".css",".png",".ico",".js"], .pipe(hashsrc({build_dir:paths.output,src_path:"src",hash_len:"6",query_name:"v",exts:[".json",".webp",".jpg",".css",".png",".ico",".js"],
regex:/\s*(?:(")([^"]*)|(')([^']*))/ig, regex:/\s*(?:(")([^"]*)|(')([^']*))/ig,
analyze: function analyze(match){return {prefix: "'",link:match[4],suffix: ''};} analyze: function analyze(match){return {prefix: "'",link:match[4],suffix: ''};}
})) }))
.pipe(jsTasks()) .pipe(swTasks())
.pipe(dest(paths.output)); .pipe(dest(paths.output));
}; };
// Watch for changes to the src directory // Watch for changes to the src directory