Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Commit

Permalink
Moved web extension api related parts to a separate folder
Browse files Browse the repository at this point in the history
  • Loading branch information
motin committed Mar 26, 2018
1 parent bf4baab commit bb72c7a
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"pretest-addon:run": "npm run pretest",
"test": "FIREFOX_BINARY=${FIREFOX_BINARY:-firefox} XPI_NAME=test-addon/dist/shield_utils_test_add-on-1.0.0.zip mocha test-addon/test/functional/ --bail",
"test-addon:build": "cd test-addon && web-ext build",
"test-addon:bundle-utils": "mkdir -p test-addon/src/privileged/shieldUtils && cp dist/api.js test-addon/src/privileged/shieldUtils/api.js && cp schema.json test-addon/src/privileged/shieldUtils/schema.json",
"test-addon:bundle-utils": "mkdir -p test-addon/src/privileged/shieldUtils && cp webExtensionApi/dist/api.js test-addon/src/privileged/shieldUtils/api.js && cp webExtensionApi/schema.json test-addon/src/privileged/shieldUtils/schema.json",
"test-addon:run": "cd test-addon && web-ext run --no-reload"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/studyUtils.js → webExtensionApi/src/studyUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
const EXPORTED_SYMBOLS = ["studyUtils"];

const UTILS_VERSION = require("../package.json").version;
const UTILS_VERSION = require("../../package.json").version;
const PACKET_VERSION = 3;

const { utils: Cu } = Components;
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
const path = require("path");

module.exports = {
entry: "./src/index.js",
entry: "./webExtensionApi/src/index.js",
output: {
path: path.resolve(__dirname, "dist"),
path: path.resolve(__dirname, "webExtensionApi/dist"),
filename: "api.js",
libraryTarget: "this", // Possible value - amd, commonjs, commonjs2, commonjs-module, this, var
},
Expand Down

0 comments on commit bb72c7a

Please sign in to comment.