Skip to content

Commit

Permalink
Split the opam plugin in an
Browse files Browse the repository at this point in the history
Generate OCaml projects.

Usage:
  spin COMMAND

Available Commands:
  config      Update the current user's configuration
  ls          List the official templates
  new         Generate a new project from a template

Useful options:
       --help      Show manual page
  --v, --verbose   Increase verbosity
       --version   Show spin version

For a complete documentation, refer to the manual with `spin --help`.

Use `spin COMMAND --help` for help on a single command. package.
  • Loading branch information
tmattio committed Jun 4, 2021
1 parent ff16a3d commit b6fc719
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 16 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 0.8.1

## Changed

- Split the opam plugin in an `opam-spin` package.

# 0.8.0

## Added
Expand Down
2 changes: 2 additions & 0 deletions bin/dune
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(executable
(name main)
(public_name spin)
(package spin)
(libraries spin spin_std cmdliner fmt fmt.tty logs.fmt logs.cli)
(flags
(:standard -open Spin_std)))
Expand All @@ -9,5 +10,6 @@

(install
(section bin)
(package opam-spin)
(files
(main.exe as opam-spin)))
11 changes: 11 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,14 @@
fpath
cmdliner
logs))

(package
(name opam-spin)
(synopsis "Opam plugin for Spin, the OCaml project generator")
(description "Opam plugin for Spin, the OCaml project generator")
(depends
(ocaml
(>= 4.10.0))
dune
(spin
(= :version))))
32 changes: 32 additions & 0 deletions opam-spin.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "Opam plugin for Spin, the OCaml project generator"
description: "Opam plugin for Spin, the OCaml project generator"
maintainer: ["Thibaut Mattio"]
authors: ["Thibaut Mattio"]
license: "ISC"
homepage: "https://github.com/tmattio/spin"
doc: "https://tmattio.github.io/spin/"
bug-reports: "https://github.com/tmattio/spin/issues"
depends: [
"ocaml" {>= "4.10.0"}
"dune" {>= "2.7"}
"spin" {= version}
"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/tmattio/spin.git"
flags: plugin
1 change: 1 addition & 0 deletions opam-spin.opam.template
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
flags: plugin
4 changes: 2 additions & 2 deletions spin.opam
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ depends: [
"cmdliner"
"logs"
]
dev-repo: "git+https://github.com/tmattio/spin.git"
build: [
["dune" "subst"] {dev}
[
Expand All @@ -37,7 +36,8 @@ build: [
"-j"
jobs
"@install"
"@runtest" {with-test}
"@doc" {with-doc}
]
]
flags: plugin
dev-repo: "git+https://github.com/tmattio/spin.git"
14 changes: 0 additions & 14 deletions spin.opam.template

This file was deleted.

0 comments on commit b6fc719

Please sign in to comment.