-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
1,886 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
.DS_Store | ||
node_modules | ||
dist | ||
tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# path to a directory with all packages | ||
storage: ../tmp/local-registry/storage | ||
|
||
# a list of other known repositories we can talk to | ||
uplinks: | ||
npmjs: | ||
url: https://registry.npmjs.org/ | ||
maxage: 60m | ||
|
||
packages: | ||
"**": | ||
# give all users (including non-authenticated users) full access | ||
# because it is a local registry | ||
access: $all | ||
publish: $all | ||
unpublish: $all | ||
|
||
# if package is not available locally, proxy requests to npm registry | ||
proxy: npmjs | ||
|
||
# log settings | ||
logs: | ||
type: stdout | ||
format: pretty | ||
level: warn | ||
|
||
publish: | ||
allow_offline: true # set offline to true to allow publish offline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { ApplicationConfig, importProvidersFrom } from '@angular/core'; | ||
import { ApplicationConfig } from '@angular/core'; | ||
import { provideRouter } from '@angular/router'; | ||
|
||
import { routes } from './app.routes'; | ||
import { provideClientHydration } from '@angular/platform-browser'; | ||
import { routes } from './app.routes'; | ||
|
||
export const appConfig: ApplicationConfig = { | ||
providers: [provideRouter(routes), provideClientHydration()] | ||
providers: [provideRouter(routes), provideClientHydration()], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,13 @@ | ||
interface ImportMeta { | ||
readonly env: ImportMetaEnv; | ||
} | ||
|
||
interface ImportMetaEnv { | ||
/** | ||
* Built-in environment variable. | ||
* @see Docs https://github.com/chihab/dotenv-run/packages/angular#node_env. | ||
*/ | ||
// Define the type of the environment variables. | ||
declare interface Env { | ||
readonly NODE_ENV: string; | ||
// Add your environment variables below | ||
// readonly NG_APP_API_URL: string; | ||
// Replace the following with your own environment variables. | ||
// Example: NGX_VERSION: string; | ||
NGX_BRANCH: string; | ||
NGX_VERSION: string; | ||
[key: string]: any; | ||
} | ||
|
||
/* | ||
* Remove all the deprecated code below if you're using import.meta.env (recommended) | ||
*/ | ||
|
||
/****************************** DEPREACTED **************************/ | ||
/** | ||
* @deprecated process.env usage | ||
* prefer using import.meta.env | ||
* */ | ||
// declare var process: { | ||
// env: { | ||
// NODE_ENV: string; | ||
// [key: string]: any; | ||
// }; | ||
// }; | ||
|
||
// If your project references @types/node directly (in you) or indirectly (as in RxJS < 7.6.0), | ||
// you might need to use the following declaration merging. | ||
// declare namespace NodeJS { | ||
// export interface ProcessEnv { | ||
// readonly NODE_ENV: string; | ||
// // Add your environment variables below | ||
// } | ||
// } | ||
|
||
// If you're using Angular Universal and process.env notation, you'll need to add the following to your tsconfig.server.json: | ||
/* In your tsconfig.server.json */ | ||
// { | ||
// "extends": "./tsconfig.app.json", | ||
// ... | ||
// "exclude": [ | ||
// "src/env.d.ts" | ||
// ] | ||
// } | ||
|
||
/*********************************************************************/ | ||
declare interface ImportMeta { | ||
readonly env: Env; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "platform", | ||
"$schema": "node_modules/nx/schemas/project-schema.json", | ||
"targets": { | ||
"local-registry": { | ||
"executor": "@nx/js:verdaccio", | ||
"options": { | ||
"port": 4873, | ||
"config": ".verdaccio/config.yml", | ||
"storage": "tmp/local-registry/storage" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@ngx-env/builder", | ||
"version": "17.2.3", | ||
"version": "17.3.0-alpha.0", | ||
"description": "Easily inject environment variables into your Angular applications", | ||
"author": "chihab <[email protected]>", | ||
"homepage": "https://github.com/chihab/ngx-env/tree/main/packages/angular", | ||
|
@@ -16,7 +16,8 @@ | |
"dist", | ||
"builders.json", | ||
"collection.json", | ||
"README.md" | ||
"README.md", | ||
"runtime.mjs" | ||
], | ||
"builders": "builders.json", | ||
"schematics": "./collection.json", | ||
|
@@ -29,7 +30,7 @@ | |
"copy-dist": "ts-node tools/schema-dist.ts" | ||
}, | ||
"dependencies": { | ||
"@dotenv-run/esbuild": "^1.3.4", | ||
"@dotenv-run/esbuild": "^1.3.5", | ||
"@dotenv-run/webpack": "^1.3.4", | ||
"glob": "^10.3.10" | ||
}, | ||
|
Oops, something went wrong.