get building working with webextension-polyfill as npm dep

This commit is contained in:
Nathaniel van Diepen
2018-01-24 11:15:05 -07:00
parent dd72abc594
commit a94c55a02c
2 changed files with 4 additions and 10131 deletions

View File

@@ -20,15 +20,11 @@ gulp.task('postinstall', function (cb) {
}); });
gulp.task('webextension',function(cb){ gulp.task('webextension',function(cb){
exec('npm install',{ exec('npm install',{
cwd: 'vendor/webextension-polyfill/' cwd: 'node_modules/webextension-polyfill/'
},function(){ },function(){
exec('grunt',{ var stream = fs.createWriteStream('public/js/browser-polyfill.min.js');
cwd: 'vendor/webextension-polyfill/' stream.on('done',cb);
},function(){ fs.createReadStream('node_modules/webextension-polyfill/dist/browser-polyfill.min.js').pipe(stream);
var stream = fs.createWriteStream('public/js/browser-polyfill.min.js');
stream.on('done',cb);
fs.createReadStream('vendor/webextension-polyfill/dist/browser-polyfill.min.js').pipe(stream);
});
}); });
}); });

10123
package-lock.json generated

File diff suppressed because it is too large Load Diff