Skip to content

rwcorbett/react-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-skeleton

React Skeleton - as bare bones as I can make it

Setup

npm init --init-author-name <<name>> --init-license MIT --init-version 1.0.0 -y

npm i --save react react-dom

npm i --save-dev vite @vitejs/plugin-react

echo "lts/<<version>>" > .nvmrc

echo "
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
  plugins: [react()],
});
" > vite.config.js

NPM Scripts

Update package.json by adding these to the "scripts": node:

  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "dev": "vite --open --port 8787",
    "build": "vite build",
    "preview": "vite preview"
  },

Build

npm run build

Dev

npm run dev

About

React Skeleton - as bare bones as I can make it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors