This repository has been archived by the owner on Sep 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
1,931 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,24 @@ | ||
_build | ||
_opam | ||
# Dune generated files | ||
_build/ | ||
*.install | ||
|
||
# Local OPAM switch | ||
_opam/ | ||
|
||
# Merlin configuration files | ||
.merlin | ||
|
||
# Normal npm stuff | ||
npm-debug.log | ||
yarn-error.log | ||
node_modules/ | ||
.cache/ | ||
dist/ | ||
build/ | ||
|
||
# ReScript | ||
/lib/bs | ||
/lib/**/*.js | ||
.vscode | ||
|
||
# IDE related | ||
.vscode* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,24 +7,38 @@ $(eval $(ARGS):;@:) | |
all: | ||
opam exec -- dune build --root . @install | ||
|
||
.PHONY: dev | ||
dev: ## Install development dependencies | ||
opam switch create . --no-install -y | ||
.PHONY: deps | ||
deps: ## Install development dependencies | ||
opam pin -n -y [email protected]:aantron/dream.git | ||
opam pin -n -y [email protected]:tmattio/dream-cli.git | ||
opam pin -n -y [email protected]:tmattio/dream-livereload.git | ||
opam install -y dune-release ocamlformat utop ocaml-lsp-server | ||
npm install | ||
opam install --deps-only --with-test --with-doc -y . | ||
|
||
.PHONY: create_switch | ||
create_switch: | ||
opam switch create . 4.10.2 --no-install | ||
|
||
.PHONY: switch | ||
switch: create_switch deps ## Create an opam switch and install development dependencies | ||
|
||
.PHONY: lock | ||
lock: ## Generate a lock file | ||
opam lock -y . | ||
|
||
.PHONY: build | ||
build: ## Build the project, including non installable libraries and executables | ||
opam exec -- dune build --root . | ||
|
||
.PHONY: start | ||
start: all ## Start the project | ||
opam exec -- dune exec --root . src/bin/main.exe $(ARGS) | ||
|
||
.PHONY: install | ||
install: all ## Install the packages on the system | ||
opam exec -- dune install --root . | ||
|
||
.PHONY: preview | ||
preview: all ## Run the produced executable | ||
opam exec -- ./preview/script/watch.sh | ||
|
||
.PHONY: test | ||
test: ## Run the unit tests | ||
opam exec -- dune runtest --root . | ||
|
@@ -43,7 +57,7 @@ servedoc: doc ## Open odoc documentation with default web browser | |
|
||
.PHONY: fmt | ||
fmt: ## Format the codebase with ocamlformat | ||
opam exec -- dune build --root . @fmt --auto-promote | ||
opam exec -- dune build --root . --auto-promote @fmt | ||
|
||
.PHONY: watch | ||
watch: ## Watch for the filesystem and rebuild on every change | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# This file is generated by dune, edit dune-project instead | ||
opam-version: "2.0" | ||
synopsis: "Preview ood content" | ||
description: "Preview ood content" | ||
maintainer: ["[email protected]"] | ||
authors: ["Patrick Ferris"] | ||
license: "ISC" | ||
homepage: "https://github.com/patricoferris/ood" | ||
bug-reports: "https://github.com/patricoferris/ood/issues" | ||
depends: [ | ||
"ocaml" {>= "4.08.0"} | ||
"dune" {>= "2.8"} | ||
"crunch" | ||
"dream" | ||
"dream-cli" | ||
"dream-livereload" | ||
"yaml" | ||
"omd" | ||
"alcotest" {with-test} | ||
"odoc" {with-doc} | ||
] | ||
build: [ | ||
["dune" "subst"] {dev} | ||
[ | ||
"dune" | ||
"build" | ||
"-p" | ||
name | ||
"-j" | ||
jobs | ||
"@install" | ||
"@runtest" {with-test} | ||
"@doc" {with-doc} | ||
] | ||
] | ||
dev-repo: "git+https://github.com/patricoferris/ood.git" |
Oops, something went wrong.