mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 15:18:01 +00:00
Add Generate Starter Reason Projects as a reasonml til
This commit is contained in:
@@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
|
|||||||
For a steady stream of TILs from a variety of rocketeers, checkout
|
For a steady stream of TILs from a variety of rocketeers, checkout
|
||||||
[til.hashrocket.com](https://til.hashrocket.com/).
|
[til.hashrocket.com](https://til.hashrocket.com/).
|
||||||
|
|
||||||
_689 TILs and counting..._
|
_690 TILs and counting..._
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -508,6 +508,7 @@ _689 TILs and counting..._
|
|||||||
- [Defining Variants With Constructor Arguments](reason/defining-variants-with-constructor-arguments.md)
|
- [Defining Variants With Constructor Arguments](reason/defining-variants-with-constructor-arguments.md)
|
||||||
- [Dynamically Create A Printf String Format](reason/dynamically-create-a-printf-string-format.md)
|
- [Dynamically Create A Printf String Format](reason/dynamically-create-a-printf-string-format.md)
|
||||||
- [Exhaustive Pattern Matching Of List Variants](reason/exhaustive-pattern-matching-of-list-variants.md)
|
- [Exhaustive Pattern Matching Of List Variants](reason/exhaustive-pattern-matching-of-list-variants.md)
|
||||||
|
- [Generate Starter Reason Projects](reason/generate-starter-reason-projects.md)
|
||||||
- [Helping The Compiler Help Us With Variants](reason/helping-the-compiler-help-us-with-variants.md)
|
- [Helping The Compiler Help Us With Variants](reason/helping-the-compiler-help-us-with-variants.md)
|
||||||
- [Inline Component Styles With Reason React](reason/inline-component-styles-with-reason-react.md)
|
- [Inline Component Styles With Reason React](reason/inline-component-styles-with-reason-react.md)
|
||||||
- [Multi-Argument Functions As Syntactic Sugar](reason/multi-argument-functions-as-syntactic-sugar.md)
|
- [Multi-Argument Functions As Syntactic Sugar](reason/multi-argument-functions-as-syntactic-sugar.md)
|
||||||
|
|||||||
34
reason/generate-starter-reason-projects.md
Normal file
34
reason/generate-starter-reason-projects.md
Normal 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)
|
||||||
Reference in New Issue
Block a user