1.1.0 • Published 3 years ago

cra-template-rescript-snowpack v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

cra-template-rescript-snowpack

npm npm downloads per month

ReScript + React + Snowpack template for Create React App

Usage

use with npx

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

or with yarn

yarn create react-app --template=rescript-snowpack my-rescript-snowpack-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:sp

# Build snowpack and rescript app
npm run build

# Build rescript app with dependencies
npm run build:re

# Build snowpack
npm run build:sp

# Clear rescript lib folder 
npm run clean

Tests

This template does not include a test runner by default.

Settings included

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