Skip to content

Commit 28aeec4

Browse files
committed
Initial commit
0 parents  commit 28aeec4

13 files changed

Lines changed: 7727 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 22
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Lint
26+
run: npm run lint
27+
28+
- name: Test
29+
run: xvfb-run npm test
30+

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: release
2+
on:
3+
push:
4+
tags:
5+
- v*.*
6+
7+
env:
8+
PLUGIN_NAME: tropy-plugin-transkribus
9+
10+
jobs:
11+
create-release:
12+
name: Create release
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 22
23+
24+
- name: Install dependencies and build
25+
run: |
26+
npm ci
27+
npm run build
28+
29+
- name: Generate version name
30+
id: version
31+
run: echo "::set-output name=version::${{ env.PLUGIN_NAME }}-${{github.ref_name}}"
32+
33+
- name: Create zip file
34+
run: |
35+
mkdir ${{ steps.version.outputs.version }}
36+
cp index.js package.json icon.svg third-party-licenses.txt ${{ steps.version.outputs.version }}
37+
zip -r ${{ steps.version.outputs.version }}.zip ${{ steps.version.outputs.version }}
38+
39+
- name: Create release and upload zip file
40+
uses: ncipollo/release-action@v1
41+
with:
42+
artifacts: ${{ steps.version.outputs.version }}.zip
43+
prerelease: true
44+
token: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
3+
index.js
4+
third-party-licenses.txt

LICENSE

Lines changed: 661 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<p align="center"><img src="icon.svg"></p>
2+
3+
<h1 align="center">tropy-plugin-artimi</h1>
4+
5+
## Installation
6+
* Download the `.zip` file from the [latest
7+
release](https://github.com/tropy/tropy-plugin-artimi/releases/latest) on
8+
GitHub.
9+
* In Tropy, navigate to *Preferences… > Plugins* and click *Install
10+
Plugin* to select the downloaded ZIP file.
11+

eslint.config.mjs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
import neostandard from 'neostandard'
3+
import globals from 'globals'
4+
5+
export default [
6+
...neostandard({ noJsx: true }),
7+
{
8+
languageOptions: {
9+
globals: {
10+
...globals.node,
11+
...globals.mocha
12+
}
13+
},
14+
rules: {
15+
'accessor-pairs': 0,
16+
'curly': 0,
17+
'no-sequences': [2, { allowInParentheses: true }],
18+
'no-var': 0,
19+
'prefer-const': 0,
20+
'@stylistic/new-parens': 0,
21+
'@stylistic/generator-star-spacing': [2, { before: true }],
22+
'@stylistic/quote-props': 0
23+
}
24+
}
25+
]

icon.svg

Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)