caasi / cra-template-rescript-vite

ReScript + React + Vite template for Create React App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cra-template-rescript-vite

npm npm downloads per month

ReScript + React + Vite template for Create React App

Usage

use with npx

npx create-react-app --template=rescript-vite my-rescript-vite-app

or with yarn

yarn create react-app --template=rescript-vite my-rescript-vite-app

Scripts

# Run app with builds and hot reload
npm start

# Start rescript app with watch
npm run start:re

# Run app without builds
npm run start:vi

# Build vite and rescript app
npm run build

# Build rescript app with dependencies
npm run build:re

# Build vite
npm run build:vi

# Clear rescript lib folder 
npm run clean

Tests

This template does not include a test runner by default.

Settings included

  • ReScript syntax (*.res)
  • Vite configuration
  • Prettier

About

ReScript + React + Vite template for Create React App

License:MIT License


Languages

Language:CSS 35.9%Language:ReScript 22.6%Language:HTML 21.5%Language:JavaScript 20.1%