-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Milan Andric
committed
Feb 23, 2019
0 parents
commit 90252f0
Showing
11 changed files
with
8,251 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
.cache | ||
dist |
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,33 @@ | ||
# extension-testing-example | ||
|
||
Browser extension example using Parcel, Mocha, Sinon-Chrome and Chrome API. | ||
|
||
Hoping to make it work with Firefox then Safari next. | ||
|
||
# Build | ||
|
||
``` | ||
git clone [this repo] | ||
npm install | ||
npm run build # runs parcel build src/manifest.json | ||
``` | ||
|
||
Then you should be able to load the `dist/` directory into your Chrome browser | ||
as an extension and see Fibonacci greatness. | ||
|
||
If you prefer unminified builds you can pass a flag to Parcel. | ||
|
||
``` | ||
npx parcel build --no-minify --no-source-maps src/manifest.json | ||
``` | ||
|
||
# Unit Tests | ||
|
||
``` | ||
npm test # runs mocha | ||
``` | ||
|
||
# Integration Tests | ||
|
||
Planning to use Puppeteer here (Chrome only) to start out with. | ||
|
Oops, something went wrong.