Skip to content

Commit

Permalink
fix: copy for image, not template
Browse files Browse the repository at this point in the history
  • Loading branch information
kirinnee committed Jan 10, 2025
1 parent c0d5dd4 commit e176ca5
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions cyan/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ import { Cyan, GlobType, IDeterminism, IInquirer, StartTemplateWithLambda } from
StartTemplateWithLambda(async (i: IInquirer, d: IDeterminism): Promise<Cyan> => {
const name = await i.text('Name', "Nuget Package's Name. Please use Pascal Case");

const platform = await i.text('Platform', "AtomiCloud LPSM Service Tree's Platform");
const service = await i.text('Service', "AtomiCloud LPSM Service Tree's Service");
const p = await i.text('Platform', "AtomiCloud LPSM Service Tree's Platform");
const s = await i.text('Service', "AtomiCloud LPSM Service Tree's Service");

const platform = p.toLowerCase();
const service = s.toLowerCase();

const capitalize = (s: string) => s.charAt(0).toUpperCase() + s.slice(1);
const namespace = capitalize(platform) + capitalize(service);
Expand All @@ -20,6 +23,12 @@ StartTemplateWithLambda(async (i: IInquirer, d: IDeterminism): Promise<Cyan> =>
glob: '**/*',
root: 'template',
type: GlobType.Template,
exclude: ['**/logo.png'],
},
{
glob: '**/logo.png',
root: 'template/',
type: GlobType.Copy,
exclude: [],
},
],
Expand Down

0 comments on commit e176ca5

Please sign in to comment.