]> BookStack Code Mirror - bookstack/commitdiff
Meta: Added lexical licensing info and added TS/JS CI testing 5058/head
authorDan Brown <redacted>
Fri, 27 Sep 2024 09:40:53 +0000 (10:40 +0100)
committerDan Brown <redacted>
Fri, 27 Sep 2024 09:45:48 +0000 (10:45 +0100)
.github/workflows/lint-js.yml
.github/workflows/test-js.yml [new file with mode: 0644]
readme.md
resources/views/help/licenses.blade.php

index 0391ce5b5c6467791a1f9893019fae939dde334d..9aceea2a26ce6d5b8b503403e4b37347a781718e 100644 (file)
@@ -13,9 +13,9 @@ on:
 jobs:
   build:
     if: ${{ github.ref != 'refs/heads/l10n_development' }}
-    runs-on: ubuntu-22.04
+    runs-on: ubuntu-24.04
     steps:
-    - uses: actions/checkout@v1
+    - uses: actions/checkout@v4
 
     - name: Install NPM deps
       run: npm ci
diff --git a/.github/workflows/test-js.yml b/.github/workflows/test-js.yml
new file mode 100644 (file)
index 0000000..13f9a8a
--- /dev/null
@@ -0,0 +1,29 @@
+name: test-js
+
+on:
+  push:
+    paths:
+      - '**.js'
+      - '**.ts'
+      - '**.json'
+  pull_request:
+    paths:
+      - '**.js'
+      - '**.ts'
+      - '**.json'
+
+jobs:
+  build:
+    if: ${{ github.ref != 'refs/heads/l10n_development' }}
+    runs-on: ubuntu-24.04
+    steps:
+    - uses: actions/checkout@v4
+
+    - name: Install NPM deps
+      run: npm ci
+
+    - name: Run TypeScript type checking
+      run: npm run ts:lint
+
+    - name: Run JavaScript tests
+      run: npm run test
\ No newline at end of file
index 11bf2c8886f3966f5d465eba6360a7f66e286b18..29983eafff0f03dd3c2798d3c04be01444936590 100644 (file)
--- a/readme.md
+++ b/readme.md
@@ -145,6 +145,7 @@ Note: This is not an exhaustive list of all libraries and projects that would be
 
 * [Laravel](http://laravel.com/) - _[MIT](https://github.com/laravel/framework/blob/v8.82.0/LICENSE.md)_
 * [TinyMCE](https://www.tinymce.com/) - _[MIT](https://github.com/tinymce/tinymce/blob/develop/LICENSE.TXT)_
+* [Lexical](https://lexical.dev/) - _[MIT](https://github.com/facebook/lexical/blob/main/LICENSE)_
 * [CodeMirror](https://codemirror.net) - _[MIT](https://github.com/codemirror/CodeMirror/blob/master/LICENSE)_
 * [Sortable](https://github.com/SortableJS/Sortable) - _[MIT](https://github.com/SortableJS/Sortable/blob/master/LICENSE)_
 * [Google Material Icons](https://github.com/google/material-design-icons) - _[Apache-2.0](https://github.com/google/material-design-icons/blob/master/LICENSE)_
index 1eb293523b64dc418556f76711eaee3651fbffe5..09126ddadb610973d76a0a012570e7daabd9f83c 100644 (file)
                 License File: https://github.com/tinymce/tinymce/blob/release/6.7/LICENSE.TXT
                 Copyright: Copyright (c) 2022 Ephox Corporation DBA Tiny Technologies, Inc.
                 Link: https://github.com/tinymce/tinymce
+                -----------
+                BookStack's newer WYSIWYG editor is based upon lexical code:
+                License: MIT
+                License File: https://github.com/facebook/lexical/blob/v0.17.1/LICENSE
+                Copyright: Copyright (c) Meta Platforms, Inc. and affiliates.
+                Link: https://github.com/facebook/lexical
             </div>
         </div>
     </div>