Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
Move preview to src/ood-preview
Browse files Browse the repository at this point in the history
  • Loading branch information
tmattio committed Jun 2, 2021
1 parent f762514 commit 8725b28
Show file tree
Hide file tree
Showing 48 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ install: all ## Install the packages on the system

.PHONY: preview
preview: all ## Run the produced executable
opam exec -- ./preview/script/watch.sh
cd src/ood-preview/ && opam exec -- script/watch.sh

.PHONY: test
test: ## Run the unit tests
Expand Down
9 changes: 7 additions & 2 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@
yaml
ppx_import
ppx_deriving_yaml
netlify-cms
fmt
cmdliner
bos
alcotest))
alcotest
(netlify-cms
(= :version))
(ood
(= :version))))

(package
(name ood-preview)
Expand All @@ -56,6 +59,8 @@
dream-livereload
yaml
omd
(ood
(= :version))
(alcotest :with-test)
(odoc :with-doc)))

Expand Down
3 changes: 2 additions & 1 deletion ood-cli.opam
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ depends: [
"yaml"
"ppx_import"
"ppx_deriving_yaml"
"netlify-cms"
"fmt"
"cmdliner"
"bos"
"alcotest"
"netlify-cms" {= version}
"ood" {= version}
"odoc" {with-doc}
]
build: [
Expand Down
1 change: 1 addition & 0 deletions ood-preview.opam
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ depends: [
"dream-livereload"
"yaml"
"omd"
"ood" {= version}
"alcotest" {with-test}
"odoc" {with-doc}
]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
2 changes: 1 addition & 1 deletion preview/asset/dune → src/ood-preview/asset/dune
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
node_modules/tailwindcss/lib/cli.js
build
-c
preview/config/tailwind.config.js
src/ood-preview/config/tailwind.config.js
-o
%{target}))))
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
(rule
(targets data.ml)
(deps
(source_tree ../../../data/))
(source_tree %{workspace_root}/data/))
(action
(with-stdout-to
%{null}
(run %{bin:ocaml-crunch} -m plain ../../../data -o %{targets}))))
(run %{bin:ocaml-crunch} -m plain %{workspace_root}/data -o %{targets}))))
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions preview/script/watch.sh → src/ood-preview/script/watch.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

source_dirs="preview/lib preview/bin preview/asset preview/config lib/ data/"
args=${*:-"preview/bin/server.exe run"}
source_dirs="lib bin asset config lib/ data/"
args=${*:-"bin/server.exe run"}
cmd="dune exec ${args}"

function sigint_handler() {
Expand Down

0 comments on commit 8725b28

Please sign in to comment.