-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CORE-624] Notify users when clicking enterprise subscription links (#…
…677) * Notify users when clicking enterprise subscription links * Remove debug logs * Add netlify.toml file * Make ts-commons optional dependency * Optionally use ts-commons * Update ts-commons dynamic import * Remove netflify.toml file * Update ts-commons util documentation
- Loading branch information
Showing
8 changed files
with
157 additions
and
64 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 |
---|---|---|
|
@@ -81,3 +81,6 @@ build/ | |
# IntelliJ files | ||
.idea | ||
*.iml | ||
|
||
# VS Code files | ||
.vscode |
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 |
---|---|---|
|
@@ -53,7 +53,8 @@ | |
"yargs": "^17.4.0" | ||
}, | ||
"optionalDependencies": { | ||
"docs-sourcer": "git+ssh://[email protected]/gruntwork-io/docs-sourcer.git#v0.2" | ||
"docs-sourcer": "git+ssh://[email protected]/gruntwork-io/docs-sourcer.git#v0.2", | ||
"ts-commons": "gruntwork-io/ts-commons#v1.0.0" | ||
}, | ||
"browserslist": { | ||
"production": [ | ||
|
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 @@ | ||
declare module "*.module.css" |
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 @@ | ||
export * from "./ts-commons" |
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,31 @@ | ||
/** | ||
* Get repos from ts-commons package if available. Otherwise return empty arrays. | ||
* | ||
* ts-commons package is a private package so some users may not have access to | ||
* it. Use this function to safely pull in an optional package to avoid both | ||
* build-time and runtime errors. | ||
* | ||
* @return {*} {{ | ||
* awsCISRepos: string[] | ||
* enterpriseRepos: string[] | ||
* }} | ||
*/ | ||
export const getRepos = (): { | ||
awsCISRepos: string[] | ||
enterpriseRepos: string[] | ||
} => { | ||
try { | ||
const { awsCISRepos, enterpriseRepos } = require("ts-commons/lib/repo-sets") | ||
return { | ||
awsCISRepos, | ||
enterpriseRepos, | ||
} | ||
} catch (e) { | ||
console.log("ts-commons package is NOT available...stubbing out repos.") | ||
|
||
return { | ||
awsCISRepos: [], | ||
enterpriseRepos: [], | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -11185,6 +11185,10 @@ trough@^1.0.0: | |
resolved "https://registry.yarnpkg.com/trough/-/trough-1.0.5.tgz#b8b639cefad7d0bb2abd37d433ff8293efa5f406" | ||
integrity sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA== | ||
|
||
ts-commons@gruntwork-io/ts-commons#v1.0.0: | ||
version "1.0.0" | ||
resolved "git+ssh://[email protected]/gruntwork-io/ts-commons.git#1a56fec327ea602b4472663599c63ec6118b7f01" | ||
|
||
ts-essentials@^2.0.3: | ||
version "2.0.12" | ||
resolved "https://registry.yarnpkg.com/ts-essentials/-/ts-essentials-2.0.12.tgz#c9303f3d74f75fa7528c3d49b80e089ab09d8745" | ||
|