This package primarily adds a new command to raco
to generate source
content. The tool, scaffold, has a set of pre-defined complex templates
known as planks. Planks can be as simple as a snippet of useful reusable
code, or as complex as a complete package structure (akin to the existing
raco pkg new
command).
$ raco scaffold
Usage: raco scaffold <subcommand> [option ...] <arg ...>
where any unambiguous prefix can be used for a subcommand
The Racket templated content generator.
For help on a particular subcommand, use 'raco scaffold <subcommand> --help'
raco scaffold package create a new, complete, package.
raco scaffold collection create a new collection.
raco scaffold module create a new module.
raco scaffold testmodule create a new rackunit test module.
raco scaffold plank expand a short code snippet.
raco scaffold config show default configuration values.
Running the following command line will create a complete package.
$ raco scaffold package -d "Some new package" -V "1.0" -l MIT -r markdown \
-L "racket/base" -u "me" -e "me@example.com" my-name
The generated package has the following structure:
my-name/
|-- README.md
|-- LICENSE
|-- .travis.yml
|-- Makefile
|-- info.rkt
'-- my-name/
|-- info.rkt
|-- main.rkt
|-- private/
| '-- my-name.rkt
|-- test/
| '-- my-name.rkt
'-- scribblings/
'-- scribblings.scrbl
'-- my-name.scrbl
- 1.0 - Initial Version