1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add Generate Starter Reason Projects as a reasonml til

This commit is contained in:
jbranchaud
2018-07-14 15:32:15 -05:00
parent 7c622f5f57
commit ecb7e0f659
2 changed files with 36 additions and 1 deletions

View File

@@ -0,0 +1,34 @@
# Generate Starter Reason Projects
With the latest `bs-platform` installed, you should have access to the `bsb`
command which contains a number of options -- including `-themes`.
```bash
$ bsb -themes
Available themes:
basic
basic-reason
generator
minimal
node
react
```
This is a list of themes (read: templates) that can be used to generate a
starter project.
For example, if you'd like a basic project structure geared toward writing
Reason, run the following:
```bash
$ bsb -init my-project -theme basic-reason
```
Or if you'd like to get started with
[`reason-react`](https://reasonml.github.io/reason-react/), give this a try:
```bash
$ bsb -init my-reason-react-project -theme react
```
[source](https://bucklescript.github.io/docs/en/new-project.html)