-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make serialization work with more difficult objects
- Loading branch information
Showing
6 changed files
with
143 additions
and
54 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
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
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 |
---|---|---|
|
@@ -107,6 +107,7 @@ const targets: Record<string, Target> = { | |
} | ||
}, */ | ||
svelte: { | ||
only: true, | ||
// repo: 'sveltejs/svelte', | ||
repo: '[email protected]:sveltejs/svelte.git', | ||
sourcePaths: ['packages/svelte/src'], | ||
|
@@ -125,7 +126,10 @@ const targets: Record<string, Target> = { | |
projectId: 'test-project', | ||
transformOptions: {}, | ||
// disable logging | ||
logging: [] | ||
logging: [], | ||
generateBuildId() { | ||
return '00000000-0000-0000-0000-000000000000' | ||
} | ||
} | ||
}, | ||
prettier: { | ||
|
@@ -155,7 +159,6 @@ const targets: Record<string, Target> = { | |
} | ||
}, | ||
vue: { | ||
only: true, | ||
// repo: 'vuejs/core', | ||
repo: '[email protected]:vuejs/core.git', | ||
sourcePaths: ['packages'], | ||
|
@@ -192,7 +195,10 @@ const targets: Record<string, Target> = { | |
projectId: 'test-project', | ||
transformOptions: {}, | ||
// disable logging | ||
logging: [] | ||
logging: [], | ||
generateBuildId() { | ||
return '00000000-0000-0000-0000-000000000000' | ||
} | ||
} | ||
} | ||
// @todo: | ||
|
@@ -212,6 +218,8 @@ const targets: Record<string, Target> = { | |
} | ||
|
||
async function transformRepositoryUsingFlytrap(targetName: string, target: Target) { | ||
// @ts-expect-error: simulate build start | ||
await unpluginOptions.buildStart() | ||
for await (const filePath of walk(join(reposPath, targetName))) { | ||
const copyToGeneratedFolder = (filePath: string, code: string) => { | ||
writeFileSync(join(generatedPath, getRelativePath(filePath)), code) | ||
|