Skip to content

Commit

Permalink
Convert to new project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
tmattio committed Dec 30, 2019
1 parent 8b9e2f7 commit 5669758
Show file tree
Hide file tree
Showing 52 changed files with 327 additions and 327 deletions.
1 change: 1 addition & 0 deletions bin/cmd/cmd.re
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let all = [Cmd_new.cmd, Cmd_ls.cmd, Cmd_gen.cmd];
2 changes: 1 addition & 1 deletion executable/cmd/Cmd__gen.re → bin/cmd/cmd_gen.re
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let run = (~generator, ()) => {
let source = Source.ofString(config.source);
let generators =
Generators.listGenerators(source)
|> List.map(~f=ConfigFile.Generators.parse_doc);
|> List.map(~f=Config_file.Generators.parse_doc);

Console.log(
<Pastel> "The generators available for this project are:\n" </Pastel>,
Expand Down
4 changes: 2 additions & 2 deletions executable/cmd/Cmd__list_templates.re → bin/cmd/cmd_ls.re
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ open Cmdliner;
open Spin;

let run = () => {
TemplateOfficial.ensureDownloaded();
let templates = TemplateOfficial.all();
Template_official.ensureDownloaded();
let templates = Template_official.all();

Console.log(<Pastel> "The official templates are:\n" </Pastel>);

Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions bin/dune
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(executable (name spin_app) (modules (:standard)) (public_name spin.exe)
(libraries base cmdliner lwt.unix console.lib pastel.lib spin.lib)
(flags -open Base) (preprocess (pps lwt_ppx ppx_let)))
(include_subdirs unqualified)
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 0 additions & 7 deletions dune

This file was deleted.

123 changes: 123 additions & 0 deletions esy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
{
"name": "spin",
"esy": {
"build": "dune build -p #{self.name}",
"buildDev": "refmterr dune build -p #{self.name}",
"buildsInSource": "_build",
"release": {
"bin": {
"spin": "spin.exe"
}
}
},
"buildDirs": {
"test": {
"require": [
"spin.lib",
"rely.lib"
],
"flags": [
"-open",
"Base",
"-linkall",
"-g",
"-w",
"-9"
],
"includeSubdirs": "unqualified",
"namespace": "spin_test"
},
"test_runner": {
"require": [
"spin/test"
],
"bin": {
"test-runner.exe": "test_runner.re"
}
},
"lib": {
"preprocess": [
"pps",
"lwt_ppx",
"ppx_let",
"ppx_sexp_conv"
],
"require": [
"base",
"console.lib",
"pastel.lib",
"lwt.unix",
"str",
"stdio",
"sexplib",
"jingoo",
"fileutils"
],
"flags": [
"-open",
"Base"
],
"includeSubdirs": "unqualified",
"namespace": "Spin"
},
"bin": {
"preprocess": [
"pps",
"lwt_ppx",
"ppx_let"
],
"require": [
"base",
"cmdliner",
"lwt.unix",
"console.lib",
"pastel.lib",
"spin.lib"
],
"flags": [
"-open",
"Base"
],
"bin": {
"spin.exe": "spin_app.re"
},
"includeSubdirs": "unqualified"
}
},
"dependencies": {
"@esy-ocaml/reason": "*",
"@opam/base": "v0.13.0",
"@opam/cmdliner": "1.0.4",
"@opam/dune": ">=1.6.0",
"@opam/fileutils": "*",
"@opam/jingoo": "*",
"@opam/lwt": "^4.4.0",
"@opam/lwt_ppx": "^1.2.4",
"@opam/ppx_let": "v0.13.0",
"@opam/ppx_sexp_conv": "v0.13.0",
"@opam/sexplib": "v0.13.0",
"@reason-native/console": "^0.1.0",
"@reason-native/pastel": "^0.2.2",
"@reason-native/rely": "^3.1.0",
"ocaml": "~4.8.1000"
},
"devDependencies": {
"@opam/merlin": "*",
"@opam/odoc": "*",
"@opam/utop": "*",
"@pesy/esy-pesy": "esy/pesy#5c6e1c3",
"refmterr": "*"
},
"resolutions": {
"@opam/jingoo": "tmattio/jingoo:jingoo.opam#e012716"
},
"scripts": {
"start": "esy x spin.exe",
"test": "esy x test-runner.exe",
"doc": "esy dune build @doc",
"format": "esy dune build @fmt --auto-promote",
"watch": "esy dune build -p #{self.name} --watch",
"doc-path": "esy echo #{self.target_dir}/default/_doc/_html/index.html",
"utop": "esy dune utop lib -- -implicit-bindings"
}
}
2 changes: 1 addition & 1 deletion esy.lock/.gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5669758

Please sign in to comment.