Skip to content

Commit

Permalink
feat(angular): add unsecure mode option (#69)
Browse files Browse the repository at this point in the history
* feat(angular): add unsecure mode option
* release: @dotenv-run 1.3.2, @ngx-env/builder v17.0.7
  • Loading branch information
chihab authored Jan 10, 2024
1 parent 6018268 commit 5ef80b9
Show file tree
Hide file tree
Showing 23 changed files with 97 additions and 39 deletions.
6 changes: 6 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @dotenv-run/docs

## 0.1.2

### Patch Changes

- feat(angular): add unsecure mode option

## 0.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@dotenv-run/docs",
"private": true,
"type": "module",
"version": "0.1.1",
"version": "0.1.2",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
Expand Down
3 changes: 2 additions & 1 deletion examples/apps/ng-app-cli/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
],
"tsConfig": "tsconfig.app.json",
"ngxEnv": {
"prefix": "NGX_"
"prefix": "NGX_",
"unsecure": true
},
"assets": [
"src/favicon.ico",
Expand Down
2 changes: 1 addition & 1 deletion examples/apps/ng-app-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"scripts": {
"ng": "ng",
"watch": "ng build --watch --configuration development",
"start": "NODE_ENV=development ng serve",
"start": "ng serve",
"prebuild": "npx ng config projects.ng-app-cli.architect.build.options.ngxEnv.prefix 'NGX_'",
"build": "NODE_ENV=production ng build",
"pretest": "npx ng config projects.ng-app-cli.architect.test.options.ngxEnv.prefix 'NGX_'",
Expand Down
2 changes: 1 addition & 1 deletion examples/apps/ng-app-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@angular/compiler-cli": "^16.0.0",
"@types/node": "^16.0.0",
"cross-env": "^7.0.3",
"@dotenv-run/webpack": "^1.3.1",
"@dotenv-run/webpack": "^1.3.2",
"typescript": "~4.9.3"
}
}
8 changes: 4 additions & 4 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"e2e:all": "nx run-many --target=e2e --all --parallel"
},
"devDependencies": {
"@dotenv-run/cli": "^1.3.2",
"@dotenv-run/load": "^1.3.1",
"@dotenv-run/webpack": "^1.3.1",
"@dotenv-run/rollup": "^1.3.1",
"@dotenv-run/cli": "^1.3.3",
"@dotenv-run/load": "^1.3.2",
"@dotenv-run/webpack": "^1.3.2",
"@dotenv-run/rollup": "^1.3.2",
"webpack": "^5.0.0",
"serve": "^14.2.1",
"@playwright/test": "^1.37.1",
Expand Down
8 changes: 4 additions & 4 deletions packages/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngx-env/builder",
"version": "17.0.6",
"version": "17.0.7",
"description": "Easily inject environment variables into your Angular applications",
"author": "chihab <[email protected]>",
"homepage": "https://github.com/chihab/ngx-env/tree/main/packages/angular",
Expand Down Expand Up @@ -29,8 +29,8 @@
"copy-dist": "ts-node tools/schema-dist.ts"
},
"dependencies": {
"@dotenv-run/esbuild": "^1.3.0",
"@dotenv-run/webpack": "^1.3.0",
"@dotenv-run/esbuild": "^1.3.2",
"@dotenv-run/webpack": "^1.3.2",
"glob": "^10.3.10"
},
"devDependencies": {
Expand All @@ -40,7 +40,7 @@
"@angular-devkit/architect": "^0.1700.8",
"@angular-devkit/core": "^17.0.0",
"@angular/compiler": "^17.0.2",
"@dotenv-run/core": "^1.3.0",
"@dotenv-run/core": "^1.3.2",
"cpy": "^8.1.2",
"karma": "^6.4.2",
"ts-node": "^10.8.0",
Expand Down
7 changes: 6 additions & 1 deletion packages/angular/src/builders/ngx-env/ngx-env.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@
"description": "Root directory of the project to find .env files",
"default": "."
},
"unsecure": {
"type": "boolean",
"description": "Display environment variables values in the console",
"default": false
},
"verbose": {
"type": "boolean",
"description": "Verbose mode, print .env files and variables",
"description": "Display environment files and variables in the console",
"default": true
}
},
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @dotenv-run/cli

## 1.3.3

### Patch Changes

- feat(angular): add unsecure mode option
- Updated dependencies
- @dotenv-run/[email protected]

## 1.3.2

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dotenv-run/cli",
"version": "1.3.2",
"version": "1.3.3",
"description": "cli to load environment variables with monorepo support",
"homepage": "https://github.com/chihab/dotenv-run",
"type": "module",
Expand All @@ -25,7 +25,7 @@
"author": "Chihab Otmani <[email protected]>",
"license": "ISC",
"dependencies": {
"@dotenv-run/core": "^1.3.1",
"@dotenv-run/core": "^1.3.2",
"chalk": "^4.1.0",
"cross-spawn": "^7.0.3",
"minimist": "^1.2.8"
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function help() {
Usage: dotenv-run [options] -- <command>

Options:
-d, --debug [regexp] print debug information, filter environment variables by regexp (default: .*)
-d, --debug [regexp] print debug information, display environment variables filtered by regexp if provided
-e, --env [environment] environment to load (default: NODE_ENV)
-f, --file [.env,.secrets,.env.api] specific .env files to load (default: .env, incompatible with root and prefix options)
-r, --root root directory to search for .env files, defaults to current working directory
Expand Down
6 changes: 6 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @dotenv-run/core

## 1.3.2

### Patch Changes

- feat(angular): add unsecure mode option

## 1.3.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dotenv-run/core",
"version": "1.3.1",
"version": "1.3.2",
"description": "core library to load environment variables with monorepo support",
"homepage": "https://github.com/chihab/dotenv-run",
"main": "dist/cjs/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function print(options: DotenvRunOptions, envPaths: string[], values: Env) {
console.log(`${chalk.green("-")} Working directory: `, options.cwd);
}
if (options.files) {
console.log(`${chalk.green("-")} Files :`, options.files.join(", "));
console.log(`${chalk.green("-")} Files:`, options.files.join(", "));
}
if (envPaths.length === 0) {
console.log(
Expand Down
8 changes: 8 additions & 0 deletions packages/esbuild/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @dotenv-run/esbuild

## 1.3.2

### Patch Changes

- feat(angular): add unsecure mode option
- Updated dependencies
- @dotenv-run/[email protected]

## 1.3.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/esbuild/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dotenv-run/esbuild",
"version": "1.3.1",
"version": "1.3.2",
"description": "Run your scripts with dotenv variables",
"homepage": "https://github.com/chihab/dotenv-run",
"main": "dist/cjs/index.js",
Expand All @@ -26,7 +26,7 @@
"author": "Chihab Otmani <[email protected]>",
"license": "ISC",
"dependencies": {
"@dotenv-run/core": "^1.3.1"
"@dotenv-run/core": "^1.3.2"
},
"peerDependencies": {
"esbuild": "0.19.5"
Expand Down
8 changes: 8 additions & 0 deletions packages/load/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @dotenv-run/load

## 1.3.2

### Patch Changes

- feat(angular): add unsecure mode option
- Updated dependencies
- @dotenv-run/[email protected]

## 1.3.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/load/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dotenv-run/load",
"version": "1.3.1",
"version": "1.3.2",
"description": "Perload your scripts with dotenv variables",
"homepage": "https://github.com/chihab/dotenv-run",
"main": "dist/index.js",
Expand All @@ -22,7 +22,7 @@
"author": "Chihab Otmani <[email protected]>",
"license": "ISC",
"dependencies": {
"@dotenv-run/core": "^1.3.1"
"@dotenv-run/core": "^1.3.2"
},
"devDependencies": {
"@types/node": "^16.0.0"
Expand Down
8 changes: 8 additions & 0 deletions packages/rollup/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @dotenv-run/rollup

## 1.3.2

### Patch Changes

- feat(angular): add unsecure mode option
- Updated dependencies
- @dotenv-run/[email protected]

## 1.3.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/rollup/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dotenv-run/rollup",
"version": "1.3.1",
"version": "1.3.2",
"description": "Run your scripts with dotenv variables",
"homepage": "https://github.com/chihab/dotenv-run",
"main": "dist/index.js",
Expand All @@ -22,7 +22,7 @@
"author": "Chihab Otmani <[email protected]>",
"license": "ISC",
"dependencies": {
"@dotenv-run/core": "^1.3.1",
"@dotenv-run/core": "^1.3.2",
"@rollup/plugin-replace": "^5.0.2"
},
"peerDependencies": {
Expand Down
8 changes: 8 additions & 0 deletions packages/webpack/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @dotenv-run/webpack

## 1.3.2

### Patch Changes

- feat(angular): add unsecure mode option
- Updated dependencies
- @dotenv-run/[email protected]

## 1.3.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/webpack/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dotenv-run/webpack",
"version": "1.3.1",
"version": "1.3.2",
"description": "Run your scripts with dotenv variables",
"homepage": "https://github.com/chihab/dotenv-run",
"main": "dist/cjs/index.js",
Expand All @@ -25,7 +25,7 @@
"author": "Chihab Otmani <[email protected]>",
"license": "ISC",
"dependencies": {
"@dotenv-run/core": "^1.3.1"
"@dotenv-run/core": "^1.3.2"
},
"peerDependencies": {
"webpack": "^5.0.0"
Expand Down
26 changes: 13 additions & 13 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5ef80b9

Please sign in to comment.