Skip to content

Commit

Permalink
chore: remove .env files from VCS adding samples
Browse files Browse the repository at this point in the history
  • Loading branch information
brionmario committed Mar 24, 2023
1 parent 161ebee commit 2ca04c9
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 16 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ Thumbs.db

# Deployment Artifacts
.vercel

# env files
.env*
!.env.example
1 change: 0 additions & 1 deletion docs/website/.env

This file was deleted.

8 changes: 8 additions & 0 deletions docs/website/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# The port number that the server will listen to.
PORT=3000

# The build mode to use during the build process.
# Possible values: "static", "server"
# - "static": build the app in static mode, which generates static HTML files.
# - "server": build the app in server mode, which runs the app on a Node.js server.
BUILD_MODE='server'
5 changes: 3 additions & 2 deletions docs/website/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local
# env files
.env*
!.env.example

# vercel
.vercel
Expand Down
10 changes: 10 additions & 0 deletions examples/multi-brand-identity/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# The port number that the server will listen to.
PORT=3001

# This is needed for the build to pass. Else [eslint] Plugin "@typescript-eslint"
# will conflict with @wso2/eslint-plugin and break the build.
DISABLE_ESLINT_PLUGIN=true

# The subpath of the application as hosted on the web server.
# By default, it's configured to serve the app from the root of a domain.
PUBLIC_URL=/
4 changes: 0 additions & 4 deletions examples/multi-brand-identity/.env.local

This file was deleted.

7 changes: 4 additions & 3 deletions examples/multi-brand-identity/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@
# production
/build

# env files
.env*
!.env.example

# misc
.DS_Store
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
Expand Down
7 changes: 7 additions & 0 deletions packages/react/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# The subpath of the storybook static deployment.
# By default, it's configured to serve the app from the root of a domain.
STORYBOOK_BASE_URL=''

# The Figma PAT for the Storybook Design Plugin's Figspec integration.
# https://storybook.js.org/addons/storybook-addon-designs
STORYBOOK_FIGMA_ACCESS_TOKEN="<YOUR_FIGMA_ACCESS_TOKEN>"
9 changes: 3 additions & 6 deletions packages/react/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,9 @@ web_modules/
# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
# env files
.env*
!.env.example

# parcel-bundler cache (https://parceljs.org/)
.cache
Expand Down

0 comments on commit 2ca04c9

Please sign in to comment.