nuxi-docker v0.0.12
Nuxi-Docker
Nuxi-Docker is a preconfigured Docker development environment for Nuxt.js projects, with a drop-in replacement for the Nuxi CLI.
Inspired by Laravel Sail and Vessel.
Quick Start
Create a new Nuxt.js project:
npx nuxi-docker init my-projectBring up the Docker environment:
npx nuxi-docker up -dUse nuxi-docker as a drop-in replacement for nuxi:
npx nuxi-docker devInstallation
Creating a New Project
To create a new Nuxt.js project and set it up within the Nuxi-Docker environment:
npx nuxi-docker init <PROJECT>This command automates project creation by executing nuxi init <PROJECT> and copying the necessary Docker configurations for the new project.
Installing Nuxi-Docker in an Existing Nuxt Project
If you already have an existing Nuxt.js project and want to integrate it with the Nuxi-Docker environment, you can use the install command:
npx nuxi-docker installThis command sets up the necessary configurations and Docker environment within your current Nuxt project.
Usage
Starting the Docker Environment
To start the Docker environment:
npx nuxi-docker up -dCommands Proxied to Nuxi
The following commands are proxied directly to Nuxi in the app container:
addanalyzebuild-modulecleanupdevdevtoolsgenerateinfoinitpreparepreviewtypecheckupgrade
To use these commands, execute:
npx nuxi-docker <COMMAND> [args]Nuxi Build
To avoid collision with Docker Compose's build, use nuxi-build to run Nuxi's build in the app container:
npx nuxi-docker nuxi-build [args]Commands proxied to binaries in the app container
The commands nuxi, nuxt, node, npm, npx, yarn, pnpm, pnpx, bun, and bunx are proxied to the binaries in the app container. Use them by running:
npx nuxi-docker <COMMAND> [args]Shell Access
Initiate a terminal in the app container using:
npx nuxi-docker shellPostgres Operations
Commands prefixed with postgres are forwarded to the Postgres container:
npx nuxi-docker postgres [args]: Execute Postgres-related commands.npx nuxi-docker postgres shell: Initiate a terminal in the Postgres container.npx nuxi-docker psql: Open a Postgres CLI terminal in the Postgres container.
Docker Compose Proxy
Any other command is proxied to Docker Compose.