Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add release build script and dependabot config #623

Merged
merged 3 commits into from
Sep 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: npm
directory: /
schedule:
interval: daily
labels:
- dependencies
9 changes: 5 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ You can find the documentation for all this on the following locations:
Building the extension is relatively easy through [Node.js](https://nodejs.org/en/). We use [Rollup](https://www.rollupjs.org/) to bundle the extension's Javascript code and manually copy over assets including images and the `manifest.json` file via [rollup-plugin-copy](https://www.npmjs.com/package/rollup-plugin-copy). Additionally, some browser-specific processing is applied to the manifest to work around some browser-specific incompatibilities. Build output goes to `build/chrome` and `build/firefox`.

```sh
$ npm install # Install dependencies
$ npm run build # Build extension
$ npm run build:watch # Automatically rebuild on file changes
$ npm run docs # Build documentation of internal interfaces
$ npm install # Install dependencies
$ npm run build # Build extension
$ npm run build:watch # Automatically rebuild on file changes
$ npm run build:release # Install dependencies and perform a release build
$ npm run docs # Build documentation of internal interfaces
```

Once you've built the extension, you can load it up in your browser for testing:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"scripts": {
"build": "rollup -c rollup.config.js",
"build:watch": "rollup -c rollup.config.js --watch",
"build:release": "npm ci && cross-env NODE_ENV=production rollup -c rollup.config.js",
"eslint": "eslint . --config .eslintrc.json --ignore-path .eslintignore",
"docs": "jsdoc -c jsdoc.json"
},
Expand Down