React Skeleton - as bare bones as I can make it
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.jsUpdate 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"
},npm run build
npm run dev