Skip to content

Commit

Permalink
Merge pull request #15 from razroo/refactor-power-up-variable-values
Browse files Browse the repository at this point in the history
refactor so uses type for power up variable instead of system true. A…
  • Loading branch information
CharlieGreenman authored Mar 10, 2023
2 parents 3d9e736 + 074e372 commit f6b348c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export interface PowerUpVariables {
description?: string;
codeExample?: string;
stubValue?: string;
system?: boolean;
type?: 'system' | undefined;
variableDependency: string
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,39 +66,39 @@ export const powerUpVariablesFlatData: PowerUpVariables[] = [
name: 'existingFileName',
description: 'Template variable to be used for code snippets. Will use existing file name for name.',
defaultValue: 'existingFileName',
system: true,
type: 'system',
stubValue: 'existingFileName',
variableDependency: 'existingFileName'
},
{
name: 'existingFileClassName',
description: 'Hyphenated to UpperCamelCase',
defaultValue: 'existingFileName',
system: true,
type: 'system',
stubValue: 'existingFileClassName',
variableDependency: 'existingFileName'
},
{
name: 'existingFilePropertyName',
description: 'Hyphenated to lowerCamelCase',
defaultValue: 'existingFilePropertyName',
system: true,
type: 'system',
stubValue: 'existingFilePropertyName',
variableDependency: 'existingFileName'
},
{
name: 'existingFileConstantName',
description: 'Hyphenated to CONSTANT_CASE',
defaultValue: 'existingFileConstantName',
system: true,
type: 'system',
stubValue: 'existingFileConstantName',
variableDependency: 'existingFileName'
},
{
name: 'existingFileTitleName',
description: 'camelCase to Title Case',
defaultValue: 'existingFileTitleName',
system: true,
type: 'system',
stubValue: 'existingFileTitleName',
variableDependency: 'existingFileName'
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const powerUpVariables: PowerUpVariables[] = [
description: 'Template variable to be used for code snippets. Will use existing file name for name.',
defaultValue: 'existingFileName',
variableDependency: 'existingFileName',
system: true,
type: 'system',
variablesToImplement: [
{
name: 'existingFileClassName',
Expand Down

0 comments on commit f6b348c

Please sign in to comment.