Skip to content

AndriyKalashnykov/viteapp

Repository files navigation

viteapp

ReactJS + Vite

Requirements

  • curl
  • nvm
    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v$(curl -sL https://api.github.com/repos/nvm-sh/nvm/releases/latest  | grep '"tag_name":' | awk -F '"' '{printf("%s",$4)}' | cut -c 2-)/install.sh | bash
    nvm install --lts
    nvm use --lts
    npm install npm --global
  • pnpm
    npm install -g pnpm
    pnpm add -g pnpm

Help

$ make help
Usage: make COMMAND
Commands :
help           - List available tasks
clean          - Cleanup
setup          - Setup environment and tools
install        - Install
build          - Build
update         - Update
upgrade        - Upgrade
run            - Run
image          - Build Docker Image
check-version  - Ensure VERSION variable is set
release        - Creates and pushes tag for the current $VERSION
tag-release    - Create and push a new tag

Create react app

pnpm create vite viteapp -- --template react
pnpm add graphql urql
pnpm install
pnpm build
pnpm run dev

Release

Set version as env variable

export VERSION=v0.0.1

run release task

make release

References

React.js Setup for GraphQL using Vite and urql

Packages

 
 
 

Contributors 3

  •  
  •  
  •