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

Update to yarn Berry v3 #40

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn install --frozen-lockfile
- uses: actions/checkout@v3
- run: yarn install --immutable
- run: yarn test
release:
runs-on: ubuntu-latest
needs: ["test"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn --immutable
- name: Build
run: yarn build
- name: Pack extension
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn install --frozen-lockfile
- uses: actions/checkout@v3
- run: yarn --immutable
- run: yarn test
9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ distribution
.idea
.venv
yarn-error.log

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
# Mac OS .DS_Store
.DS_Store
.DS_Store
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"scripts": {
"build": "NODE_ENV=production parcel build source/manifest.json --no-scope-hoist --no-autoinstall --no-content-hash --no-source-maps --dist-dir distribution --no-cache --detailed-report 0",
"postbuild": "node ./postbuild.js distribution/manifest.json",
"lint": "run-p lint:*",
"lint": "run-p 'lint:*'",
"lint-fix": "run-p 'lint:* -- --fix'",
"lint:css": "stylelint source/**/*.css",
"lint:js": "eslint source",
"test": "run-p lint:* build",
"test": "run-p 'lint:* build'",
"watch": "NODE_ENV=development parcel watch source/manifest.json --dist-dir distribution --no-cache --no-hmr",
"build:glean": "glean translate source/telemetry/metrics.yaml source/telemetry/pings.yaml -f typescript -o source/telemetry/generated"
},
Expand Down Expand Up @@ -77,5 +77,6 @@
},
"webExt": {
"sourceDir": "distribution"
}
},
"packageManager": "[email protected]"
}
13 changes: 7 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ The RegretsReporter browser extension, built by the nonprofit Mozilla, lets you

## Building the extension

1. Make sure you have `yarn^1.22` and `node.js^16` installed.
1. Run `yarn --frozen-lockfile` to install package dependencies.
2. Run `yarn build` to build the extension from source.
3. Bundled & minified source code can now be found `distribution` directory.
1. Make sure you have `node.js>=16` and [`corepack`](https://nodejs.org/dist/latest-v17.x/docs/api/corepack.html) installed.
2. Run `corepack enable` to install automatically the correct version of yarn.
3. Run `yarn --immutable` to install package dependencies.
4. Run `yarn build` to build the extension from source.
5. Bundled & minified source code can now be found `distribution` directory.

## Releases

This extension is being automatically built and bundled into an unsigned XPI using the [Github CI](https://github.com/adelsz/regrets-reporter/blob/master/.github/workflows/release.yml).
You can download such builds in the [releases](https://github.com/adelsz/regrets-reporter/releases) section.
This extension is being automatically built and bundled into an unsigned XPI using the [Github CI](https://github.com/mozilla-extensions/regrets-reporter/blob/master/.github/workflows/release.yml).
You can download such builds in the [releases](https://github.com/mozilla-extensions/regrets-reporter/releases) section.
Loading