@theholocron/cli 1.0.0 → 1.1.0

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 (104) hide show
  1. package/LICENSE +21 -674
  2. package/README.md +19 -8
  3. package/dist/capabilities/index.d.mts +2 -0
  4. package/dist/capabilities/index.mjs +2 -0
  5. package/dist/capabilities-QjjhVlDd.mjs +43 -0
  6. package/dist/cli.d.mts +1 -0
  7. package/dist/cli.mjs +852 -0
  8. package/dist/config-DWlIfFZm.mjs +113 -0
  9. package/dist/index-CSxf0Yc7.d.mts +485 -0
  10. package/dist/index.d.mts +58 -0
  11. package/dist/index.mjs +3 -0
  12. package/package.json +46 -53
  13. package/.alexignore +0 -3
  14. package/.editorconfig +0 -24
  15. package/.editorconfig-checker.json +0 -20
  16. package/.env +0 -3
  17. package/.gitattributes +0 -12
  18. package/.github/CODEOWNERS +0 -1
  19. package/.github/dependabot.yml +0 -6
  20. package/.github/labeler.yml +0 -21
  21. package/.github/workflows/bookkeeping-pr.yml +0 -32
  22. package/.github/workflows/greetings.yml +0 -32
  23. package/.github/workflows/lint.yml +0 -96
  24. package/.github/workflows/publish.yml +0 -71
  25. package/.github/workflows/review.yml +0 -72
  26. package/.github/workflows/stale.yml +0 -25
  27. package/.husky/commit-msg +0 -1
  28. package/.husky/pre-commit +0 -13
  29. package/.husky/prepare-commit-msg +0 -18
  30. package/commitlint.config.js +0 -9
  31. package/eslint.config.js +0 -9
  32. package/media/README.md +0 -11
  33. package/media/error.mp3 +0 -0
  34. package/media/success.mp3 +0 -0
  35. package/media/warning.mp3 +0 -0
  36. package/prettier.config.js +0 -11
  37. package/src/cli.ts +0 -65
  38. package/src/commands/README.md +0 -13
  39. package/src/commands/bootstrap.ts +0 -102
  40. package/src/commands/conf/README.md +0 -45
  41. package/src/commands/conf/add.ts +0 -49
  42. package/src/commands/conf/edit.ts +0 -12
  43. package/src/commands/conf/view.ts +0 -40
  44. package/src/commands/conf.ts +0 -10
  45. package/src/commands/log.ts +0 -91
  46. package/src/const.ts +0 -19
  47. package/src/tasks/README.md +0 -33
  48. package/src/tasks/find/README.md +0 -49
  49. package/src/tasks/find/find-project.example.ts +0 -23
  50. package/src/tasks/find/find-project.ts +0 -76
  51. package/src/tasks/find/index.ts +0 -1
  52. package/src/tasks/index.ts +0 -2
  53. package/src/tasks/replace/README.md +0 -61
  54. package/src/tasks/replace/index.ts +0 -1
  55. package/src/tasks/replace/replace.example.ts +0 -31
  56. package/src/tasks/replace/replace.ts +0 -95
  57. package/src/ui/README.md +0 -8
  58. package/src/ui/index.ts +0 -2
  59. package/src/ui/open/README.md +0 -58
  60. package/src/ui/open/index.ts +0 -7
  61. package/src/ui/open/open-browser.ts +0 -25
  62. package/src/ui/open/open-editor.example.ts +0 -14
  63. package/src/ui/open/open-editor.ts +0 -30
  64. package/src/ui/prompts/README.md +0 -36
  65. package/src/ui/prompts/autocomplete.prompt.ts +0 -18
  66. package/src/ui/prompts/confirm.prompt.ts +0 -21
  67. package/src/ui/prompts/index.ts +0 -17
  68. package/src/ui/prompts/input.prompt.ts +0 -15
  69. package/src/ui/prompts/search.prompt.ts +0 -33
  70. package/src/ui/prompts/select.prompt.ts +0 -17
  71. package/src/ui/prompts/types.ts +0 -8
  72. package/src/ui/prompts/utils.ts +0 -11
  73. package/src/utils/$/README.md +0 -87
  74. package/src/utils/$/command.test.ts +0 -48
  75. package/src/utils/$/command.ts +0 -21
  76. package/src/utils/$/directory.ts +0 -108
  77. package/src/utils/$/file.ts +0 -98
  78. package/src/utils/$/index.example.ts +0 -37
  79. package/src/utils/$/index.ts +0 -22
  80. package/src/utils/$/path.ts +0 -13
  81. package/src/utils/$/remove.ts +0 -47
  82. package/src/utils/$/spawn.ts +0 -26
  83. package/src/utils/$/utils.ts +0 -21
  84. package/src/utils/README.md +0 -15
  85. package/src/utils/config/README.md +0 -41
  86. package/src/utils/config/config.ts +0 -26
  87. package/src/utils/config/index.ts +0 -1
  88. package/src/utils/config/preferences.conf.ts +0 -45
  89. package/src/utils/env/README.md +0 -52
  90. package/src/utils/env/env.example.ts +0 -21
  91. package/src/utils/env/env.ts +0 -57
  92. package/src/utils/env/index.ts +0 -1
  93. package/src/utils/index.ts +0 -5
  94. package/src/utils/log/README.md +0 -117
  95. package/src/utils/log/index.ts +0 -2
  96. package/src/utils/log/log.example.ts +0 -13
  97. package/src/utils/log/log.ts +0 -58
  98. package/src/utils/log/logger.ts +0 -28
  99. package/src/utils/log/sound.ts +0 -35
  100. package/src/utils/node/README.md +0 -23
  101. package/src/utils/node/index.ts +0 -5
  102. package/src/utils/node/package.ts +0 -12
  103. package/tsconfig.json +0 -15
  104. package/yamllint.config.yml +0 -20
package/package.json CHANGED
@@ -1,71 +1,64 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "1.0.0",
4
- "description": "The command-line client designed to support The Holocron.",
5
- "homepage": "https://github.com/theholocron/holocron#readme",
3
+ "version": "1.1.0",
4
+ "description": "The Holocron CLI — a pluggable, capability-based orchestrator for spinning up and operating software projects.",
5
+ "homepage": "https://github.com/theholocron/holocron/tree/main/packages/cli#readme",
6
6
  "bugs": "https://github.com/theholocron/holocron/issues",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/theholocron/holocron.git"
9
+ "url": "git+https://github.com/theholocron/holocron.git",
10
+ "directory": "packages/cli"
10
11
  },
11
- "license": "GPL-3.0",
12
+ "license": "MIT",
12
13
  "author": "Newton Koumantzelis",
13
14
  "type": "module",
14
- "main": "src/cli.ts",
15
+ "main": "./dist/index.mjs",
15
16
  "bin": {
16
- "holocron": "./src/cli.ts"
17
+ "holocron": "./dist/cli.mjs"
17
18
  },
18
- "man": "./man/holocron.1",
19
- "scripts": {
20
- "lint": "docker run -e LOG_LEVEL=DEBUG -e RUN_LOCAL=true -v .:/tmp/lint --rm ghcr.io/super-linter/super-linter:latest",
21
- "postbuild": "marked-man README.md > man/holocron.1",
22
- "start": "tsx ./src/cli.ts"
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.mts",
22
+ "import": "./dist/index.mjs",
23
+ "default": "./dist/index.mjs"
24
+ },
25
+ "./capabilities": {
26
+ "types": "./dist/capabilities/index.d.mts",
27
+ "import": "./dist/capabilities/index.mjs",
28
+ "default": "./dist/capabilities/index.mjs"
29
+ }
23
30
  },
31
+ "files": [
32
+ "dist",
33
+ "README.md"
34
+ ],
24
35
  "dependencies": {
25
- "@inquirer/prompts": "^7.0.1",
26
- "@theholocron/utils-string": "^0.1.0",
27
- "chalk": "^5.3.0",
28
- "conf": "^13.0.1",
29
- "default-browser": "^5.2.1",
30
- "dotenv": "^16.4.5",
31
- "inquirer-autocomplete-standalone": "^0.8.1",
32
- "open": "^10.1.0",
33
- "open-editor": "^4.1.1",
34
- "ora": "^8.1.0",
35
- "play-sound": "^1.1.6",
36
- "update-notifier": "^7.3.1",
37
- "winston": "^3.15.0",
38
- "yargs": "^17.7.2"
36
+ "yargs": "^18.0.0",
37
+ "@theholocron/cli-utils": "0.0.0"
39
38
  },
40
39
  "devDependencies": {
41
- "@theholocron/commitlint-config": "^3.4.4",
42
- "@theholocron/eslint-config": "^3.4.4",
43
- "@theholocron/jest-config": "^3.4.4",
44
- "@theholocron/lint-staged-config": "^3.4.4",
45
- "@theholocron/prettier-config": "^3.4.4",
46
- "@theholocron/storybook-config": "^3.4.4",
47
- "@theholocron/stylelint-config": "^3.4.4",
48
- "@theholocron/tsconfig": "^3.4.4",
49
- "@tsconfig/node-lts": "^20.1.3",
50
- "@types/conf": "^2.1.0",
51
- "@types/inquirer": "^9.0.7",
52
- "@types/play-sound": "^1.1.2",
53
- "@types/update-notifier": "^6.0.8",
54
- "@types/winston": "^2.4.4",
55
- "@types/yargs": "^17.0.33",
56
- "alexjs": "^1.0.0",
57
- "marked-man": "^2.1.0",
58
- "tsx": "^4.19.2",
59
- "typescript": "^5.6.3"
60
- },
61
- "packageManager": "npm@9.5.0",
62
- "engines": {
63
- "node": ">=23",
64
- "npm": ">=10"
40
+ "@theholocron/eslint-config": "^4.1.0",
41
+ "@theholocron/tsconfig": "^4.1.0",
42
+ "@tsconfig/node-lts": "^24.0.0",
43
+ "@types/yargs": "^17.0.35",
44
+ "@vitest/coverage-v8": "^3.2.6",
45
+ "eslint": "^9.36.0",
46
+ "globals": "^16.5.0",
47
+ "tsdown": "^0.22.3",
48
+ "typescript": "^5.9.3",
49
+ "vitest": "^3.2.6"
65
50
  },
66
51
  "publishConfig": {
67
52
  "access": "public"
68
53
  },
69
- "releases": "https://github.com/theholocron/holocron/releases",
70
- "wiki": "https://github.com/theholocron/holocron/wiki"
71
- }
54
+ "scripts": {
55
+ "build": "tsdown",
56
+ "start": "tsx ./src/cli.ts",
57
+ "lint": "eslint .",
58
+ "typecheck": "tsc --noEmit",
59
+ "test": "vitest run",
60
+ "test:watch": "vitest",
61
+ "test:coverage": "vitest run --coverage"
62
+ },
63
+ "types": "./dist/index.d.mts"
64
+ }
package/.alexignore DELETED
@@ -1,3 +0,0 @@
1
- .github/*
2
- CHANGELOG.md
3
- LICENSE
package/.editorconfig DELETED
@@ -1,24 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- end_of_line = lf
5
- charset = utf-8
6
- trim_trailing_whitespace = true
7
- insert_final_newline = true
8
- indent_style = tab
9
- indent_size = 4
10
-
11
- [.gitattributes]
12
- indent_style = space
13
- indent_size = 2
14
-
15
- [*.{json,yml}]
16
- indent_style = space
17
- indent_size = 2
18
-
19
- [*.md]
20
- trim_trailing_whitespace = false
21
-
22
- [.*{rc,ignore}]
23
- indent_style = space
24
- indent_size = 2
@@ -1,20 +0,0 @@
1
- {
2
- "Version": "v3.0.3",
3
- "Verbose": false,
4
- "Format": "",
5
- "Debug": false,
6
- "IgnoreDefaults": false,
7
- "SpacesAftertabs": false,
8
- "NoColor": false,
9
- "Exclude": ["^LICENSE$", "^public/.*"],
10
- "AllowedContentTypes": [],
11
- "PassedFiles": [],
12
- "Disable": {
13
- "EndOfLine": false,
14
- "Indentation": false,
15
- "InsertFinalNewline": false,
16
- "TrimTrailingWhitespace": false,
17
- "IndentSize": false,
18
- "MaxLineLength": false
19
- }
20
- }
package/.env DELETED
@@ -1,3 +0,0 @@
1
- HOLOCRON_DEBUG=false
2
- HOLOCRON_SOUND=false
3
- HOLOCRON_VERBOSE=false
package/.gitattributes DELETED
@@ -1,12 +0,0 @@
1
- # Enforce Unix newlines
2
- *.css text eol=lf
3
- *.html text eol=lf
4
- *.js text eol=lf
5
- *.json text eol=lf
6
- *.scss text eol=lf
7
- *.md text eol=lf
8
- *.svg text eol=lf
9
- *.yml text eol=lf
10
-
11
- # Don't diff or textually merge source maps
12
- *.map binary
@@ -1 +0,0 @@
1
- * @theholocron/gatekeepers
@@ -1,6 +0,0 @@
1
- version: 2
2
- updates:
3
- - package-ecosystem: "npm"
4
- directory: "/"
5
- schedule:
6
- interval: "weekly"
@@ -1,21 +0,0 @@
1
- # Add "documentation" label to any changes within "docs" folder or any subfolders or .md files within the entire repository
2
- documentation:
3
- - any:
4
- - changed-files:
5
- - any-glob-to-any-file:
6
- - docs/**
7
- - "**/*.md"
8
-
9
- # Add "bug" label to any PR where the head branch name starts with `fix` with file changes to src directory
10
- bug:
11
- - all:
12
- - changed-files:
13
- - any-glob-to-any-file: src/**
14
- - head-branch: "^fix-"
15
-
16
- # Add "enhancement" label to any PR where the head branch name starts with `feat` with file changes to src directory
17
- enhancement:
18
- - all:
19
- - changed-files:
20
- - any-glob-to-any-file: src/**
21
- - head-branch: "^feat-"
@@ -1,32 +0,0 @@
1
- name: PR Bookkeeping
2
-
3
- # @TODO: add in more things like:
4
- # - [ ] auto-assigning,
5
- # - [ ] project assignments,
6
- # - [ ] milestone assignments
7
- # - [ ] cleans up language
8
- # - [ ] checks that template is filled out
9
-
10
- on: # yamllint disable-line rule:truthy
11
- pull_request:
12
- types:
13
- - opened
14
- - edited
15
-
16
- permissions:
17
- contents: read
18
- pull-requests: write
19
-
20
- jobs:
21
- label-pr:
22
- name: Add Labels to PRs
23
- runs-on: ubuntu-latest
24
- steps:
25
- - uses: github/issue-labeler@v3.4
26
- with:
27
- include-title: 1
28
- include-body: 0
29
- sync-labels: 1
30
- configuration-path: .github/labeler.yml
31
- enable-versioned-regex: 0
32
- repo-token: ${{ github.token }}
@@ -1,32 +0,0 @@
1
- name: Greetings
2
-
3
- on: # yamllint disable-line rule:truthy
4
- - pull_request
5
- - issues
6
-
7
- jobs:
8
- greeting:
9
- name: Greet new interactions
10
- runs-on: ubuntu-latest
11
- steps:
12
- - uses: actions/first-interaction@v1
13
- with:
14
- issue-message: >
15
- Hey @${{ github.event.issue.user.login }}!
16
- We really appreciate you taking the time to report an issue. The
17
- collaborators on this project attempt to help as many people as
18
- possible, but we are a limited number of volunteers, so it is
19
- possible that this will not be addressed as swiftly.
20
-
21
- Your patience is much appreciated and we will get back to you as
22
- quickly as possible.
23
- pr-message: >
24
- Hey @${{ github.event.issue.user.login }}!
25
- We really appreciate you taking the time to help out with this PR.
26
- The collaborators on this project attempt to help as many people as
27
- possible, but we are a limited number of volunteers, so it is
28
- possible that this will not be addressed as swiftly.
29
-
30
- Your patience is much appreciated and we will get back to you as
31
- quickly as possible.
32
- repo-token: ${{ secrets.GITHUB_TOKEN }}
@@ -1,96 +0,0 @@
1
- name: Lint
2
-
3
- on: # yamllint disable-line rule:truthy
4
- - push
5
- - pull_request
6
-
7
- permissions:
8
- contents: read
9
-
10
- jobs:
11
- super-lint:
12
- name: "Lint entire codebase"
13
- permissions:
14
- contents: write # write linting fixes
15
- statuses: write # write Super-linter status checks
16
- runs-on: ubuntu-latest
17
- steps:
18
- - uses: actions/checkout@v4
19
- name: Checkout repository
20
- with:
21
- fetch-depth: 0
22
- token: ${{ secrets.GH_TOKEN }}
23
-
24
- - uses: actions/setup-node@v4
25
- name: Setup Node.js @v20
26
- with:
27
- cache: npm
28
- node-version: 20.x
29
-
30
- - run: npm ci
31
- name: Install dependencies
32
-
33
- - uses: super-linter/super-linter/slim@v7.1.0
34
- name: Run Super Linter
35
- env:
36
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37
- ANNOTATE_ONLY: true # Allow annotations in the PR
38
- DISABLE_COMMENTS: false # Enable comments in the PR
39
- IGNORE_GITIGNORED_FILES: true
40
- LINTER_RULES_PATH: /
41
- # CSS_FILE_NAME: "stylelint.config.js"
42
- EDITORCONFIG_FILE_NAME: ".editorconfig-checker.json"
43
- # FIX_CSS_PRETTIER: true
44
- FIX_ENV: true
45
- FIX_GRAPHQL_PRETTIER: true
46
- FIX_HTML_PRETTIER: true
47
- FIX_JAVASCRIPT_PRETTIER: true
48
- # FIX_JSON_PRETTIER: true => turning this off til i figure out why its not respecting config
49
- FIX_JSX_PRETTIER: true
50
- # FIX_MARKDOWN_PRETTIER: true
51
- FIX_TSX: true
52
- FIX_TYPESCRIPT_PRETTIER: true
53
- # FIX_YAML_PRETTIER: true => turning this off til i figure out why its not respecting config
54
- # GITHUB_ACTIONS_CONFIG_FILE: "actionlint.yml" => basically unneeded
55
- # GITLEAKS_CONFIG: ".gitleaks.toml" # Path to your Gitleaks config if you have one
56
- JAVASCRIPT_ES_CONFIG_FILE: "eslint.config.js"
57
- # MARKDOWN_CONFIG_FILE: ".markdown-lint.yml"
58
- # NATURAL_LANGUAGE_CONFIG_FILE: "textlint.config.js"
59
- PRETTIER_CONFIG: "prettier.config.js"
60
- TYPESCRIPT_ES_CONFIG_FILE: "eslint.config.js"
61
- TYPESCRIPT_STANDARD_TSCONFIG_FILE: "tsconfig.json"
62
- # VALIDATE_CSS_PRETTIER: true
63
- VALIDATE_DOCKERFILE: true
64
- VALIDATE_EDITORCONFIG: true
65
- VALIDATE_ENV: true
66
- VALIDATE_GIT_COMMITLINT: true
67
- VALIDATE_GIT_MERGE_CONFLICT_MARKERS: true
68
- VALIDATE_GITHUB_ACTIONS: true
69
- VALIDATE_GITLEAKS: true
70
- VALIDATE_GRAPHQL_PRETTIER: true
71
- VALIDATE_HTML_PRETTIER: true
72
- VALIDATE_JAVASCRIPT_PRETTIER: true
73
- VALIDATE_JSON_PRETTIER: true
74
- VALIDATE_JSX_PRETTIER: true
75
- # VALIDATE_MARKDOWN_PRETTIER: true => disabling because its annoying and doesn't respect anything
76
- # VALIDATE_NATURAL_LANGUAGE: true
77
- VALIDATE_TSX: true
78
- VALIDATE_TYPESCRIPT_PRETTIER: true
79
- VALIDATE_YAML: true # turning on for now while prettier is broken
80
- # VALIDATE_YAML_PRETTIER: true => turning it off because its writing 4 spaces instead of 2
81
- YAML_CONFIG_FILE: "yamllint.config.yml"
82
-
83
- - uses: stefanzweifel/git-auto-commit-action@v5
84
- name: Commit and push linting fixes
85
- # Run only on:
86
- # - Pull requests
87
- # - Not on the default branch
88
- if: >
89
- github.event_name == 'pull_request' &&
90
- github.ref_name != github.event.repository.default_branch
91
- with:
92
- branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
93
- commit_message: "chore: fix linting issues"
94
- commit_options: "--no-verify --signoff"
95
- commit_user_name: super-linter
96
- commit_user_email: super-linter@super-linter.dev
@@ -1,71 +0,0 @@
1
- name: Publish
2
-
3
- on: # yamllint disable-line rule:truthy
4
- push:
5
- branches:
6
- - main
7
-
8
- permissions:
9
- contents: write
10
- packages: write
11
- pull-requests: write
12
-
13
- jobs:
14
- release:
15
- name: Version using Semantic Versioning
16
- runs-on: ubuntu-latest
17
- steps:
18
- - uses: googleapis/release-please-action@v4
19
- id: release
20
- with:
21
- release-type: node
22
- # The short ref name of the branch or tag that triggered
23
- # the workflow run. For example, `main` or `1.x`
24
- target-branch: ${{ github.ref_name }}
25
-
26
- publish-npm:
27
- name: Publish to NPM
28
- runs-on: ubuntu-latest
29
- needs: release
30
- steps:
31
- - uses: actions/checkout@v4
32
- name: Checkout repository
33
-
34
- - uses: actions/setup-node@v4
35
- name: Setup Node.js @v20
36
- with:
37
- cache: npm
38
- node-version: 20.x
39
- registry-url: 'https://registry.npmjs.org'
40
-
41
- - run: npm ci
42
- name: Install dependencies
43
-
44
- - run: npm publish
45
- name: Publish to GitHub
46
- env:
47
- NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
48
-
49
- publish-gh:
50
- name: Publish to GitHub
51
- runs-on: ubuntu-latest
52
- needs: release
53
- steps:
54
- - uses: actions/checkout@v4
55
- name: Checkout repository
56
-
57
- - uses: actions/setup-node@v4
58
- name: Setup Node.js @v20
59
- with:
60
- cache: npm
61
- node-version: 20.x
62
- registry-url: 'https://npm.pkg.github.com'
63
- scope: '@theholocron'
64
-
65
- - run: npm ci
66
- name: Install dependencies
67
-
68
- - run: npm publish --access public
69
- name: Publish to GitHub Packages
70
- env:
71
- NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
@@ -1,72 +0,0 @@
1
- name: Review
2
-
3
- on: # yamllint disable-line rule:truthy
4
- - push
5
- - pull_request
6
-
7
- jobs:
8
- reviewdog:
9
- name: Review PRs
10
- runs-on: ubuntu-latest
11
- steps:
12
- - uses: actions/checkout@v4
13
- name: Checkout repository
14
-
15
- - uses: actions/setup-node@v4
16
- name: Setup Node.js @v20
17
- with:
18
- cache: npm
19
- node-version: 20.x
20
-
21
- - run: npm ci
22
- name: Install dependencies
23
-
24
- - uses: reviewdog/action-setup@v1
25
- name: Install & setup ReviewDog
26
- with:
27
- reviewdog_version: latest # Optional. [latest,nightly,v.X.Y.Z]
28
-
29
- - uses: reviewdog/action-gitleaks@v1
30
- name: Detect secrets using Gitleaks
31
- with:
32
- reporter: github-pr-check
33
-
34
- - uses: reviewdog/action-alex@v1
35
- name: Check language using Alex
36
- with:
37
- reporter: github-pr-check # [github-pr-check,github-check,github-pr-review]
38
- # GitHub Status Check won't become failure with warning.
39
- # level: warning # [info,warning, error]
40
-
41
- - uses: EPMatt/reviewdog-action-tsc@v1
42
- name: Check types using TypeScript
43
- with:
44
- reporter: github-pr-check
45
-
46
- # - uses: reviewdog/action-stylelint@v1
47
- # name: Check CSS using StyleLint
48
- # with:
49
- # reporter: github-pr-check
50
- # stylelint_input: '**/*.css'
51
-
52
- # need to setup textlint in the repo for this
53
- # - uses: tsuyoshicho/action-textlint@v3
54
- # name: Check text using TextLint
55
- # with:
56
- # reporter: github-pr-check
57
-
58
- - uses: reviewdog/action-actionlint@v1
59
- name: Check GitHub Actions using ActionLint
60
- with:
61
- reporter: github-pr-check
62
-
63
- - uses: dotenv-linter/action-dotenv-linter@v2
64
- name: Check environment variables using dotenv
65
- with:
66
- reporter: github-code-suggestions
67
-
68
- - uses: reviewdog/action-yamllint@v1
69
- name: Check YAML using YamlLint
70
- with:
71
- reporter: github-pr-check
72
- yamllint_flags: "-c ${{ github.workspace }}/yamllint.config.yml ${{ github.workspace }}"
@@ -1,25 +0,0 @@
1
- name: Stale
2
-
3
- on: # yamllint disable-line rule:truthy
4
- schedule:
5
- - cron: "30 1 * * *"
6
-
7
- jobs:
8
- stale:
9
- name: Mark stale issues and pull requests
10
- permissions:
11
- contents: write # only for delete-branch option
12
- issues: write
13
- pull-requests: write
14
- runs-on: ubuntu-latest
15
- steps:
16
- - uses: actions/stale@v9
17
- with:
18
- close-issue-message: "This issue was closed because it has been stalled for 5 days with no activity."
19
- days-before-close: 5
20
- days-before-stale: 30
21
- exempt-all-pr-milestones: true
22
- stale-issue-label: "wontfix"
23
- stale-issue-message: "This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days."
24
- stale-pr-label: "wontfix"
25
- stale-pr-message: "This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days."
package/.husky/commit-msg DELETED
@@ -1 +0,0 @@
1
- npx --no -- commitlint --edit $1
package/.husky/pre-commit DELETED
@@ -1,13 +0,0 @@
1
- #!/bin/sh
2
-
3
- # Run GitLeaks to detect secrets
4
- gitleaks git --no-banner
5
-
6
- # Exit with non-zero if secrets are detected by GitLeaks
7
- if [ $? -ne 0 ]; then
8
- echo "Secrets detected by GitLeaks, aborting commit!"
9
- exit 1
10
- fi
11
-
12
- # Run lint-staged with a custom config
13
- npx lint-staged --config @theholocron/lint-staged-config
@@ -1,18 +0,0 @@
1
- #!/bin/sh
2
-
3
- NAME=$(git config user.name)
4
- EMAIL=$(git config user.email)
5
-
6
- if [ -z "$NAME" ]; then
7
- echo "empty git config user.name"
8
- exit 1
9
- fi
10
-
11
- if [ -z "$EMAIL" ]; then
12
- echo "empty git config user.email"
13
- exit 1
14
- fi
15
-
16
- git interpret-trailers --if-exists doNothing --trailer \
17
- "Signed-off-by: $NAME <$EMAIL>" \
18
- --in-place "$1"
@@ -1,9 +0,0 @@
1
- /**
2
- * @see https://commitlint.js.org/reference/configuration.html
3
- * @type {import("@commitlint/types").UserConfig}
4
- */
5
- const config = {
6
- extends: ["@theholocron"],
7
- };
8
-
9
- export default config;
package/eslint.config.js DELETED
@@ -1,9 +0,0 @@
1
- import theHolocron from "@theholocron/eslint-config";
2
-
3
- /**
4
- * @see https://eslint.org/docs/latest/use/configure/
5
- * @type {import("eslint").Linter.Config}
6
- */
7
- const config = [...theHolocron];
8
-
9
- export default config;
package/media/README.md DELETED
@@ -1,11 +0,0 @@
1
- # Media
2
-
3
- The following is a storage place for all of the media used within `holocron`.
4
-
5
- ## What's Available
6
-
7
- ### MP3s
8
-
9
- - error.mp3 - used for when a command errs, and the `--sound` flag is enabled
10
- - warning.mp3 - used for when a command has a warning, and the `--sound` flag is enabled
11
- - success.mp3 - used for when a command is successful, and the `--sound` flag is enabled
package/media/error.mp3 DELETED
Binary file
package/media/success.mp3 DELETED
Binary file
package/media/warning.mp3 DELETED
Binary file
@@ -1,11 +0,0 @@
1
- import theholocron from "@theholocron/prettier-config";
2
-
3
- /**
4
- * @see https://prettier.io/docs/en/configuration
5
- * @type {import("prettier").Config}
6
- */
7
- const config = {
8
- ...theholocron,
9
- };
10
-
11
- export default config;