-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(theme): add environment schema definition
- Loading branch information
1 parent
e358c3b
commit 8bfc9dd
Showing
3 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
...ges/nx-shopify/src/generators/theme/files/src/environments/environment-schema.ts.template
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,3 @@ | ||
export interface EnvironmentSchema { | ||
production: boolean; | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/nx-shopify/src/generators/theme/files/src/environments/environment.prod.ts.template
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,3 +1,5 @@ | ||
export const environment = { | ||
import { EnvironmentSchema } from './environment-schema'; | ||
|
||
export const environment: EnvironmentSchema = { | ||
production: true, | ||
}; |
4 changes: 3 additions & 1 deletion
4
packages/nx-shopify/src/generators/theme/files/src/environments/environment.ts.template
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,3 +1,5 @@ | ||
export const environment = { | ||
import { EnvironmentSchema } from './environment-schema'; | ||
|
||
export const environment: EnvironmentSchema = { | ||
production: false, | ||
}; |