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 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 includeExample = input.includeExample ?? true;
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 }) => includeExample || name !== "work-order").map(({ name }) => 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-windy",
3
- "version": "0.2.11",
3
+ "version": "0.2.13",
4
4
  "description": "创建单组织、单租户、私有部署优先的 Windy 企业 Dashboard Starter",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "templateCommit": "3be52627976c276e8dafafa6bfd2c23ab10fd908",
4
- "generatorVersion": "0.2.11",
3
+ "templateCommit": "51ba8808a74c2143803d3ec0584d2a35ba1c18e3",
4
+ "generatorVersion": "0.2.13",
5
5
  "modules": [
6
6
  {
7
7
  "name": "system",