├── .gitignore
├── LICENSE.md
├── README.md
├── index.html
├── package-lock.json
├── package.json
├── postcss.config.js
├── public
└── favicon.svg
├── rescript.json
├── src
├── App.css
├── App.res
├── App.resi
├── Main.res
├── logo.svg
└── tailwind.css
├── tailwind.config.js
├── tests
├── App_test.res
├── Bindings.res
└── setup.ts
└── vite.config.mts
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .DS_Store
3 | dist
4 | dist-ssr
5 | *.local
6 |
7 | # ReScript
8 | .bsb.lock
9 | .merlin
10 | /lib/
11 | *.bs.js
12 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Jihchi Lee
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Vite React ReScript Starter
2 |
3 | - [Vite](https://vitejs.dev): Next Generation Frontend Tooling.
4 | - [React](https://reactjs.org): A JavaScript library for building user interfaces.
5 | - [ReScript](https://rescript-lang.org): The JavaScript-like language you have been waiting for. (previously known as BuckleScript and Reason)
6 | - [@jihchi/vite-plugin-rescript](https://github.com/jihchi/vite-plugin-rescript): Integrate ReScript with Vite seamlessly.
7 | - [vitest](https://vitest.dev/): A blazing fast unit-test framework, powered by [Vite](https://vitejs.dev) ⚡️.
8 | - [rescript-vitest](https://github.com/cometkim/rescript-vitest): ReScript bindings to Vitest.
9 | - [React Testing Library](https://testing-library.com/docs/react-testing-library/intro/): Helps you test UI components in a user-centric way.
10 | - [Tailwind CSS](https://tailwindcss.com): A utility-first CSS framework for rapid UI development.
11 |
12 | ## Getting Started
13 |
14 | ```sh
15 | npx degit jihchi/vitejs-template-react-rescript my-vitejs-react-rescript
16 | cd my-vitejs-react-rescript
17 | npm install
18 | npm start
19 | ```
20 |
21 | ## Alternatives
22 |
23 | - [rescript-lang/create-react-app](https://github.com/rescript-lang/create-rescript-app)
24 |
25 | ## Contributors
26 |
27 | Many thanks for your help!
28 |
29 |
30 |
31 |
32 |
33 | The image of contributors is made with [contrib.rocks](https://contrib.rocks).
34 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |