Configuration and scripts for ReasonReact on Create React App.
npm install cra-reason-template
$ yarn create react-app my-app --scripts-version cra-reason-template
This package includes scripts and configuration to provide an easy way to get
started building ReasonReact
applications with Create React
App.
For getting to know Create React App, please visit its official
documentation:
- Getting
Started –
How to create a new app.
- User Guide – How to develop
apps bootstrapped with Create React App.
#### Using NPM
``shell;`
$ npm install -g create-react-app
$ create-react-app my-app --scripts-version cra-reason-template
#### Using Yarn
`shell;`
$ yarn create react-app my-app --scripts-version cra-reason-template
#### Using NPX
`shell;`
$ npx create-react-app my-app --scripts-version cra-reason-template
#### Using NPM
`shell`
$ npm run bs:watch
$ npm run start # on a different shell session
#### Using Yarn
`shell`
$ yarn bs:watch
$ yarn start # on a different shell session
#### Using NPM
`shell`
$ npm run bs:make
$ npm run build
#### Using Yarn
`shell`
$ npm run bs:make
$ yarn build
This work is based on the work done in
reason-scripts. The main
difference between both projects is that reason-scripts tries to integrate
the BuckleScript toolchain too much
(subjective) with Webpack, when they don't really play very well together.
cra-reason-template tries to eschew added complexity by deliberately exposingCreate React
the BuckleScript compilation as a pre-requisite to launching the
App` process.
Distributed under the MIT license (see LICENSE).