Skip to content

Commit 30e0d03

Browse files
committed
Merge remote-tracking branch 'fresh/main' into merge-fresh
2 parents f576635 + e589d34 commit 30e0d03

35 files changed

Lines changed: 10348 additions & 28133 deletions

.github/dependabot.yml

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
1+
# Basic `dependabot.yml` file with
2+
# minimum configuration for three package managers
3+
14
version: 2
25
updates:
3-
- package-ecosystem: npm
4-
directory: "/"
5-
schedule:
6-
interval: weekly
7-
day: friday
8-
time: "18:00"
9-
open-pull-requests-limit: 10
10-
labels:
11-
- type:dependency
12-
- package-ecosystem: "github-actions"
13-
directory: "/"
14-
schedule:
15-
interval: weekly
16-
day: friday
17-
time: "18:00"
18-
labels:
19-
- type:dependency
6+
# Enable version updates for npm
7+
- package-ecosystem: "npm"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"
11+
day: sunday
12+
13+
# Enable version updates for GitHub Actions
14+
- package-ecosystem: "github-actions"
15+
# Workflow files stored in the default location of `.github/workflows`
16+
# You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.
17+
directory: "/"
18+
schedule:
19+
interval: "weekly"
20+
day: sunday
21+
22+
- package-ecosystem: "gitsubmodule"
23+
directory: "/"
24+
schedule:
25+
interval: weekly
26+
day: sunday
27+
labels: [ ]

.github/workflows/lint.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,27 @@
1-
name: Lint test
2-
on: [push]
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
merge_group:
9+
workflow_dispatch:
10+
311
jobs:
412
run:
513
name: Run
614
runs-on: ubuntu-latest
715
steps:
8-
- uses: actions/checkout@v3
9-
- uses: actions/setup-node@v3
10-
with:
11-
node-version: 'lts/*'
12-
cache: 'npm'
13-
- run: npm install
14-
- run: $(npm bin)/web-ext lint --self-hosted
16+
- uses: actions/checkout@v6
17+
with:
18+
submodules: recursive
19+
20+
- uses: actions/setup-node@v6
21+
with:
22+
node-version: 'lts/*'
23+
cache: npm
24+
25+
- run: npm install
26+
27+
- run: npm run lint:eslint

.github/workflows/test.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
merge_group:
9+
workflow_dispatch:
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v6
16+
with:
17+
submodules: true
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v6
20+
- name: Set up Python
21+
uses: actions/setup-python@v6
22+
- name: Run import_and_patch_translators
23+
run: python3 scripts/import_and_patch_translators.py
24+
- name: Install dependencies
25+
run: npm install
26+
- name: Run tests
27+
run: npm test

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,7 @@ fabric.properties
212212
# Support for Project snippet scope
213213

214214
# End of https://www.toptal.com/developers/gitignore/api/intellij,visualstudiocode
215+
216+
# Temporary files
217+
dist/
218+
test_cache/

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "translators/zotero"]
2+
path = translators/zotero
3+
url = https://github.com/zotero/translators

CONTRIBUTING.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Contributing
2+
3+
Follow the typical steps to [contribute code](https://guides.github.com/activities/contributing-to-open-source/#contributing):
4+
5+
1. Create your feature branch: `git checkout -b my-new-feature`
6+
2. Build and run the add-on as described above.
7+
3. Commit your changes: `git commit -am 'Add some feature'`
8+
4. Push to the branch: `git push origin my-new-feature`
9+
5. Submit a pull request.

Makefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
DIST := dist
2+
CHROME_DIR := $(DIST)/chrome
3+
FIREFOX_DIR := $(DIST)/firefox
4+
CHROME_ZIP := $(CHROME_DIR)/jabref-browser-extension-chrome.zip
5+
FIREFOX_XPI := $(FIREFOX_DIR)/jabref-browser-extension-firefox.xpi
6+
7+
.PHONY: all chrome firefox clean
8+
9+
all: chrome firefox
10+
11+
chrome: $(CHROME_ZIP)
12+
13+
$(CHROME_ZIP):
14+
mkdir -p $(CHROME_DIR)
15+
zip -r $(CHROME_ZIP) . -x "dist/*" ".git/*" "scripts/*"
16+
17+
firefox: $(FIREFOX_XPI)
18+
19+
$(FIREFOX_XPI):
20+
web-ext build --artifacts-dir $(FIREFOX_DIR) --ignore-files dist/** --ignore-files scripts/** --ignore-files .git/**
21+
mv $(FIREFOX_DIR)/jabref-browser-extension-*.zip $(FIREFOX_XPI)
22+
23+
clean:
24+
rm -rf $(DIST)
25+
26+
lint:
27+
web-ext lint --ignore-files dist/** --ignore-files scripts/** --ignore-files .git/** --ignore-files test.js

README.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,7 @@ To update dependencies:
5757
- `npm outdated` gives an overview of outdated packages ([doc](https://docs.npmjs.com/cli/outdated))
5858
- `npm-upgrade` updates all packages
5959
- `npm install` install updated packages
60-
- running
61-
```
62-
git subtree pull --prefix zotero-connectors https://github.com/zotero/zotero-connectors.git master --squash
63-
git subtree pull --prefix zotero-connectors/src/zotero https://github.com/zotero/zotero.git master --squash
64-
git subtree pull --prefix zotero-connectors/src/translate https://github.com/zotero/translate.git master --squash
65-
git subtree pull --prefix zotero-connectors/src/utilities https://github.com/zotero/utilities.git master --squash
66-
git subtree pull --prefix zotero-scholar-citations https://github.com/MaxKuehn/zotero-scholar-citations.git master --squash
67-
```
68-
updates the `zotero-connectors` submodule and the `zotero-scholar-citations` submodule
69-
70-
- `gulp update-external-scripts` copies and post-processes the scripts in the folders `zotero-connectors` and `zotero-scholar-citations` to the folder `external-scripts`
71-
60+
7261
## Release of new version
7362
- Increase version number in `manifest.json`
7463
- `npm run build`

assets/extension_settings.png

31.6 KB
Loading

assets/jabref_settings.png

123 KB
Loading

0 commit comments

Comments
 (0)