Skip to content

Commit

Permalink
Merge branch 'other-type-system'
Browse files Browse the repository at this point in the history
  • Loading branch information
TungstnBallon committed May 29, 2024
2 parents 0618423 + e7dbc05 commit 6f56d1d
Show file tree
Hide file tree
Showing 1,816 changed files with 122,353 additions and 1,690 deletions.
6 changes: 6 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# SPDX-FileCopyrightText: 2023 Friedrich-Alexander-Universitat Erlangen-Nurnberg
#
# SPDX-License-Identifier: AGPL-3.0-only

# Infer targets automatically? https://nx.dev/concepts/inferred-tasks
NX_ADD_PLUGINS=false
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-FileCopyrightText: 2023 Friedrich-Alexander-Universitat Erlangen-Nurnberg
#
# SPDX-License-Identifier: AGPL-3.0-only

node_modules
75 changes: 75 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"root": true,
"extends": "@jvalue/eslint-config-jvalue",
"ignorePatterns": ["**/*"],
"plugins": ["@nx"],
"overrides": [
{
"files": ["*.ts", ".tsx"],
"rules": {
"import/no-unresolved": "off"
}
},
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
],
"@typescript-eslint/consistent-type-imports": [
"warn",
{
"fixStyle": "inline-type-imports"
}
]
}
},
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"plugins": ["unicorn"],
"rules": {
"unicorn/prefer-node-protocol": "warn",
"unicorn/import-style": "warn",
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "node:assert",
"message": "Please use the library `assert` instead to keep browser compatibility. You might need to disable rule `unicorn/prefer-node-protocol` to do so."
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
},
{
"files": ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
"plugins": ["vitest"],
"rules": {
// you should turn the original rule off *only* for test files
"@typescript-eslint/unbound-method": "off"
}
}
]
}
3 changes: 3 additions & 0 deletions .eslintrc.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2023 Friedrich-Alexander-Universitat Erlangen-Nurnberg

SPDX-License-Identifier: AGPL-3.0-only
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-FileCopyrightText: 2023 Friedrich-Alexander-Universitat Erlangen-Nurnberg
#
# SPDX-License-Identifier: AGPL-3.0-only

* text=auto eol=lf
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: Bug
about: Description of the bug
title: '[BUG] <name>'
labels: bug
assignees: ''

---

## Steps to reproduce
1.

## Description
- Expected:
- Actual:
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2023 Friedrich-Alexander-Universitat Erlangen-Nurnberg

SPDX-License-Identifier: CC-BY-4.0
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Feature
about: Use this template for new features.
title: "[FEATURE] <title>"
labels: enhancement, needs triage
assignees: ''
---

<!--
Note: Please search to see if a similar issue already exists.
-->

## User Story
1. As a {user/persona}
2. I want {to perform this action}
3. So that {I can accomplish this goal}

## User Acceptance Criteria
- [ ] {acceptance criteria 1}

## Examples
<!-- example if present -->

## Notes
<!-- further notes if present -->

## Definitions of Done
- [ ] A PR has been opened and accepted
- [ ] All user acceptance criteria are met
- [ ] All tests are passing
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.md.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2023 Friedrich-Alexander-Universitat Erlangen-Nurnberg

SPDX-License-Identifier: CC-BY-4.0
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/rfc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: RFC
about: Use this template to track RFCs that should be created.
title: "[RFC] <title>"
labels: rfc
assignees: ''
---

<!--
Note: Please search to see if a similar rfc already exists.
-->

## Short Description
<!-- Short description, details follow in the RFC -->

## Definition of Done
- [ ] The RFC document is created following the existing pattern
- [ ] A pull request with the RFC document is opened
- [ ] The pull request passed peer review and is accepted
- [ ] An issue is opened that tracks the implementation of the RFC

**Note:** The details of the RFC will be discussed in the PR, not in this issue!
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/rfc.md.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2023 Friedrich-Alexander-Universitat Erlangen-Nurnberg

SPDX-License-Identifier: CC-BY-4.0
29 changes: 29 additions & 0 deletions .github/workflows/check-paths-for-windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# SPDX-FileCopyrightText: 2023 Friedrich-Alexander-Universitat Erlangen-Nurnberg
#
# SPDX-License-Identifier: AGPL-3.0-only

name: Check paths for windows

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
check-paths-for-windows:
name: Check paths for Windows
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: 'lts/*'

- name: Check paths for Windows
run: node ./tools/scripts/check-for-invalid-windows-paths.mjs
54 changes: 54 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# SPDX-FileCopyrightText: 2023 Friedrich-Alexander-Universitat Erlangen-Nurnberg
#
# SPDX-License-Identifier: AGPL-3.0-only

name: CI

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
ci:
name: CI
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: REUSE Compliance Check
uses: fsfe/reuse-action@v1

- uses: actions/setup-node@v3
with:
node-version: 'lts/*'

- name: Install dependencies
run: npm ci

- uses: nrwl/nx-set-shas@v3

- name: Langium generate
run: npm run generate

- name: Build
run: npx nx affected --target=build --configuration=prod --parallel=3

- name: Lint
run: npx nx affected --target=lint --parallel=3 --maxWarnings=0

- name: Test
run: npx nx affected --target=test --parallel=3 --base=remotes/origin/main --head=HEAD --ci

# Ensure this works for future release publishing
- name: Publish Dry-Run
run: npx nx affected --target=pre-publish --parallel=3 --base=remotes/origin/main --head=HEAD --ci

# Ensure this works for future release publishing
- name: Pack VSCode Extension
run: npx nx run vs-code-extension:pack:prod
41 changes: 41 additions & 0 deletions .github/workflows/cla.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# SPDX-FileCopyrightText: 2023 Friedrich-Alexander-Universitat Erlangen-Nurnberg
#
# SPDX-License-Identifier: AGPL-3.0-only

name: 'CLA Assistant'
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened, closed, synchronize]

jobs:
CLAAssistant:
if: github.event.repository.full_name == 'jvalue/jayvee'
runs-on: ubuntu-latest
steps:
- name: 'CLA Assistant'
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
# Beta Release
uses: contributor-assistant/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# the below token should have repo scope and must be manually added by you in the repository's secret
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
with:
path-to-signatures: 'signatures/version1/cla.json'
path-to-document: 'https://gist.github.com/profriehle/44d5ed0f2fbaac043eef038c8ba5cbab' # e.g. a CLA or a DCO document
# branch should not be protected
branch: 'main'
allowlist: dependabot[bot]

# the followings are the optional inputs - If the optional inputs are not given, then default values will be taken
remote-organization-name: 'jvalue' # enter the remote organization name where the signatures should be stored (Default is storing the signatures in the same repository)
remote-repository-name: 'cla' # enter the remote repository name where the signatures should be stored (Default is storing the signatures in the same repository)
#create-file-commit-message: 'For example: Creating file for storing CLA Signatures'
#signed-commit-message: 'For example: $contributorName has signed the CLA in #$pullRequestNo'
#custom-notsigned-prcomment: 'pull request comment with Introductory message to ask new contributors to sign'
#custom-pr-sign-comment: 'The signature to be committed in order to sign the CLA'
#custom-allsigned-prcomment: 'pull request comment when all contributors has signed, defaults to **CLA Assistant Lite bot** All Contributors have signed the CLA.'
#lock-pullrequest-aftermerge: false - if you don't want this bot to automatically lock the pull request after merging (default - true)
#use-dco-flag: true - If you are using DCO instead of CLA
60 changes: 60 additions & 0 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# SPDX-FileCopyrightText: 2023 Friedrich-Alexander-Universitat Erlangen-Nurnberg
#
# SPDX-License-Identifier: AGPL-3.0-only

name: Deploy Docs to GitHub Pages

on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: read
actions: read # for nrwl/nx-set-shas@v3
pages: write
id-token: write

# Avoid concurrent deployments
concurrency:
group: 'pages'
cancel-in-progress: true

jobs:
deploy:
name: Deploy docs
runs-on: ubuntu-latest

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-node@v3
with:
node-version: 'lts/*'

- name: Install dependencies
run: npm ci

- uses: nrwl/nx-set-shas@v3

- name: Build docs
run: npx nx build docs

- name: Setup GitHub Pages
uses: actions/configure-pages@v2

- name: Upload artifact to GitHub Pages
uses: actions/upload-pages-artifact@v1
with:
path: './dist/apps/docs'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
Loading

0 comments on commit 6f56d1d

Please sign in to comment.