Skip to content

Commit

Permalink
Issue 1021 blindly copy cli (#1)
Browse files Browse the repository at this point in the history
* copy over code blindly
fixes #1021

* copy over code blindly
fixes #1021
  • Loading branch information
Idrinth authored May 7, 2024
1 parent 8862c4a commit f90c399
Show file tree
Hide file tree
Showing 108 changed files with 14,218 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
env:
node: true
es6: true
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
github:
- idrinth
ko_fi: idrinth
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 100
9 changes: 9 additions & 0 deletions .github/prace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 1
body:
patterns:
- '#\d+'
error: The body has to include an issue reference like `#0`
branch:
patterns:
- 'issue-\d{1,}-[a-z0-9-]+'
error: Branch must be called `issue-{id}-{short description}`
27 changes: 27 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# The Pull Request is ready

- [ ] fixes #<!-- YOUR ISSUE ID HERE -->
- [ ] all actions are passing
- [ ] only fixes a single issue

## Overview

<!-- Provide a brief description of the changes introduced by this
Pull Request. -->

## Review points

<!-- List the points to be reviewed in detail
and the points you are not confident about. -->
<!-- Delete this section if not needed -->

## CLI

- [ ] the change works with both supported node versions
- [ ] the default behaviour did not change
- [ ] shared code has been extracted in a different file

## Notes

<!-- Write any note or comment. You can share your thoughts or ideas. -->
<!-- Delete this section if not needed -->
5 changes: 5 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
changelog:
exclude:
authors:
- dependabot
- renovate
58 changes: 58 additions & 0 deletions .github/workflows/cli.codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: cli CodeQL
on:
push:
branches:
- the-one
paths:
- 'cli/**.ts'
- 'cli/**.tsx'
- 'cli/**.js'
- 'cli/**.cjs'
- 'cli/package-lock.json'
- '.github/workflows/cli.codeql.yml'
pull_request:
branches:
- the-one
paths:
- 'cli/**.ts'
- 'cli/**.tsx'
- 'cli/**.js'
- 'cli/**.cjs'
- 'cli/package-lock.json'
- '.github/workflows/cli.codeql.yml'
env:
CURRENT_NODE_VERSION: ${{ vars.CURRENT_NODE_VERSION || 'latest' }}
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: javascript-typescript
queries: security-and-quality
source-root: cli
- name: Setup Node.js environment ${{ env.CURRENT_NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.CURRENT_NODE_VERSION }}
cache: 'npm'
cache-dependency-path: |
framework/package-lock.json
documentation-website/package-lock.json
history-microservice/package-lock.json
history-website/package-lock.json
cli/package-lock.json
package-lock.json
- run: cd cli && npm ci
- run: cd cli && npm run language
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:javascript-typescript"
47 changes: 47 additions & 0 deletions .github/workflows/cli.eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: cli ESLINT
on:
push:
branches:
- the-one
paths:
- 'cli/**.ts'
- 'cli/**.tsx'
- 'cli/**.js'
- 'cli/**.cjs'
- 'cli/**.json'
- 'cli/**.svelte'
- '.github/workflows/cli.eslint.yml'
pull_request:
branches:
- the-one
paths:
- 'cli/**.ts'
- 'cli/**.tsx'
- 'cli/**.js'
- 'cli/**.cjs'
- 'cli/**.json'
- 'cli/**.svelte'
- '.github/workflows/cli.eslint.yml'
env:
CURRENT_NODE_VERSION: ${{ vars.CURRENT_NODE_VERSION || 'latest' }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.CURRENT_NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.CURRENT_NODE_VERSION }}
cache: 'npm'
cache-dependency-path: |
framework/package-lock.json
documentation-website/package-lock.json
history-microservice/package-lock.json
history-website/package-lock.json
cli/package-lock.json
package-lock.json
- run: npm ci
- run: cd cli && npm ci
- run: cd cli && npm run language
- run: cd cli && npm run lint
46 changes: 46 additions & 0 deletions .github/workflows/cli.fta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: cli FTA
on:
push:
branches:
- the-one
paths:
- 'cli/**.ts'
- 'cli/**.tsx'
- 'cli/**.js'
- 'cli/**.cjs'
- 'cli/**.json'
- 'cli/**.svelte'
- '.github/workflows/cli.fta.yml'
pull_request:
branches:
- the-one
paths:
- 'cli/**.ts'
- 'cli/**.tsx'
- 'cli/**.js'
- 'cli/**.cjs'
- 'cli/**.json'
- 'cli/**.svelte'
- '.github/workflows/cli.fta.yml'
env:
CURRENT_NODE_VERSION: ${{ vars.CURRENT_NODE_VERSION || 'latest' }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.CURRENT_NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.CURRENT_NODE_VERSION }}
cache: 'npm'
cache-dependency-path: |
framework/package-lock.json
documentation-website/package-lock.json
history-microservice/package-lock.json
history-website/package-lock.json
cli/package-lock.json
package-lock.json
- run: npm ci
- run: cd cli && npm ci && npm run language
- run: npm run fta -- cli || true
47 changes: 47 additions & 0 deletions .github/workflows/cli.knip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: cli Knip
on:
push:
branches:
- the-one
paths:
- 'cli/**.ts'
- 'cli/**.tsx'
- 'cli/**.js'
- 'cli/**.cjs'
- 'cli/**.json'
- 'cli/**.svelte'
- '.github/workflows/cli.knip.yml'
pull_request:
branches:
- the-one
paths:
- 'cli/**.ts'
- 'cli/**.tsx'
- 'cli/**.js'
- 'cli/**.cjs'
- 'cli/**.json'
- 'cli/**.svelte'
- '.github/workflows/cli.knip.yml'
env:
CURRENT_NODE_VERSION: ${{ vars.CURRENT_NODE_VERSION || 'latest' }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.CURRENT_NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.CURRENT_NODE_VERSION }}
cache: 'npm'
cache-dependency-path: |
framework/package-lock.json
documentation-website/package-lock.json
history-microservice/package-lock.json
history-website/package-lock.json
cli/package-lock.json
package-lock.json
- run: npm ci
- run: cd cli && npm ci
- run: cd cli && npm run language
- run: cd cli && npm run knip
35 changes: 35 additions & 0 deletions .github/workflows/cli.language-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: cli language lint
on:
push:
branches:
- the-one
paths:
- 'cli/language/*.yml'
- '.github/workflows/cli.language-lint.yml'
pull_request:
branches:
- the-one
paths:
- 'cli/language/*.yml'
- '.github/workflows/cli.language-lint.yml'
env:
CURRENT_NODE_VERSION: ${{ vars.CURRENT_NODE_VERSION || 'latest' }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.CURRENT_NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.CURRENT_NODE_VERSION }}
cache: 'npm'
cache-dependency-path: |
framework/package-lock.json
documentation-website/package-lock.json
history-microservice/package-lock.json
history-website/package-lock.json
cli/package-lock.json
package-lock.json
- run: npm ci
- run: npm run check-language -- cli
35 changes: 35 additions & 0 deletions .github/workflows/cli.license-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: cli license lint
on:
push:
branches:
- the-one
paths:
- 'cli/package-lock.json'
- '.github/workflows/cli.license-check.yml'
pull_request:
branches:
- the-one
paths:
- 'cli/package-lock.json'
- '.github/workflows/cli.license-check.yml'
env:
CURRENT_NODE_VERSION: ${{ vars.CURRENT_NODE_VERSION || 'latest' }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.CURRENT_NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.CURRENT_NODE_VERSION }}
cache: 'npm'
cache-dependency-path: |
framework/package-lock.json
documentation-website/package-lock.json
history-microservice/package-lock.json
history-website/package-lock.json
cli/package-lock.json
package-lock.json
- run: cd cli && npm ci
- run: cd cli && npx license-checker -- --production --onlyAllow="MIT;ISC;Apache-2.0;BSD-2-Clause;BSD-3-Clause;Python-2.0;LGPL-2.1;GPL-2.0;BlueOak-1.0.0;CC0-1.0;0BSD;WTFPL;Unlicense"
37 changes: 37 additions & 0 deletions .github/workflows/cli.mdlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: MARKDOWN-LINT
on:
push:
branches:
- the-one
paths:
- 'cli/**.md'
- 'cli/package-lock.json'
- '.github/workflows/cli.mdlint.yml'
pull_request:
branches:
- the-one
paths:
- 'cli/**.md'
- 'cli/package-lock.json'
- '.github/workflows/cli.mdlint.yml'
env:
CURRENT_NODE_VERSION: ${{ vars.CURRENT_NODE_VERSION || 'latest' }}
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ env.CURRENT_NODE_VERSION }}
uses: actions/setup-node@v4
with:
node-version: ${{ env.CURRENT_NODE_VERSION }}
cache: 'npm'
cache-dependency-path: |
framework/package-lock.json
documentation-website/package-lock.json
history-microservice/package-lock.json
history-website/package-lock.json
cli/package-lock.json
package-lock.json
- run: cd cli && npm ci
- run: cd cli && npm run lint-md
Loading

0 comments on commit f90c399

Please sign in to comment.