create-windy 0.2.11 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +8 -3
- package/package.json +1 -1
- package/template/.windy-template.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -411,6 +411,7 @@ var platformModules = [
|
|
|
411
411
|
"apps/server/src/settings",
|
|
412
412
|
"apps/web/src/pages/settings",
|
|
413
413
|
"apps/web/src/layout/GlobalWatermark.vue",
|
|
414
|
+
"apps/web/src/layout/GlobalWatermark.webtest.ts",
|
|
414
415
|
"apps/web/src/services/platform-settings-api.ts",
|
|
415
416
|
"apps/web/src/composables/useWatermarkSettings.ts",
|
|
416
417
|
"apps/web/src/composables/watermark-settings.ts",
|
|
@@ -1848,11 +1849,12 @@ async function generateProject(input) {
|
|
|
1848
1849
|
validateProjectName(input.projectName);
|
|
1849
1850
|
await assertTargetAvailable(input.targetDirectory);
|
|
1850
1851
|
await mkdir3(input.targetDirectory, { recursive: true });
|
|
1851
|
-
const
|
|
1852
|
+
const requestedIncludeExample = input.includeExample ?? true;
|
|
1852
1853
|
const includeOxc = input.includeOxc ?? true;
|
|
1853
1854
|
const projectLicense = input.projectLicense ?? "UNLICENSED";
|
|
1854
1855
|
const templateMetadata = await readTemplateMetadata(input.sourceRoot);
|
|
1855
|
-
const selectedModules = input.selectedModules ?? templateMetadata.modules.filter(({ name }) =>
|
|
1856
|
+
const selectedModules = input.selectedModules ?? templateMetadata.modules.filter(({ name }) => requestedIncludeExample || name !== "work-order").map(({ name }) => name);
|
|
1857
|
+
const includeExample = selectedModules.includes("work-order");
|
|
1856
1858
|
for (const relativePath2 of generationTemplatePaths(true, includeOxc)) {
|
|
1857
1859
|
await copyTree(await resolveTemplateSource(input.sourceRoot, relativePath2), join9(input.targetDirectory, relativePath2));
|
|
1858
1860
|
}
|
|
@@ -4007,7 +4009,9 @@ var recipes = [
|
|
|
4007
4009
|
{ id: "starter-0.2.7-to-0.2.8", from: "0.2.7", to: "0.2.8" },
|
|
4008
4010
|
{ id: "starter-0.2.8-to-0.2.9", from: "0.2.8", to: "0.2.9" },
|
|
4009
4011
|
{ id: "starter-0.2.9-to-0.2.10", from: "0.2.9", to: "0.2.10" },
|
|
4010
|
-
{ id: "starter-0.2.10-to-0.2.11", from: "0.2.10", to: "0.2.11" }
|
|
4012
|
+
{ id: "starter-0.2.10-to-0.2.11", from: "0.2.10", to: "0.2.11" },
|
|
4013
|
+
{ id: "starter-0.2.11-to-0.2.12", from: "0.2.11", to: "0.2.12" },
|
|
4014
|
+
{ id: "starter-0.2.12-to-0.2.13", from: "0.2.12", to: "0.2.13" }
|
|
4011
4015
|
];
|
|
4012
4016
|
function resolveRecipeChain(sourceVersion, targetVersion) {
|
|
4013
4017
|
if (sourceVersion === targetVersion)
|
|
@@ -4051,6 +4055,7 @@ class PublishedArtifactProvider {
|
|
|
4051
4055
|
targetDirectory,
|
|
4052
4056
|
projectName,
|
|
4053
4057
|
selectedModules: provenance.modules.map(({ name }) => name),
|
|
4058
|
+
includeExample: provenance.choices.includeExample,
|
|
4054
4059
|
includeOxc: provenance.choices.includeOxc,
|
|
4055
4060
|
projectLicense: provenance.legalLicense,
|
|
4056
4061
|
licenseHolder: provenance.legalLicense === "MIT" ? "Windy project owner" : undefined,
|
package/package.json
CHANGED