Skip to content

Commit

Permalink
Merge branch 'compile' of https://github.com/utnim2/generator into co…
Browse files Browse the repository at this point in the history
…mpile
  • Loading branch information
Gmin2 committed Aug 26, 2024
2 parents cfda26f + 6e5cc87 commit 7123a04
Show file tree
Hide file tree
Showing 4 changed files with 1,680 additions and 3,086 deletions.
1 change: 0 additions & 1 deletion apps/generator/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ function generate(targetDir) {
forceWrite: program.forceWrite,
install: program.install,
debug: program.debug,
compile: program.compile,
mapBaseUrlToFolder
});

Expand Down
4 changes: 2 additions & 2 deletions apps/generator/test/test-project/test-project.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('Testing if markdown was generated with proper version of the template'
it('Test B - generated markdown should contain new content because of explicit fresh installation of different template version (install: true)', async () => {
const templateVersion = '0.0.2';

const generator = new Generator(`${templateName}@${templateVersion}`, tempOutputResults, { forceWrite: true, install: true, debug: true, templateParams: { version: 'v1', mode: 'production' } });
const generator = new Generator(`${templateName}@${templateVersion}`, tempOutputResults, { compile: true, forceWrite: true, install: true, debug: true, templateParams: { version: 'v1', mode: 'production' } });
await generator.generateFromFile(dummySpecPath);

const file = await readFile(path.join(tempOutputResults, fileToCheck), 'utf8');
Expand Down Expand Up @@ -95,4 +95,4 @@ describe('Testing if markdown was generated with proper version of the template'
expect(console.log).toHaveBeenCalledWith(logMessage.templateVersion(version));
expect(console.log).toHaveBeenCalledWith(logMessage.NPM_INSTALL_TRIGGER);
});
});
});
2 changes: 2 additions & 0 deletions apps/generator/test/test-project/test-registry.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ describe('Integration testing generateFromFile() to make sure the template can b
it('generated using private registory', async () => {
const generator = new Generator('react-template', tempOutputResults,
{
compile: true,
debug: true,
install: true,
forceWrite: true,
Expand All @@ -41,6 +42,7 @@ describe('Integration testing generateFromFile() to make sure the template can b
it('generated using private registory from npm config', async () => {
const generator = new Generator('react-template', tempOutputResults,
{
compile: true,
debug: true,
install: true,
forceWrite: true,
Expand Down
Loading

0 comments on commit 7123a04

Please sign in to comment.