A simple and minimal starter kit for bucklescript-tea. This starter kit uses:
- bs-css
- bs-platform
- bucklescript-tea
- npm-run-all
- webpack
- webpack-cli
- webpack-dev-server
Run the following commands for installation:
git clone https://github.com/feluxe/bs-tea-starter-kit.git
cd bs-tea-starter-kit
npm install
Run this to build the starter kit:
npm run build
Explanation: The above command runs BuckleScript to convert src/Demo.re
into src/Demo.bs.js
and then it runs Webpack to convert src/Demo.bs.js
into a browser compatible dist/bundle.js
.
This watches the src
directory for changes and rebuilds the files automatically. It also runs a dev server at localhost:9000
, showing the results.
npm run watch