-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [RAV] Support .env file * update .env comments * update angular.json * fix linting issues * apply changes
- Loading branch information
1 parent
c982b99
commit 3dabcdd
Showing
44 changed files
with
303 additions
and
190 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Your Sitecore API key is needed to build the app. Typically, the API key is | ||
# defined in `scjssconfig.json` (as `sitecore.apiKey`). This file may not exist | ||
# when building locally (if you've never run `jss setup`), or when building in a | ||
# higher environment (since `scjssconfig.json` is ignored from source control). | ||
# In this case, use this environment variable to provide the value at build time. | ||
SITECORE_API_KEY= | ||
|
||
# Your Sitecore API hostname is needed to build the app. Typically, the API host is | ||
# defined in `scjssconfig.json` (as `sitecore.layoutServiceHost`). This file may | ||
# not exist when building locally (if you've never run `jss setup`), or when building | ||
# in a higher environment (since `scjssconfig.json` is ignored from source control). | ||
# In this case, use this environment variable to provide the value at build time. | ||
SITECORE_API_HOST= | ||
|
||
# Your GraphQL Edge endpoint. This is required for Sitecore Experience Edge. | ||
# For Sitecore XM, this is typically optional. By default, the endpoint is calculated using | ||
# the resolved Sitecore API hostname + the `graphQLEndpointPath` defined in your `package.json`. | ||
GRAPH_QL_ENDPOINT= | ||
|
||
# Your default app language. | ||
DEFAULT_LANGUAGE= | ||
|
||
# The way in which layout and dictionary data is fetched from Sitecore | ||
FETCH_WITH=<%- fetchWith %> | ||
|
||
# Sitecore JSS npm packages utilize the debug module for debug logging. | ||
# https://www.npmjs.com/package/debug | ||
# Set the DEBUG environment variable to 'sitecore-jss:*' to see all logs: | ||
#DEBUG=sitecore-jss:* | ||
# Or be selective and show for example only layout service logs: | ||
#DEBUG=sitecore-jss:layout | ||
# Or everything BUT layout service logs: | ||
#DEBUG=sitecore-jss:*,-sitecore-jss:layout |
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
1 change: 1 addition & 0 deletions
1
packages/create-sitecore-jss/src/templates/angular/scripts/bootstrap.ts
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
2 changes: 1 addition & 1 deletion
2
packages/create-sitecore-jss/src/templates/angular/src/app/jss-data-fetcher.service.ts
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
48 changes: 22 additions & 26 deletions
48
packages/create-sitecore-jss/src/templates/angular/src/app/lib/dictionary-service-factory.ts
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
36 changes: 16 additions & 20 deletions
36
packages/create-sitecore-jss/src/templates/angular/src/app/lib/layout-service-factory.ts
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
7 changes: 7 additions & 0 deletions
7
packages/create-sitecore-jss/src/templates/angular/webpack.config.js
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,7 @@ | ||
const Dotenv = require("dotenv-webpack"); | ||
|
||
module.exports = { | ||
plugins: [ | ||
new Dotenv(), | ||
], | ||
} |
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
1 change: 1 addition & 0 deletions
1
packages/create-sitecore-jss/src/templates/nextjs/scripts/bootstrap.ts
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
Oops, something went wrong.