this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix CI

ArthurW 73739098 67ed2126

+122 -11
+39
.github/workflows/build.yml
··· 1 + name: CI 2 + 3 + on: 4 + push: 5 + branches: 6 + - "master" 7 + pull_request: 8 + branches: 9 + - "master" 10 + 11 + jobs: 12 + build: 13 + strategy: 14 + fail-fast: false 15 + matrix: 16 + os: 17 + - ubuntu-latest 18 + ocaml-compiler: 19 + - 5.2.x 20 + runs-on: ${{ matrix.os }} 21 + 22 + steps: 23 + - uses: actions/checkout@v4 24 + with: 25 + submodules: recursive 26 + 27 + - name: Set up OCaml ${{ matrix.ocaml-compiler }} 28 + uses: ocaml/setup-ocaml@v3 29 + with: 30 + ocaml-compiler: ${{ matrix.ocaml-compiler }} 31 + 32 + - name: Install dependencies 33 + run: opam install . --deps-only --with-test 34 + 35 + - name: Build 36 + run: opam exec -- dune build --profile=release 37 + 38 + - name: Test export 39 + run: opam exec -- dune exec -- x-ocaml fmt yojson --ppx ppx_blob -o test_export.js
+21
LICENSE
··· 1 + MIT License 2 + 3 + Copyright (c) 2025 Arthur Wendling, Tarides 4 + 5 + Permission is hereby granted, free of charge, to any person obtaining a copy 6 + of this software and associated documentation files (the "Software"), to deal 7 + in the Software without restriction, including without limitation the rights 8 + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 + copies of the Software, and to permit persons to whom the Software is 10 + furnished to do so, subject to the following conditions: 11 + 12 + The above copyright notice and this permission notice shall be included in all 13 + copies or substantial portions of the Software. 14 + 15 + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 + SOFTWARE.
+35 -2
dune-project
··· 2 2 3 3 (generate_opam_files true) 4 4 5 + (source 6 + (github art-w/x-ocaml)) 7 + 8 + (authors "Arthur Wendling") 9 + 10 + (maintainers "art.wendling@gmail.com") 11 + 12 + (license MIT) 13 + 5 14 (package 6 15 (name x-ocaml) 7 - (depends bos cmdliner ocamlfind js_of_ocaml ppx_blob brr)) 16 + (synopsis "OCaml notebooks as a WebComponent") 17 + (depends 18 + (bos 19 + (>= 0.2.1)) 20 + (brr 21 + (>= 0.0.7)) 22 + (cmdliner 23 + (>= 1.3.0)) 24 + (js_of_ocaml 25 + (>= 6.0.1)) 26 + (js_of_ocaml-ppx 27 + (>= 6.0.1)) 28 + (js_of_ocaml-toplevel 29 + (>= 6.0.1)) 30 + (merlin-lib 31 + (>= 5.2.1-502)) 32 + (ocamlformat-lib 33 + (>= 0.27.0)) 34 + (ocamlfind 35 + (>= 1.9.8)) 36 + (ppx_blob 37 + (>= 0.9.0)))) 8 38 9 39 (package 10 40 (name ppxlib_register) 11 - (depends ppxlib)) 41 + (synopsis "Register PPX for js_of_ocaml-toplevel") 42 + (depends 43 + (ppxlib 44 + (>= 0.33.0))))
+8 -1
ppxlib_register.opam
··· 1 1 # This file is generated by dune, edit dune-project instead 2 2 opam-version: "2.0" 3 + synopsis: "Register PPX for js_of_ocaml-toplevel" 4 + maintainer: ["art.wendling@gmail.com"] 5 + authors: ["Arthur Wendling"] 6 + license: "MIT" 7 + homepage: "https://github.com/art-w/x-ocaml" 8 + bug-reports: "https://github.com/art-w/x-ocaml/issues" 3 9 depends: [ 4 10 "dune" {>= "3.10"} 5 - "ppxlib" 11 + "ppxlib" {>= "0.33.0"} 6 12 "odoc" {with-doc} 7 13 ] 8 14 build: [ ··· 19 25 "@doc" {with-doc} 20 26 ] 21 27 ] 28 + dev-repo: "git+https://github.com/art-w/x-ocaml.git"
+2 -2
worker/x_worker.ml
··· 5 5 let reformat ~id code = 6 6 let code' = 7 7 try Ocamlfmt.fmt code 8 - with err -> 9 - (* Brr.Console.log [ "ocamlformat error"; Printexc.to_string err ]; *) 8 + with _err -> 9 + (* Brr.Console.log [ "ocamlformat error"; Printexc.to_string _err ]; *) 10 10 code 11 11 in 12 12 if code <> code' then respond (Formatted_source (id, code'));
+17 -6
x-ocaml.opam
··· 1 1 # This file is generated by dune, edit dune-project instead 2 2 opam-version: "2.0" 3 + synopsis: "OCaml notebooks as a WebComponent" 4 + maintainer: ["art.wendling@gmail.com"] 5 + authors: ["Arthur Wendling"] 6 + license: "MIT" 7 + homepage: "https://github.com/art-w/x-ocaml" 8 + bug-reports: "https://github.com/art-w/x-ocaml/issues" 3 9 depends: [ 4 10 "dune" {>= "3.10"} 5 - "bos" 6 - "cmdliner" 7 - "ocamlfind" 8 - "js_of_ocaml" 9 - "ppx_blob" 10 - "brr" 11 + "bos" {>= "0.2.1"} 12 + "brr" {>= "0.0.7"} 13 + "cmdliner" {>= "1.3.0"} 14 + "js_of_ocaml" {>= "6.0.1"} 15 + "js_of_ocaml-ppx" {>= "6.0.1"} 16 + "js_of_ocaml-toplevel" {>= "6.0.1"} 17 + "merlin-lib" {>= "5.2.1-502"} 18 + "ocamlformat-lib" {>= "0.27.0"} 19 + "ocamlfind" {>= "1.9.8"} 20 + "ppx_blob" {>= "0.9.0"} 11 21 "odoc" {with-doc} 12 22 ] 13 23 build: [ ··· 24 34 "@doc" {with-doc} 25 35 ] 26 36 ] 37 + dev-repo: "git+https://github.com/art-w/x-ocaml.git"