ep_subscript_and_superscript 0.3.2 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,8 @@
1
1
  name: Backend Tests
2
2
 
3
3
  # any branch is useful for testing before a PR is submitted
4
- on: [push, pull_request]
4
+ on:
5
+ workflow_call:
5
6
 
6
7
  jobs:
7
8
  withplugins:
@@ -13,73 +14,79 @@ jobs:
13
14
  name: with Plugins
14
15
  runs-on: ubuntu-latest
15
16
  steps:
16
- -
17
- name: Install libreoffice
18
- uses: awalsh128/cache-apt-pkgs-action@v1.4.2
19
- with:
20
- packages: libreoffice libreoffice-pdfimport
21
- version: 1.0
22
- -
23
- name: Install etherpad core
24
- uses: actions/checkout@v3
25
- with:
26
- repository: ether/etherpad-lite
27
- path: etherpad-lite
28
- - uses: pnpm/action-setup@v3
29
- name: Install pnpm
30
- with:
31
- version: 8
32
- run_install: false
33
- - name: Get pnpm store directory
34
- shell: bash
35
- run: |
36
- echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
37
- - uses: actions/cache@v4
38
- name: Setup pnpm cache
39
- with:
40
- path: ${{ env.STORE_PATH }}
41
- key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
42
- restore-keys: |
43
- ${{ runner.os }}-pnpm-store-
44
- -
45
- name: Checkout plugin repository
46
- uses: actions/checkout@v3
47
- with:
48
- path: plugin
49
- -
50
- name: Determine plugin name
51
- id: plugin_name
52
- working-directory: ./plugin
53
- run: |
54
- npx -c 'printf %s\\n "::set-output name=plugin_name::${npm_package_name}"'
55
- -
56
- name: Link plugin directory
57
- working-directory: ./plugin
58
- run: |
59
- pnpm link --global
60
- - name: Remove tests
61
- working-directory: ./etherpad-lite
62
- run: rm -rf ./src/tests/backend/specs
63
- -
64
- name: Install Etherpad core dependencies
65
- working-directory: ./etherpad-lite
66
- run: bin/installDeps.sh
67
- - name: Link plugin to etherpad-lite
68
- working-directory: ./etherpad-lite
69
- run: |
70
- pnpm link --global $PLUGIN_NAME
71
- pnpm run install-plugins --path ../../plugin
72
- env:
73
- PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }}
74
- - name: Link ep_etherpad-lite
75
- working-directory: ./etherpad-lite/src
76
- run: |
77
- pnpm link --global
78
- - name: Link etherpad to plugin
79
- working-directory: ./plugin
80
- run: |
81
- pnpm link --global ep_etherpad-lite
82
- -
83
- name: Run the backend tests
84
- working-directory: ./etherpad-lite
85
- run: pnpm run test
17
+ -
18
+ name: Install libreoffice
19
+ uses: awalsh128/cache-apt-pkgs-action@v1.4.2
20
+ with:
21
+ packages: libreoffice libreoffice-pdfimport
22
+ version: 1.0
23
+ -
24
+ name: Install etherpad core
25
+ uses: actions/checkout@v4
26
+ with:
27
+ repository: ether/etherpad-lite
28
+ path: etherpad-lite
29
+ - uses: pnpm/action-setup@v3
30
+ name: Install pnpm
31
+ with:
32
+ version: 8
33
+ run_install: false
34
+ - name: Get pnpm store directory
35
+ shell: bash
36
+ run: |
37
+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
38
+ - uses: actions/cache@v4
39
+ name: Setup pnpm cache
40
+ with:
41
+ path: ${{ env.STORE_PATH }}
42
+ key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
43
+ restore-keys: |
44
+ ${{ runner.os }}-pnpm-store-
45
+ -
46
+ name: Checkout plugin repository
47
+ uses: actions/checkout@v4
48
+ with:
49
+ path: plugin
50
+ -
51
+ name: Determine plugin name
52
+ id: plugin_name
53
+ working-directory: ./plugin
54
+ run: |
55
+ npx -c 'printf %s\\n "::set-output name=plugin_name::${npm_package_name}"'
56
+ -
57
+ name: Link plugin directory
58
+ working-directory: ./plugin
59
+ run: |
60
+ pnpm link --global
61
+ - name: Remove tests
62
+ working-directory: ./etherpad-lite
63
+ run: rm -rf ./src/tests/backend/specs
64
+ -
65
+ name: Install Etherpad core dependencies
66
+ working-directory: ./etherpad-lite
67
+ run: bin/installDeps.sh
68
+ - name: Link plugin to etherpad-lite
69
+ working-directory: ./etherpad-lite
70
+ run: |
71
+ pnpm link --global $PLUGIN_NAME
72
+ pnpm run install-plugins --path ../../plugin
73
+ env:
74
+ PLUGIN_NAME: ${{ steps.plugin_name.outputs.plugin_name }}
75
+ - name: Link ep_etherpad-lite
76
+ working-directory: ./etherpad-lite/src
77
+ run: |
78
+ pnpm link --global
79
+ - name: Link etherpad to plugin
80
+ working-directory: ./plugin
81
+ run: |
82
+ pnpm link --global ep_etherpad-lite
83
+ -
84
+ name: Run the backend tests
85
+ working-directory: ./etherpad-lite
86
+ run: |
87
+ res=$(find .. -path "./node_modules/ep_*/static/tests/backend/specs/**" | wc -l)
88
+ if [ $res -eq 0 ]; then
89
+ echo "No backend tests found"
90
+ else
91
+ pnpm run test
92
+ fi
@@ -2,7 +2,8 @@
2
2
  # projects.
3
3
  name: Frontend Tests
4
4
 
5
- on: [push]
5
+ on:
6
+ workflow_call:
6
7
 
7
8
  jobs:
8
9
  test-frontend:
@@ -11,7 +12,7 @@ jobs:
11
12
  steps:
12
13
  -
13
14
  name: Check out Etherpad core
14
- uses: actions/checkout@v3
15
+ uses: actions/checkout@v4
15
16
  with:
16
17
  repository: ether/etherpad-lite
17
18
  - uses: pnpm/action-setup@v3
@@ -32,7 +33,7 @@ jobs:
32
33
  ${{ runner.os }}-pnpm-store-
33
34
  -
34
35
  name: Check out the plugin
35
- uses: actions/checkout@v3
36
+ uses: actions/checkout@v4
36
37
  with:
37
38
  path: ./node_modules/__tmp
38
39
  -
@@ -4,17 +4,10 @@
4
4
  name: Node.js Package
5
5
 
6
6
  on:
7
- workflow_run:
8
- workflows: ["Backend Tests", "Frontend Tests"]
9
- types:
10
- - completed
11
- branches:
12
- - main
13
- - master
7
+ workflow_call:
14
8
 
15
9
  jobs:
16
10
  publish-npm:
17
- if: ${{ github.event.workflow_run.conclusion == 'success' }}
18
11
  runs-on: ubuntu-latest
19
12
  steps:
20
13
  - uses: actions/setup-node@v4
@@ -22,7 +15,7 @@ jobs:
22
15
  node-version: 20
23
16
  registry-url: https://registry.npmjs.org/
24
17
  - name: Check out Etherpad core
25
- uses: actions/checkout@v3
18
+ uses: actions/checkout@v4
26
19
  with:
27
20
  repository: ether/etherpad-lite
28
21
  - uses: pnpm/action-setup@v3
@@ -42,7 +35,7 @@ jobs:
42
35
  restore-keys: |
43
36
  ${{ runner.os }}-pnpm-store-
44
37
  -
45
- uses: actions/checkout@v3
38
+ uses: actions/checkout@v4
46
39
  with:
47
40
  fetch-depth: 0
48
41
  -
@@ -74,8 +67,8 @@ jobs:
74
67
  run: pnpm publish
75
68
  env:
76
69
  NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
77
- -
78
- name: Add package to etherpad organization
79
- run: pnpm access grant read-write etherpad:developers
80
- env:
81
- NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
70
+ #-
71
+ # name: Add package to etherpad organization
72
+ # run: pnpm access grant read-write etherpad:developers
73
+ # env:
74
+ # NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
@@ -0,0 +1,18 @@
1
+ name: Node.js Package
2
+ on: [push]
3
+
4
+
5
+ jobs:
6
+ backend:
7
+ uses: ./.github/workflows/backend-tests.yml
8
+ secrets: inherit
9
+ frontend:
10
+ uses: ./.github/workflows/frontend-tests.yml
11
+ secrets: inherit
12
+ release:
13
+ if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
14
+ needs:
15
+ - backend
16
+ - frontend
17
+ uses: ./.github/workflows/npmpublish.yml
18
+ secrets: inherit
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "deprecated": false,
12
12
  "description": "Add support for different Fonts",
13
13
  "engines": {
14
- "node": ">=12.17.0"
14
+ "node": ">=18.0.0"
15
15
  },
16
16
  "homepage": "https://github.com/ether/ep_subscript_and_superscript#readme",
17
17
  "license": "Apache-2.0",
@@ -20,14 +20,15 @@
20
20
  "type": "git",
21
21
  "url": "git+https://github.com/ether/ep_subscript_and_superscript.git"
22
22
  },
23
- "version": "0.3.2",
23
+ "version": "0.3.5",
24
24
  "funding": {
25
25
  "type": "individual",
26
26
  "url": "https://etherpad.org/"
27
27
  },
28
28
  "devDependencies": {
29
29
  "eslint": "^8.57.0",
30
- "eslint-config-etherpad": "^3.0.22"
30
+ "eslint-config-etherpad": "^4.0.4",
31
+ "typescript": "^5.4.3"
31
32
  },
32
33
  "scripts": {
33
34
  "lint": "eslint .",