Skip to content

Commit

Permalink
Make EM the default translator. Rework snapshot saving pref.
Browse files Browse the repository at this point in the history
Also misc browserExt code refactoring
  • Loading branch information
adomasven committed Oct 11, 2017
1 parent b6aa745 commit f6eae83
Show file tree
Hide file tree
Showing 17 changed files with 713 additions and 604 deletions.
10 changes: 3 additions & 7 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,6 @@ if (!argv.p) {
'test/testSetup.js',
'lib/sinon.js');
}
var backgroundIncludeBrowserExt = ['browser-polyfill.js'].concat(backgroundInclude, [
'webRequestIntercept.js',
'contentTypeHandler.js',
]);

function reloadChromeExtensionsTab(cb) {
console.log("Reloading Chrome extensions tab");
Expand Down Expand Up @@ -229,10 +225,10 @@ function processFile() {
case 'manifest.json':
file.contents = Buffer.from(file.contents.toString()
.replace("/*BACKGROUND SCRIPTS*/",
backgroundIncludeBrowserExt.map((s) => `"${s}"`).join(',\n\t\t\t'))
backgroundInclude.map((s) => `"${s}"`).join(',\n\t\t\t'))
.replace(/"version": "[^"]*"/, '"version": "'+argv.version+'"'));
break;
case 'background.js':
case 'script-injection.js':
file.contents = Buffer.from(file.contents.toString()
.replace("/*INJECT SCRIPTS*/",
injectIncludeBrowserExt.map((s) => `"${s}"`).join(',\n\t\t')));
Expand Down Expand Up @@ -288,7 +284,7 @@ gulp.task('watch-chrome', function () {

gulp.task('process-custom-scripts', function() {
let sources = [
'./src/browserExt/background.js',
'./src/browserExt/script-injection.js',
'./src/browserExt/manifest.json',
'./src/safari/global.html',
'./src/safari/Info.plist',
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"name": "zotero-connectors",
"scripts": {
"start": "./build.sh -d && gulp watch",
"build": "./build.sh -d"
},
"devDependencies": {
"babel-cli": "^6.16.0",
"babel-core": "^6.16.0",
Expand Down

0 comments on commit f6eae83

Please sign in to comment.