|
13 | 13 |
|
14 | 14 | Plase read how to build on below.
|
15 | 15 |
|
16 |
| -## How to build |
| 16 | +## Build Packages |
| 17 | + |
| 18 | +### Setup |
| 19 | + |
| 20 | +- Install `node` and `yarn` |
| 21 | +- `% yarn install` |
| 22 | +- `% yarn build` |
| 23 | + |
| 24 | +### Make Packaging |
| 25 | + |
| 26 | +- All packages(for Chrome, Firefox, MSEdge): `% yarn run pack` |
| 27 | +- Chrome: `% yarn run pack:chrome` |
| 28 | +- Firefox: `% yarn run pack:firefox` |
| 29 | + - This command will try to pack for Firefox v52 and if it fails then pack for version less than v52 |
| 30 | + - Your target version is less than v52: `% yarn run pack:firefox:v50` |
| 31 | + - Why Firefox v52? - Firefox v52 has native support for `await-async` |
| 32 | +- MS Edge: `% yarn run pack:msedge` |
| 33 | + - If you install your MS Edge you should sign appX |
| 34 | + |
| 35 | +### Built Package Location |
| 36 | + |
| 37 | +- Chrome(crx): `packages/scboloo.crx` |
| 38 | +- Chrome(zip): `packages/scboloo.chrome.zip` |
| 39 | +- Firefox: `packcages/scboloo-X.X.X.zip` |
| 40 | +- MSEdge: `packages/edgeExtension.appx` |
| 41 | + |
| 42 | +## Development |
17 | 43 |
|
18 | 44 | - Require `node`, `yarn`
|
19 | 45 |
|
20 | 46 | 1. `% git clone [email protected]:pastak/scboloo.git`
|
21 | 47 | 2. `% cd scboloo`
|
22 | 48 | 3. `% yarn install`
|
23 |
| -4. `% yarn build` |
24 |
| - - You can `yarn watch` to watch your code to build while developing. |
25 |
| -5. Install `__WORK_DIR__/dist` on `chrome://extensions` |
| 49 | +4. Run build command |
| 50 | + - Chrome, Firefox(> v52): `% yarn run build` |
| 51 | + - dir: `dist/chrome`, `dist/firefox` |
| 52 | + - watch: `% yarn run watch` |
| 53 | + - Firefox (< v52): `% yarn run build:firefox:v50` |
| 54 | + - dir: `dist/firefox-v50` |
| 55 | + - watch: `% yarn run build:firefox:v50 -- --watch` |
| 56 | + - MSEdge: `% yarn run build:msedge` |
| 57 | + - dir: `dist/msedge` |
| 58 | + - watch: `yarn run build:msedge -- --watch` |
0 commit comments