-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
42 lines (42 loc) · 2.05 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"scripts": {
"preinstall:opam": "opam update",
"install:opam": "opam install -y . --deps-only --with-test",
"check-npm-deps": "opam exec opam-check-npm-deps",
"init": "opam switch create . 5.1.1 -y --deps-only && npm run install:npm-opam",
"install:npm-opam": "npm install && npm run install:opam && npm run check-npm-deps",
"dune": "opam exec -- dune",
"build": "npm run dune -- build",
"build:verbose": "npm run build -- --verbose",
"clean": "npm run dune -- clean",
"format": "npm run format:check -- --auto-promote",
"format:check": "npm run dune -- build @fmt",
"watch": "npm run build -- --watch",
"serve": "vite serve --open",
"bundle": "npm run build && vite build"
},
"scriptsComments": {
"preinstall:opam": "# Sync opam database with upstream repositories: https://opam.ocaml.org/doc/Usage.html#opam-update",
"install:opam": "# Downloads, builds and installs opam pkgs: https://opam.ocaml.org/doc/Usage.html#opam-install",
"check-npm-deps": "# Checks that Melange bindings have their JS dependencies available: https://github.com/ahrefs/opam-check-npm-deps",
"init": "# Create opam switch: https://opam.ocaml.org/doc/Usage.html#opam-switch and prepare everything to work in development mode (run just once, for initialization)",
"install:npm-opam": "# Install both npm and opam deps",
"dune": "# Run dune, OCaml's build tool",
"build": "# Build the Melange apps",
"build:verbose": "# Build the Melange apps in verbose mode",
"clean": "# Cleans all Melange artifacts",
"format": "# Formats the Melange sources using ocamlformat",
"format:check": "# Checks that the Melange sources have the right formatting (read-only)",
"watch": "# Watch files and rebuild when they change",
"serve": "# Serves the React app in a local server",
"bundle": "# Bundle the JavaScript apps generated by Melange"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.2.3",
"vite": "^5.0.11"
}
}