Page MenuHomePhabricator

Support npm pkgs in extension-specific files
ClosedPublic

Authored by bytesofman on Dec 28 2020, 17:44.

Details

Reviewers
majcosta
alcipir
Group Reviewers
Restricted Project
Commits
rABCddbf732e42fb: Support npm pkgs in extension-specific files
Summary

As more complicated features are added to the extension, npm packages will be required.
This diff compiles background.js and contentscript.js to accept npm dependencies.

Future features require this foundational dev infra change.

Test Plan

npm i -g browserify
npm run extension and observe no errors in build
Navigate to chrome://extensions and update Cashtab or load web/cashtab/extension/dist as unpacked extension
Navigate to https://laughing-villani-8cfcaf.netlify.app/?path=/story/cashtabbutton--default and observe that BCHA buttons open prepopulated Cashtab window

There should be no functionality change in the extension from before.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
support-extension-dependencies
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 14530
Build 29022: Build Diff
Build 29021: arc lint + arc unit