Skip to content

Commit

Permalink
Create .env file automatically after npm install (don't overwrite…
Browse files Browse the repository at this point in the history
… if already exists)
  • Loading branch information
adamkudrna committed Dec 20, 2023
1 parent 16dff5f commit 7430955
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
11 changes: 1 addition & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,7 @@ This allows running the documentation site which serves as a development platfor

Review the default env variable values in the `docker-compose.yml` file.
The defaults should work for most systems, but can be changed if needed.

To change them:

1. Create a `.env` file from the template:

```bash
cp .env.dist .env
```

2. Edit the new `.env` file as needed
To change them, edit the `.env` file as needed.

### Use Docker Compose

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"lint": "npm run eslint && npm run markdownlint && npm run stylelint",
"markdownlint": "markdownlint-cli2 \"CONTRIBUTING.md\" \"README.md\" \"RELEASING.md\" \"src/**/*.md\"",
"postbuild": "npm run copy",
"postinstall": "cp -n .env.dist .env || true",
"precopy": "rm -rf dist && mkdir dist",
"prepublishOnly": "npm run build",
"start": "webpack --watch --mode=development",
Expand Down

0 comments on commit 7430955

Please sign in to comment.