A quick start project for Concur-React
- Clone this repo -
git clone https://github.com/concurhaskell/concur-react-starter myproject
-
Change the details to match your project
- Change the details in
myproject.cabalto match your project. Rename the file if needed. - Change the details in
package.jsonto match your project. - Fill in appropriate details in
LICENSE.
- Change the details in
IMPORTANT NOTE: You don't need to add React and ReactDOM in package.json, as those dependencies will be pulled from Concur-React.
stack setup && stack install
Npm install must be run everytime you add any deps to package.json -
npm install
Build any JS code -
webpack
Build Haskell code -
stack build --stack-yaml stack-ghcjs.yaml
You can also run scripts/build.sh to build both JS and Haskell code in one go.