@xcelera/cli 0.0.1

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 (46) hide show
  1. package/.devcontainer/devcontainer.json +41 -0
  2. package/.env.example +61 -0
  3. package/.gitattributes +3 -0
  4. package/.github/dependabot.yml +30 -0
  5. package/.github/workflows/check-dist.yml +72 -0
  6. package/.github/workflows/ci.yml +65 -0
  7. package/.github/workflows/codeql-analysis.yml +48 -0
  8. package/.github/workflows/licensed.yml +74 -0
  9. package/.github/workflows/linter.yml +53 -0
  10. package/.licensed.yml +18 -0
  11. package/.licenses/npm/@actions/core.dep.yml +20 -0
  12. package/.licenses/npm/@actions/exec.dep.yml +20 -0
  13. package/.licenses/npm/@actions/http-client.dep.yml +32 -0
  14. package/.licenses/npm/@actions/io.dep.yml +20 -0
  15. package/.licenses/npm/@fastify/busboy.dep.yml +30 -0
  16. package/.licenses/npm/tunnel.dep.yml +35 -0
  17. package/.licenses/npm/undici.dep.yml +34 -0
  18. package/.markdown-lint.yml +24 -0
  19. package/.node-version +1 -0
  20. package/.nvmrc +1 -0
  21. package/.prettierignore +5 -0
  22. package/.prettierrc.yml +16 -0
  23. package/.vscode/launch.json +15 -0
  24. package/.yaml-lint.yml +14 -0
  25. package/CODEOWNERS +7 -0
  26. package/LICENSE +21 -0
  27. package/README.md +30 -0
  28. package/action.yml +29 -0
  29. package/badges/coverage.svg +1 -0
  30. package/dist/action.js +31290 -0
  31. package/dist/action.js.map +1 -0
  32. package/dist/cli.js +95 -0
  33. package/eslint.config.mjs +81 -0
  34. package/jest.config.js +40 -0
  35. package/package.json +76 -0
  36. package/rollup.config.ts +30 -0
  37. package/script/release +133 -0
  38. package/src/action.ts +35 -0
  39. package/src/api.ts +46 -0
  40. package/src/cli.ts +84 -0
  41. package/src/git.ts +66 -0
  42. package/src/types/git.ts +5 -0
  43. package/src/types/parse-github-url.d.ts +12 -0
  44. package/tsconfig.base.json +23 -0
  45. package/tsconfig.eslint.json +17 -0
  46. package/tsconfig.json +11 -0
@@ -0,0 +1,12 @@
1
+ declare module 'parse-github-url' {
2
+ interface ParsedGithubUrl {
3
+ owner: string
4
+ name: string
5
+ repo: string
6
+ branch?: string
7
+ }
8
+
9
+ function parseGithubUrl(url: string): ParsedGithubUrl | null
10
+
11
+ export default parseGithubUrl
12
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "allowSyntheticDefaultImports": true,
5
+ "declaration": false,
6
+ "declarationMap": false,
7
+ "esModuleInterop": true,
8
+ "forceConsistentCasingInFileNames": true,
9
+ "isolatedModules": true,
10
+ "lib": ["ES2022"],
11
+ "module": "NodeNext",
12
+ "moduleResolution": "NodeNext",
13
+ "newLine": "lf",
14
+ "noImplicitAny": true,
15
+ "noUnusedLocals": true,
16
+ "noUnusedParameters": false,
17
+ "pretty": true,
18
+ "resolveJsonModule": true,
19
+ "strict": true,
20
+ "strictNullChecks": true,
21
+ "target": "ES2022"
22
+ }
23
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./tsconfig.base.json",
4
+ "compilerOptions": {
5
+ "allowJs": true,
6
+ "noEmit": true
7
+ },
8
+ "exclude": ["dist", "node_modules"],
9
+ "include": [
10
+ "__fixtures__",
11
+ "__tests__",
12
+ "src",
13
+ "eslint.config.mjs",
14
+ "jest.config.js",
15
+ "rollup.config.ts"
16
+ ]
17
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "./tsconfig.base.json",
4
+ "compilerOptions": {
5
+ "module": "NodeNext",
6
+ "moduleResolution": "NodeNext",
7
+ "outDir": "./dist"
8
+ },
9
+ "exclude": ["__fixtures__", "__tests__", "coverage", "dist", "node_modules"],
10
+ "include": ["src"]
11
+ }