nuxi-docker 0.0.10 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
 
2
- name: Node.js Package
2
+ name: Release
3
3
 
4
4
  on:
5
5
  push:
package/README.md CHANGED
@@ -1,6 +1,28 @@
1
1
  # Nuxi-Docker
2
2
 
3
- Nuxi-Docker is a preconfigured Docker development environment tailored to streamline interaction with Nuxt.js projects using the Nuxi CLI.
3
+ Nuxi-Docker is a preconfigured Docker development environment for Nuxt.js projects, with a drop-in replacement for the Nuxi CLI.
4
+
5
+ Inspired by [Laravel Sail](https://laravel.com/docs/8.x/sail) and [Vessel](https://vessel.shippingdocker.com/).
6
+
7
+ ## Quick Start
8
+
9
+ Create a new Nuxt.js project:
10
+
11
+ ```bash
12
+ npx nuxi-docker init my-project
13
+ ```
14
+
15
+ Bring up the Docker environment:
16
+
17
+ ```bash
18
+ npx nuxi-docker up -d
19
+ ```
20
+
21
+ Use `nuxi-docker` as a drop-in replacement for `nuxi`:
22
+
23
+ ```bash
24
+ npx nuxi-docker dev
25
+ ```
4
26
 
5
27
  ## Installation
6
28
 
@@ -26,6 +48,14 @@ This command sets up the necessary configurations and Docker environment within
26
48
 
27
49
  ## Usage
28
50
 
51
+ ### Starting the Docker Environment
52
+
53
+ To start the Docker environment:
54
+
55
+ ```bash
56
+ npx nuxi-docker up -d
57
+ ```
58
+
29
59
  ### Commands Proxied to Nuxi
30
60
 
31
61
  The following commands are proxied directly to Nuxi in the app container:
package/bin/index.mjs CHANGED
@@ -90,8 +90,8 @@ const DOCKERFILE_DIRECTORY = path.join(__dirname, "docker");
90
90
 
91
91
  const env_variables = [
92
92
  `DOCKERFILE_DIRECTORY="${DOCKERFILE_DIRECTORY}"`,
93
- `DOCKER_USER_UID=$UID`,
94
- `DOCKER_USER_GID=$(id -g)`,
93
+ `DOCKER_USER_UID=${process.getuid()}`,
94
+ `DOCKER_USER_GID=${process.getgid()}`,
95
95
  ];
96
96
 
97
97
  // install command
package/docker/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM node:20-bullseye-slim
1
+ FROM node:25-bullseye-slim
2
2
 
3
3
  ARG DOCKER_USER_UID
4
4
  ARG DOCKER_USER_GID
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxi-docker",
3
- "version": "0.0.10",
3
+ "version": "0.0.13",
4
4
  "description": "A preconfigured docker environment and cli tool for managing Nuxt.js projects",
5
5
  "main": "index.js",
6
6
  "bin": {