diff --git a/README.md b/README.md index 46c1fa5..ce04688 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/). For a steady stream of TILs from a variety of rocketeers, checkout [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) - [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) +- [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) - [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) diff --git a/reason/generate-starter-reason-projects.md b/reason/generate-starter-reason-projects.md new file mode 100644 index 0000000..0fa919c --- /dev/null +++ b/reason/generate-starter-reason-projects.md @@ -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)