Skip to content
Open
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
37c7cdc
Add TypeScript checking via JSDoc type annotations
GrantASL19 Jul 11, 2025
affda93
Remove "js/ts.implicitProjectConfig.checkJs" setting (unnecessary)
GrantASL19 Jul 16, 2025
f42f2fb
Exclude output directory from type checking
GrantASL19 Jul 16, 2025
b56eac0
Improve file organization and documentation:
GrantASL19 Jul 16, 2025
ec43d3b
Use inputConfig.appId as resolvedConfig.appId if provided (only infer…
GrantASL19 Jul 16, 2025
8f15d90
Merge branch 'main' into feature/add-typescript-checking
GrantASL19 Jul 16, 2025
61e63e4
Rename .scripts directories to scripts
GrantASL19 Jul 16, 2025
cc58ab9
In validateAndNormalizeConfig pass through entryUrl (used in capacito…
GrantASL19 Jul 16, 2025
75355ef
Build into provided output, falling back to `output/${new URL(inputCo…
GrantASL19 Jul 16, 2025
d88047e
Fix type error
GrantASL19 Jul 16, 2025
4894831
In tsconfig.json remove hidden directories from include (renamed .scr…
GrantASL19 Jul 16, 2025
f740949
Separate public (Config/ValidConfig) and internal config (InternalCon…
GrantASL19 Jul 16, 2025
808ca62
Rename InternalConfig["smartDialerConfig"] to InternalConfig["smartDi…
GrantASL19 Jul 16, 2025
56d65e5
Add VS Code configs to auto-format with final newlines and remove tra…
GrantASL19 Jul 17, 2025
9e1bdd0
Rename types and variables: Config → RawBuildConfig, ValidConfig → Va…
GrantASL19 Jul 18, 2025
e13a8fc
Refactor validateRawBuildConfig into isValidRawBuildConfig type guard
GrantASL19 Jul 18, 2025
a210e9b
Improve type descriptions
GrantASL19 Jul 18, 2025
42f83cd
Rename .vscode/settings.json to .vscode.suggestion/settings.json; add…
GrantASL19 Jul 18, 2025
a0ba7ce
Validate that rawBuildConfig.entryUrl is a valid URL; add fallback "a…
GrantASL19 Jul 18, 2025
32519eb
Add https://github.com/google/gts (tsconfig.json, .eslintrc.json, and…
GrantASL19 Jul 23, 2025
f15f821
In resolveBuildConfig replace nested ternary with if...else statements
GrantASL19 Jul 24, 2025
a2059f0
Inline DEFAULT_CONFIG into rawBuildConfig
GrantASL19 Jul 24, 2025
7fa63ea
Rename getYAMLBuildConfig → yamlBuildConfigToObject
GrantASL19 Jul 24, 2025
ec8e4f1
Moved all configuration logic into createConfig.mjs, which validate a…
GrantASL19 Jul 25, 2025
0265c46
Replace SmartDialerConfig type with object
GrantASL19 Jul 30, 2025
303a6e0
Add copyright headers
GrantASL19 Jul 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions wrapper_app_project/.scripts/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,17 @@ export function validateAndNormalizeConfig(inputConfig) {
resolvedConfig.output = new URL(inputConfig.entryUrl).hostname;
resolvedConfig.platform = inputConfig.platform;

if (!inputConfig.appId) {

resolvedConfig.appId = typeof inputConfig.appId === "string"
? inputConfig.appId
// Infer an app ID from the entry domain by reversing it (e.g. `www.example.com` becomes `com.example.www`)
// It must be lower case, and hyphens are not allowed.
resolvedConfig.appId = resolvedConfig.entryDomain
: resolvedConfig.entryDomain
.replaceAll('-', '')
.toLocaleLowerCase()
.split('.')
.reverse()
.join('.')
}

if (!inputConfig.appName) {
// Infer an app name from the base entry domain part by title casing the root domain:
Expand Down