Add ReasonML boilerplate
After some toil, I finally support basic ReasonML starter code. I'm adding it to the nut-score directory because I would like to make a simple webpage that render some nutritional facts about nuts with respect to the ketogenic diet. I'm not sure if I should include or exclude te .bs.js files. See the README.md for more information.
This commit is contained in:
parent
166aed6e80
commit
209fdf5726
14 changed files with 484 additions and 0 deletions
22
nut-score/index.html
Normal file
22
nut-score/index.html
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>ReasonReact Examples</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
// stub a variable ReactJS checks. ReactJS assumes you're using a bundler, NodeJS or similar system that provides it the `process.env.NODE_ENV` variable.
|
||||
window.process = {
|
||||
env: {
|
||||
NODE_ENV: 'development'
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<div id="mount"></div>
|
||||
<!-- This is https://github.com/marijnh/moduleserve, the secret sauce that allows us not need to bundle things during development, and have instantaneous iteration feedback, without any hot-reloading or extra build pipeline needed. -->
|
||||
<script src="/moduleserve/load.js" data-module="/src/Index.bs.js"></script>
|
||||
<!-- Our little watcher. Super clean. Check it out! -->
|
||||
<script src="/watcher.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue