Skip to content

Commit d2bf280

Browse files
committed
refactor: wip
1 parent 80acdc5 commit d2bf280

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

.env.example

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1-
# for uploading to portal
1+
# Example environment variables
2+
# These are for reference only - use .env.local for local development
3+
4+
# For uploading to Code PushUp portal
25
CP_API_KEY=
6+
7+
# Note: For local development with tsx/TypeScript execution,
8+
# copy .env.local.example to .env.local and configure NODE_OPTIONS there

.env.local

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Local development environment variables
2+
# Copy this to .env.local (gitignored) and customize for your setup
3+
4+
# Enable tsx for TypeScript execution in Nx
5+
# This allows running local generator/executor directly as .ts files without pre-compilation
6+
# This allowes the local plugins to import files with .js extensions (same as the packages in the repository)
7+
NODE_OPTIONS=--import tsx
8+
# This is used to resolve the paths in the local generator/executor so local packages can be imported as path aliases
9+
TSX_TSCONFIG_PATH=tsconfig.base.json

.env.local.example

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Local development environment variables
2+
# Copy this to .env.local (gitignored) and customize for your setup
3+
4+
# Enable tsx for TypeScript execution in Nx
5+
# This allows running local generator/executor directly as .ts files without pre-compilation
6+
# This allowes the local plugins to import files with .js extensions (same as the packages in the repository)
7+
NODE_OPTIONS=--import tsx
8+
# This is used to resolve the paths in the local generator/executor so local packages can be imported as path aliases
9+
TSX_TSCONFIG_PATH=tsconfig.base.json
10+
11+
# Local API keys (optional - only if testing upload features)
12+
# CP_API_KEY=your_api_key_here

0 commit comments

Comments
 (0)