From d44c8f5d59e890a243983075ac3901cfae17ceba Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Wed, 5 Feb 2020 11:18:53 +0100
Subject: Add Dist::Maker configuration
---
.config/rdm/config.toml | 2 ++
.config/rdm/templates/kinds/grammar.raku | 4 ++++
.config/rdm/templates/provide.raku | 15 ++++++++++++
.config/rdm/templates/readme.rakudoc | 41 ++++++++++++++++++++++++++++++++
4 files changed, 62 insertions(+)
create mode 100644 .config/rdm/config.toml
create mode 100644 .config/rdm/templates/kinds/grammar.raku
create mode 100644 .config/rdm/templates/provide.raku
create mode 100644 .config/rdm/templates/readme.rakudoc
(limited to '.config/rdm')
diff --git a/.config/rdm/config.toml b/.config/rdm/config.toml
new file mode 100644
index 0000000..0ca38f3
--- /dev/null
+++ b/.config/rdm/config.toml
@@ -0,0 +1,2 @@
+[new]
+path = "/home/tyil/projects/personal"
diff --git a/.config/rdm/templates/kinds/grammar.raku b/.config/rdm/templates/kinds/grammar.raku
new file mode 100644
index 0000000..83a89d5
--- /dev/null
+++ b/.config/rdm/templates/kinds/grammar.raku
@@ -0,0 +1,4 @@
+unit grammar {{ this.provide }};
+
+token TOP {
+}
diff --git a/.config/rdm/templates/provide.raku b/.config/rdm/templates/provide.raku
new file mode 100644
index 0000000..19d944f
--- /dev/null
+++ b/.config/rdm/templates/provide.raku
@@ -0,0 +1,15 @@
+#! /usr/bin/env false
+
+use v{{ meta.perl }};
+
+{{ body }}
+
+=begin pod
+
+=NAME {{ this.provide }}
+=AUTHOR Patrick Spek
+=VERSION {{ meta.version }}
+
+=end pod
+
+# vim: ft=raku noet sw=8 ts=8
diff --git a/.config/rdm/templates/readme.rakudoc b/.config/rdm/templates/readme.rakudoc
new file mode 100644
index 0000000..5234c71
--- /dev/null
+++ b/.config/rdm/templates/readme.rakudoc
@@ -0,0 +1,41 @@
+=begin pod
+
+=NAME {{ name }}
+=AUTHOR {{ author }}
+=VERSION {{ version }}
+
+=head1 Description
+
+{{ description }}
+
+=head1 Installation
+
+Install this module through L:
+
+=begin code :lang
+zef install {{ name }}
+=end code
+
+=head1 Documentation
+
+Documentation is written as L
+documents, and can be read with C's C<--doc> option.
+
+=begin input
+raku --doc {{ name }}
+=end input
+
+At your option, you can also use prettier readers, such as
+L|https://modules.raku.org/search/?q=p6doc> or
+L|https://modules.raku.org/dist/App::Rakuman:cpan:TYIL>.
+
+=begin input
+p6doc {{ name }}
+rakuman {{ name }}
+=end input
+
+=head1 License
+
+This module is distributed under the terms of the {{ license }}.
+
+=end pod
--
cgit v1.1