-
-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update rollup and add @rollup/plugin-node-resolve * move manifest.json for test to test/extension/ * refactor test emulator dirs
- Loading branch information
Showing
12 changed files
with
608 additions
and
19 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
coverage | ||
dist | ||
node_modules | ||
test/extension/* | ||
!test/extension/background.js | ||
!test/extension/manifest.json |
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
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,21 @@ | ||
#!/bin/bash | ||
#-- | ||
# build_test.sh | ||
#-- | ||
destdir=test/extension | ||
|
||
cp src/*.html $destdir/ | ||
|
||
mkdir -p $destdir/js | ||
for file in src/js/*; do | ||
if [ -f "$file" ]; then | ||
fname="${file##*/}" | ||
rollup -c ./rollup.config.js src/js/$fname --file $destdir/js/$fname | ||
fi | ||
done | ||
|
||
mkdir -p $destdir/tests | ||
for file in src/tests/*; do | ||
fname="${file##*/}" | ||
rollup -c ./rollup.config.js src/tests/$fname --file $destdir/tests/$fname | ||
done |
Oops, something went wrong.