/vitejs-docker-setup

A setup Makefile and compose to work with vite projects running from a docker container

Primary LanguageMakefile

Vitejs-docker-setup

Using Vitejs with docker setup and commands in a Makefile

Install

  1. Clone this repository

  2. Create a new vite project o add to an existing project

npm create vite@latest
  1. Change var values that you need and copy the env.example to a .env file with
cp env-example .env
  1. Use Makefile commands to interact with project
# This will install necessary packages and run dev script putting project in http://localhost:5173 port
make first

Help

See all commands with

make help

Links

Original versions used as base source and additional setup to generate Library with Vite