@theholocron/cli 2.0.0-alpha.29 → 2.0.0-alpha.31

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +56 -3
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -1617,13 +1617,12 @@ jobs:
1617
1617
  run: |
1618
1618
  GIT_NAME=$(gh api user --jq .name 2>/dev/null || echo "github-actions[bot]")
1619
1619
  GIT_EMAIL=$(gh api user --jq '"\\(.id)+\\(.login)@users.noreply.github.com"' 2>/dev/null || echo "41898282+github-actions[bot]@users.noreply.github.com")
1620
+ COMMIT_MSG="chore: sync from theholocron/holocron"$'\\n\\n'"Signed-off-by: $GIT_NAME <$GIT_EMAIL>"
1620
1621
  node packages/cli/dist/cli.mjs sync-github \\
1621
1622
  --repo "$PRIMARY_REPO" \\
1622
1623
  --branch "$SYNC_BRANCH" \\
1623
1624
  --pr \\
1624
- --message "chore: sync from theholocron/holocron
1625
-
1626
- Signed-off-by: $GIT_NAME <$GIT_EMAIL>"
1625
+ --message "$COMMIT_MSG"
1627
1626
  env:
1628
1627
  GITHUB_TOKEN: \${{ secrets.SYNC_TOKEN }}
1629
1628
  GH_TOKEN: \${{ secrets.SYNC_TOKEN }}
@@ -3582,6 +3581,52 @@ function vaultProviderName(loader) {
3582
3581
  }
3583
3582
  //#endregion
3584
3583
  //#region src/commands/setup.ts
3584
+ const EDITORCONFIG = `\
3585
+ root = true
3586
+
3587
+ [*]
3588
+ end_of_line = lf
3589
+ charset = utf-8
3590
+ trim_trailing_whitespace = true
3591
+ insert_final_newline = true
3592
+ indent_style = tab
3593
+ indent_size = 4
3594
+
3595
+ [.gitattributes]
3596
+ indent_style = space
3597
+ indent_size = 2
3598
+
3599
+ [*.{json,yml,yaml}]
3600
+ indent_style = space
3601
+ indent_size = 2
3602
+
3603
+ [*.md]
3604
+ trim_trailing_whitespace = false
3605
+
3606
+ [.*{rc,ignore}]
3607
+ indent_style = space
3608
+ indent_size = 2
3609
+ `;
3610
+ const EDITORCONFIG_CHECKER_CONFIG = JSON.stringify({
3611
+ Version: "v3.7.0",
3612
+ Verbose: false,
3613
+ Format: "",
3614
+ Debug: false,
3615
+ IgnoreDefaults: false,
3616
+ SpacesAfterTabs: false,
3617
+ NoColor: false,
3618
+ Exclude: ["(^|.+/)LICENSE$", "^public/.*"],
3619
+ AllowedContentTypes: [],
3620
+ PassedFiles: [],
3621
+ Disable: {
3622
+ EndOfLine: false,
3623
+ Indentation: false,
3624
+ InsertFinalNewline: false,
3625
+ TrimTrailingWhitespace: false,
3626
+ IndentSize: false,
3627
+ MaxLineLength: false
3628
+ }
3629
+ }, null, 2) + "\n";
3585
3630
  const ALEX_CONFIG = JSON.stringify({ allow: [
3586
3631
  "dead",
3587
3632
  "failure",
@@ -3862,6 +3907,14 @@ async function runSetup(input) {
3862
3907
  await source.writeRepoFile(".alexrc.json", ALEX_CONFIG);
3863
3908
  }));
3864
3909
  print(formatStep(steps[steps.length - 1]));
3910
+ steps.push(await runStep("source", "write .editorconfig", dryRun, async () => {
3911
+ await source.writeRepoFile(".editorconfig", EDITORCONFIG);
3912
+ }));
3913
+ print(formatStep(steps[steps.length - 1]));
3914
+ steps.push(await runStep("source", "write .editorconfig-checker.json", dryRun, async () => {
3915
+ await source.writeRepoFile(".editorconfig-checker.json", EDITORCONFIG_CHECKER_CONFIG);
3916
+ }));
3917
+ print(formatStep(steps[steps.length - 1]));
3865
3918
  }
3866
3919
  if (loader.has("environments")) {
3867
3920
  const envs = loader.get("environments");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "2.0.0-alpha.29",
3
+ "version": "2.0.0-alpha.31",
4
4
  "description": "The Holocron CLI — a pluggable, capability-based orchestrator for spinning up and operating software projects.",
5
5
  "homepage": "https://github.com/theholocron/holocron/tree/main/packages/cli#readme",
6
6
  "bugs": "https://github.com/theholocron/holocron/issues",