This repository has been archived by the owner on Oct 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added minimal boilerplate to be able to launch examples/small-study
- Loading branch information
Showing
6 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
examples/small-study/bin/bundle-shield-studies-addon-utils.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
# fail on any error | ||
set -o errexit | ||
|
||
# always run from the repository root directory | ||
script_path=`dirname $0` | ||
cd "$script_path/../../../" | ||
|
||
# paths | ||
WEBEXTAPIS_PATH="webExtensionApis" | ||
ADDON_SRC_PATH="examples/small-study/src" | ||
|
||
# bundle the study web extension experiment | ||
mkdir -p $ADDON_SRC_PATH/privileged/study | ||
cp $WEBEXTAPIS_PATH/study/api.js $ADDON_SRC_PATH/privileged/study/api.js | ||
cp $WEBEXTAPIS_PATH/study/schema.json $ADDON_SRC_PATH/privileged/study/schema.json | ||
|
||
# bundle the prefs web extension experiment | ||
mkdir -p $ADDON_SRC_PATH/privileged/prefs | ||
cp $WEBEXTAPIS_PATH/prefs/api.js $ADDON_SRC_PATH/privileged/prefs/api.js | ||
cp $WEBEXTAPIS_PATH/prefs/schema.json $ADDON_SRC_PATH/privileged/prefs/schema.json |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# ignore APIs that are bundled from shield-studies-addon-utils | ||
study/ | ||
prefs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* eslint-env node */ | ||
|
||
const defaultConfig = { | ||
// Global options: | ||
sourceDir: "./src/", | ||
artifactsDir: "./dist/", | ||
ignoreFiles: [".DS_Store"], | ||
// Command options: | ||
build: { | ||
overwriteDest: true, | ||
}, | ||
run: { | ||
firefox: "nightly", | ||
browserConsole: true, | ||
startUrl: ["about:debugging"], | ||
}, | ||
}; | ||
|
||
module.exports = defaultConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters