@xcelera/cli 1.2.2 → 1.4.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 (48) hide show
  1. package/dist/action.js +81 -18
  2. package/dist/action.js.map +1 -1
  3. package/dist/cli.js +94 -19
  4. package/dist/cli.js.map +1 -0
  5. package/package.json +10 -3
  6. package/.commitlintrc.json +0 -3
  7. package/.devcontainer/devcontainer.json +0 -41
  8. package/.env.example +0 -61
  9. package/.gitattributes +0 -3
  10. package/.github/dependabot.yml +0 -30
  11. package/.github/workflows/check-dist.yml +0 -72
  12. package/.github/workflows/ci.yml +0 -70
  13. package/.github/workflows/codeql-analysis.yml +0 -48
  14. package/.github/workflows/licensed.yml +0 -74
  15. package/.github/workflows/linter.yml +0 -53
  16. package/.github/workflows/release.yml +0 -56
  17. package/.licensed.yml +0 -18
  18. package/.licenses/npm/@actions/core.dep.yml +0 -20
  19. package/.licenses/npm/@actions/exec.dep.yml +0 -20
  20. package/.licenses/npm/@actions/http-client.dep.yml +0 -32
  21. package/.licenses/npm/@actions/io.dep.yml +0 -20
  22. package/.licenses/npm/@fastify/busboy.dep.yml +0 -30
  23. package/.licenses/npm/tunnel.dep.yml +0 -35
  24. package/.licenses/npm/undici.dep.yml +0 -34
  25. package/.markdown-lint.yml +0 -24
  26. package/.node-version +0 -1
  27. package/.nvmrc +0 -1
  28. package/.prettierignore +0 -5
  29. package/.prettierrc.yml +0 -16
  30. package/.vscode/launch.json +0 -15
  31. package/.yaml-lint.yml +0 -14
  32. package/CODEOWNERS +0 -7
  33. package/action.yml +0 -29
  34. package/badges/coverage.svg +0 -1
  35. package/eslint.config.mjs +0 -81
  36. package/jest.config.js +0 -40
  37. package/release.config.mjs +0 -12
  38. package/rollup.config.ts +0 -30
  39. package/script/release +0 -133
  40. package/src/action.ts +0 -35
  41. package/src/api.ts +0 -46
  42. package/src/cli.ts +0 -79
  43. package/src/git.ts +0 -66
  44. package/src/types/git.ts +0 -5
  45. package/src/types/parse-github-url.d.ts +0 -12
  46. package/tsconfig.base.json +0 -23
  47. package/tsconfig.eslint.json +0 -18
  48. package/tsconfig.json +0 -11
@@ -1,53 +0,0 @@
1
- name: Lint Codebase
2
-
3
- on:
4
- pull_request:
5
- branches:
6
- - main
7
- push:
8
- branches:
9
- - main
10
-
11
- permissions:
12
- contents: read
13
- packages: read
14
- statuses: write
15
-
16
- jobs:
17
- lint:
18
- name: Lint Codebase
19
- runs-on: ubuntu-latest
20
-
21
- steps:
22
- - name: Checkout
23
- id: checkout
24
- uses: actions/checkout@v4
25
- with:
26
- fetch-depth: 0
27
-
28
- - name: Setup Node.js
29
- id: setup-node
30
- uses: actions/setup-node@v4
31
- with:
32
- node-version-file: .node-version
33
- cache: npm
34
-
35
- - name: Install Dependencies
36
- id: install
37
- run: npm ci
38
-
39
- - name: Lint Codebase
40
- id: super-linter
41
- uses: super-linter/super-linter/slim@v7
42
- env:
43
- DEFAULT_BRANCH: main
44
- FILTER_REGEX_EXCLUDE: dist/**/*
45
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46
- LINTER_RULES_PATH: ${{ github.workspace }}
47
- VALIDATE_ALL_CODEBASE: true
48
- VALIDATE_JAVASCRIPT_ES: false
49
- VALIDATE_JAVASCRIPT_STANDARD: false
50
- VALIDATE_JSCPD: false
51
- VALIDATE_TYPESCRIPT_ES: false
52
- VALIDATE_JSON: false
53
- VALIDATE_TYPESCRIPT_STANDARD: false
@@ -1,56 +0,0 @@
1
- name: Release
2
-
3
- on:
4
- pull_request:
5
- branches:
6
- - main
7
- push:
8
- branches:
9
- - main
10
- workflow_run:
11
- workflows: [Continuous Integration]
12
- types: [completed]
13
-
14
- permissions:
15
- contents: read
16
-
17
- jobs:
18
- release:
19
- name: Release
20
- if: ${{ github.event.workflow_run.conclusion == 'success' }}
21
- runs-on: ubuntu-latest
22
- permissions:
23
- contents: write # to be able to publish a GitHub release
24
- issues: write # to be able to comment on released issues
25
- pull-requests: write # to be able to comment on released pull requests
26
- id-token: write # to enable use of OIDC for npm provenance
27
-
28
- steps:
29
- - name: Checkout
30
- uses: actions/checkout@v4
31
- with:
32
- fetch-depth: 0
33
-
34
- - name: Setup Node.js
35
- id: setup-node
36
- uses: actions/setup-node@v4
37
- with:
38
- node-version-file: .node-version
39
- cache: npm
40
-
41
- - name: Install dependencies
42
- run: npm clean-install
43
-
44
- - name:
45
- Verify the integrity of provenance attestations and registry
46
- signatures for installed dependencies
47
- run: npm audit signatures
48
-
49
- - name: package
50
- run: npm run package
51
-
52
- - name: Release
53
- env:
54
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
56
- run: npx semantic-release
package/.licensed.yml DELETED
@@ -1,18 +0,0 @@
1
- # See: https://github.com/licensee/licensed/blob/main/docs/configuration.md
2
-
3
- sources:
4
- npm: true
5
-
6
- allowed:
7
- - apache-2.0
8
- - bsd-2-clause
9
- - bsd-3-clause
10
- - isc
11
- - mit
12
- - cc0-1.0
13
- - other
14
-
15
- ignored:
16
- npm:
17
- # Used by Rollup.js when building in GitHub Actions
18
- - '@rollup/rollup-linux-x64-gnu'
@@ -1,20 +0,0 @@
1
- ---
2
- name: "@actions/core"
3
- version: 1.11.1
4
- type: npm
5
- summary: Actions core lib
6
- homepage: https://github.com/actions/toolkit/tree/main/packages/core
7
- license: mit
8
- licenses:
9
- - sources: LICENSE.md
10
- text: |-
11
- The MIT License (MIT)
12
-
13
- Copyright 2019 GitHub
14
-
15
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
18
-
19
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
- notices: []
@@ -1,20 +0,0 @@
1
- ---
2
- name: "@actions/exec"
3
- version: 1.1.1
4
- type: npm
5
- summary: Actions exec lib
6
- homepage: https://github.com/actions/toolkit/tree/main/packages/exec
7
- license: mit
8
- licenses:
9
- - sources: LICENSE.md
10
- text: |-
11
- The MIT License (MIT)
12
-
13
- Copyright 2019 GitHub
14
-
15
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
18
-
19
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
- notices: []
@@ -1,32 +0,0 @@
1
- ---
2
- name: "@actions/http-client"
3
- version: 2.2.3
4
- type: npm
5
- summary: Actions Http Client
6
- homepage: https://github.com/actions/toolkit/tree/main/packages/http-client
7
- license: other
8
- licenses:
9
- - sources: LICENSE
10
- text: |
11
- Actions Http Client for Node.js
12
-
13
- Copyright (c) GitHub, Inc.
14
-
15
- All rights reserved.
16
-
17
- MIT License
18
-
19
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
20
- associated documentation files (the "Software"), to deal in the Software without restriction,
21
- including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
22
- and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
23
- subject to the following conditions:
24
-
25
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
26
-
27
- THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
28
- LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
29
- NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
30
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
31
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32
- notices: []
@@ -1,20 +0,0 @@
1
- ---
2
- name: "@actions/io"
3
- version: 1.1.3
4
- type: npm
5
- summary: Actions io lib
6
- homepage: https://github.com/actions/toolkit/tree/main/packages/io
7
- license: mit
8
- licenses:
9
- - sources: LICENSE.md
10
- text: |-
11
- The MIT License (MIT)
12
-
13
- Copyright 2019 GitHub
14
-
15
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
16
-
17
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
18
-
19
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
- notices: []
@@ -1,30 +0,0 @@
1
- ---
2
- name: "@fastify/busboy"
3
- version: 2.1.1
4
- type: npm
5
- summary: A streaming parser for HTML form data for node.js
6
- homepage:
7
- license: mit
8
- licenses:
9
- - sources: LICENSE
10
- text: |-
11
- Copyright Brian White. All rights reserved.
12
-
13
- Permission is hereby granted, free of charge, to any person obtaining a copy
14
- of this software and associated documentation files (the "Software"), to
15
- deal in the Software without restriction, including without limitation the
16
- rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
17
- sell copies of the Software, and to permit persons to whom the Software is
18
- furnished to do so, subject to the following conditions:
19
-
20
- The above copyright notice and this permission notice shall be included in
21
- all copies or substantial portions of the Software.
22
-
23
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
28
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
29
- IN THE SOFTWARE.
30
- notices: []
@@ -1,35 +0,0 @@
1
- ---
2
- name: tunnel
3
- version: 0.0.6
4
- type: npm
5
- summary: Node HTTP/HTTPS Agents for tunneling proxies
6
- homepage: https://github.com/koichik/node-tunnel/
7
- license: mit
8
- licenses:
9
- - sources: LICENSE
10
- text: |
11
- The MIT License (MIT)
12
-
13
- Copyright (c) 2012 Koichi Kobayashi
14
-
15
- Permission is hereby granted, free of charge, to any person obtaining a copy
16
- of this software and associated documentation files (the "Software"), to deal
17
- in the Software without restriction, including without limitation the rights
18
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
- copies of the Software, and to permit persons to whom the Software is
20
- furnished to do so, subject to the following conditions:
21
-
22
- The above copyright notice and this permission notice shall be included in
23
- all copies or substantial portions of the Software.
24
-
25
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
31
- THE SOFTWARE.
32
- - sources: README.md
33
- text: Licensed under the [MIT](https://github.com/koichik/node-tunnel/blob/master/LICENSE)
34
- license.
35
- notices: []
@@ -1,34 +0,0 @@
1
- ---
2
- name: undici
3
- version: 5.28.5
4
- type: npm
5
- summary: An HTTP/1.1 client, written from scratch for Node.js
6
- homepage: https://undici.nodejs.org
7
- license: mit
8
- licenses:
9
- - sources: LICENSE
10
- text: |
11
- MIT License
12
-
13
- Copyright (c) Matteo Collina and Undici contributors
14
-
15
- Permission is hereby granted, free of charge, to any person obtaining a copy
16
- of this software and associated documentation files (the "Software"), to deal
17
- in the Software without restriction, including without limitation the rights
18
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
- copies of the Software, and to permit persons to whom the Software is
20
- furnished to do so, subject to the following conditions:
21
-
22
- The above copyright notice and this permission notice shall be included in all
23
- copies or substantial portions of the Software.
24
-
25
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
- SOFTWARE.
32
- - sources: README.md
33
- text: MIT
34
- notices: []
@@ -1,24 +0,0 @@
1
- # See: https://github.com/DavidAnson/markdownlint
2
-
3
- # Unordered list style
4
- MD004:
5
- style: dash
6
-
7
- # Disable line length for tables
8
- MD013:
9
- tables: false
10
-
11
- # Ordered list item prefix
12
- MD029:
13
- style: one
14
-
15
- # Spaces after list markers
16
- MD030:
17
- ul_single: 1
18
- ol_single: 1
19
- ul_multi: 1
20
- ol_multi: 1
21
-
22
- # Code block style
23
- MD046:
24
- style: fenced
package/.node-version DELETED
@@ -1 +0,0 @@
1
- 20.18.1
package/.nvmrc DELETED
@@ -1 +0,0 @@
1
- 20.18.1
package/.prettierignore DELETED
@@ -1,5 +0,0 @@
1
- .DS_Store
2
- .licenses/
3
- dist/
4
- node_modules/
5
- coverage/
package/.prettierrc.yml DELETED
@@ -1,16 +0,0 @@
1
- # See: https://prettier.io/docs/en/configuration
2
-
3
- printWidth: 80
4
- tabWidth: 2
5
- useTabs: false
6
- semi: false
7
- singleQuote: true
8
- quoteProps: as-needed
9
- jsxSingleQuote: false
10
- trailingComma: none
11
- bracketSpacing: true
12
- bracketSameLine: true
13
- arrowParens: always
14
- proseWrap: always
15
- htmlWhitespaceSensitivity: css
16
- endOfLine: lf
@@ -1,15 +0,0 @@
1
- {
2
- "version": "0.2.0",
3
- "configurations": [
4
- {
5
- "name": "Debug Action",
6
- "type": "node",
7
- "request": "launch",
8
- "runtimeExecutable": "npx",
9
- "cwd": "${workspaceRoot}",
10
- "args": ["@github/local-action", ".", "src/action.ts", ".env"],
11
- "console": "integratedTerminal",
12
- "skipFiles": ["<node_internals>/**", "node_modules/**"]
13
- }
14
- ]
15
- }
package/.yaml-lint.yml DELETED
@@ -1,14 +0,0 @@
1
- # See: https://yamllint.readthedocs.io/en/stable/
2
-
3
- rules:
4
- document-end: disable
5
- document-start:
6
- level: warning
7
- present: false
8
- line-length:
9
- level: warning
10
- max: 80
11
- allow-non-breakable-words: true
12
- allow-non-breakable-inline-mappings: true
13
- ignore:
14
- - .licenses/
package/CODEOWNERS DELETED
@@ -1,7 +0,0 @@
1
- ############################################################################
2
- # Repository CODEOWNERS #
3
- # Order is important! The last matching pattern takes the most precedence. #
4
- ############################################################################
5
-
6
- # Default owners, unless a later match takes precedence.
7
- * @ztsmith
package/action.yml DELETED
@@ -1,29 +0,0 @@
1
- name: xcelera performance audit
2
- description:
3
- Perform a performance audit of a web page using Xcelera's Lighthouse testing
4
- service
5
- author: xcelera.dev
6
-
7
- branding:
8
- icon: zap
9
- color: yellow
10
-
11
- inputs:
12
- url:
13
- description: The URL of the web page to audit
14
- required: true
15
- token:
16
- description: Xcelera API token for authentication
17
- required: true
18
-
19
- outputs:
20
- auditId:
21
- description: The ID of the scheduled test
22
- status:
23
- description: The status of the audit request (scheduled, failed)
24
- error:
25
- description: The error message if the audit request fails
26
-
27
- runs:
28
- using: node20
29
- main: dist/action.js
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="136" height="20" role="img" aria-label="Coverage: Unknown%"><title>Coverage: Unknown%</title><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="136" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="63" height="20" fill="#555"/><rect x="63" width="73" height="20" fill="#4c1"/><rect width="136" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text aria-hidden="true" x="325" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="530">Coverage</text><text x="325" y="140" transform="scale(.1)" fill="#fff" textLength="530">Coverage</text><text aria-hidden="true" x="985" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="630">Unknown%</text><text x="985" y="140" transform="scale(.1)" fill="#fff" textLength="630">Unknown%</text></g></svg>
package/eslint.config.mjs DELETED
@@ -1,81 +0,0 @@
1
- // See: https://eslint.org/docs/latest/use/configure/configuration-files
2
-
3
- import { fixupPluginRules } from '@eslint/compat'
4
- import { FlatCompat } from '@eslint/eslintrc'
5
- import js from '@eslint/js'
6
- import typescriptEslint from '@typescript-eslint/eslint-plugin'
7
- import tsParser from '@typescript-eslint/parser'
8
- import _import from 'eslint-plugin-import'
9
- import jest from 'eslint-plugin-jest'
10
- import prettier from 'eslint-plugin-prettier'
11
- import globals from 'globals'
12
- import path from 'node:path'
13
- import { fileURLToPath } from 'node:url'
14
-
15
- const __filename = fileURLToPath(import.meta.url)
16
- const __dirname = path.dirname(__filename)
17
- const compat = new FlatCompat({
18
- baseDirectory: __dirname,
19
- recommendedConfig: js.configs.recommended,
20
- allConfig: js.configs.all
21
- })
22
-
23
- export default [
24
- {
25
- ignores: ['**/coverage', '**/dist', '**/linter', '**/node_modules']
26
- },
27
- ...compat.extends(
28
- 'eslint:recommended',
29
- 'plugin:@typescript-eslint/eslint-recommended',
30
- 'plugin:@typescript-eslint/recommended',
31
- 'plugin:jest/recommended',
32
- 'plugin:prettier/recommended'
33
- ),
34
- {
35
- plugins: {
36
- import: fixupPluginRules(_import),
37
- jest,
38
- prettier,
39
- '@typescript-eslint': typescriptEslint
40
- },
41
-
42
- languageOptions: {
43
- globals: {
44
- ...globals.node,
45
- ...globals.jest,
46
- Atomics: 'readonly',
47
- SharedArrayBuffer: 'readonly'
48
- },
49
-
50
- parser: tsParser,
51
- ecmaVersion: 2023,
52
- sourceType: 'module',
53
-
54
- parserOptions: {
55
- project: ['tsconfig.eslint.json'],
56
- tsconfigRootDir: '.'
57
- }
58
- },
59
-
60
- settings: {
61
- 'import/resolver': {
62
- typescript: {
63
- alwaysTryTypes: true,
64
- project: 'tsconfig.eslint.json'
65
- }
66
- }
67
- },
68
-
69
- rules: {
70
- camelcase: 'off',
71
- 'eslint-comments/no-use': 'off',
72
- 'eslint-comments/no-unused-disable': 'off',
73
- 'i18n-text/no-en': 'off',
74
- 'import/no-namespace': 'off',
75
- 'no-console': 'off',
76
- 'no-shadow': 'off',
77
- 'no-unused-vars': 'off',
78
- 'prettier/prettier': 'error'
79
- }
80
- }
81
- ]
package/jest.config.js DELETED
@@ -1,40 +0,0 @@
1
- // See: https://jestjs.io/docs/configuration
2
-
3
- /** @type {import('ts-jest').JestConfigWithTsJest} **/
4
- export default {
5
- clearMocks: true,
6
- collectCoverage: true,
7
- collectCoverageFrom: ['./src/**'],
8
- coverageDirectory: './coverage',
9
- coveragePathIgnorePatterns: ['/node_modules/', '/dist/'],
10
- coverageReporters: ['json-summary', 'text', 'lcov'],
11
- // Uncomment the below lines if you would like to enforce a coverage threshold
12
- // for your action. This will fail the build if the coverage is below the
13
- // specified thresholds.
14
- // coverageThreshold: {
15
- // global: {
16
- // branches: 100,
17
- // functions: 100,
18
- // lines: 100,
19
- // statements: 100
20
- // }
21
- // },
22
- extensionsToTreatAsEsm: ['.ts'],
23
- moduleFileExtensions: ['ts', 'js'],
24
- preset: 'ts-jest',
25
- reporters: ['default'],
26
- resolver: 'ts-jest-resolver',
27
- testEnvironment: 'node',
28
- testMatch: ['**/*.test.ts'],
29
- testPathIgnorePatterns: ['/dist/', '/node_modules/'],
30
- transform: {
31
- '^.+\\.ts$': [
32
- 'ts-jest',
33
- {
34
- tsconfig: 'tsconfig.eslint.json',
35
- useESM: true
36
- }
37
- ]
38
- },
39
- verbose: true
40
- }
@@ -1,12 +0,0 @@
1
- /**
2
- * @type {import('semantic-release').GlobalConfig}
3
- */
4
- export default {
5
- branches: ['main'],
6
- plugins: [
7
- '@semantic-release/commit-analyzer',
8
- '@semantic-release/release-notes-generator',
9
- '@semantic-release/npm',
10
- '@semantic-release/github'
11
- ]
12
- }
package/rollup.config.ts DELETED
@@ -1,30 +0,0 @@
1
- // See: https://rollupjs.org/introduction/
2
-
3
- import commonjs from '@rollup/plugin-commonjs'
4
- import nodeResolve from '@rollup/plugin-node-resolve'
5
- import typescript from '@rollup/plugin-typescript'
6
-
7
- const config = [
8
- {
9
- input: 'src/action.ts',
10
- output: {
11
- esModule: true,
12
- file: 'dist/action.js',
13
- format: 'es',
14
- sourcemap: true
15
- },
16
- plugins: [typescript(), nodeResolve({ preferBuiltins: true }), commonjs()]
17
- },
18
- {
19
- input: 'src/cli.ts',
20
- output: {
21
- esModule: true,
22
- file: 'dist/cli.js',
23
- format: 'es',
24
- sourcemap: true
25
- },
26
- plugins: [typescript(), nodeResolve({ preferBuiltins: true }), commonjs()]
27
- }
28
- ]
29
-
30
- export default config