Skip to content

Commit 5b8a110

Browse files
committed
Initial commit
0 parents  commit 5b8a110

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+7291
-0
lines changed

.eslintrc.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
env:
2+
browser: true
3+
es2021: true
4+
node: true
5+
extends:
6+
- eslint:recommended
7+
- plugin:@typescript-eslint/recommended
8+
- plugin:prettier/recommended
9+
overrides: []
10+
parser: "@typescript-eslint/parser"
11+
parserOptions:
12+
ecmaVersion: latest
13+
sourceType: module
14+
plugins:
15+
- "@typescript-eslint"
16+
rules:
17+
linebreak-style:
18+
- error
19+
- unix
20+
quotes:
21+
- error
22+
- double
23+
- avoidEscape: true
24+
semi:
25+
- error
26+
- always
27+
"@typescript-eslint/no-unused-vars":
28+
- error
29+
- varsIgnorePattern: "[iI]gnored"
30+
argsIgnorePattern: "[iI]gnored"
31+
caughtErrorsIgnorePattern: "[iI]gnored"

.github/dependabot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"
12+
- package-ecosystem: "github-actions"
13+
directory: "/"
14+
schedule:
15+
interval: "weekly"

.github/workflows/npm-publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish Node.js Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
permissions:
8+
id-token: write
9+
contents: read
10+
11+
jobs:
12+
publish-npm:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v5
16+
- uses: actions/setup-node@v6
17+
with:
18+
node-version: 24
19+
registry-url: https://registry.npmjs.org/
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v4
22+
- run: pnpm i
23+
- run: pnpm --filter ./packages/** test
24+
- run: pnpm --filter ./packages/** build
25+
- run: pnpm version from-git --no-git-tag-version
26+
working-directory: packages/react-ghostmaker
27+
- run: cp README.md LICENSE packages/react-ghostmaker/
28+
working-directory: packages/react-ghostmaker
29+
- run: pnpm publish --no-git-checks
30+
working-directory: packages/react-ghostmaker

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Compilation & Unit Tests
2+
on:
3+
push:
4+
branches: ["*"]
5+
pull_request:
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v5
12+
- uses: actions/setup-node@v6
13+
with:
14+
node-version: 22
15+
- name: Install pnpm
16+
uses: pnpm/action-setup@v4
17+
- run: pnpm i
18+
- run: pnpm --filter ./packages/** test

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Operating Systems
2+
.DS_Store
3+
Thumbs.db
4+
5+
# Yarn 2 Zero-Install (https://yarnpkg.com/features/zero-installs)
6+
.yarn/*
7+
!.yarn/cache
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/sdks
12+
!.yarn/versions
13+
14+
# Dev
15+
dist/
16+
dist-cjs/
17+
coverage/
18+
*.tsbuildinfo
19+
node_modules
20+
21+
# Other
22+
*.log
23+
.idea/workspace.xml
24+
.idea/runConfigurations
25+
.eslintcache
26+
.idea/php.xml
27+
.idea/GitLink.xml

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.test-types.*

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.idea/
2+
dist/
3+
dist-cjs/
4+
packages/mittwald/src/generated/**/*

.prettierrc.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"arrowParens": "always",
3+
"bracketSpacing": true,
4+
"htmlWhitespaceSensitivity": "css",
5+
"jsxSingleQuote": false,
6+
"overrides": [
7+
{
8+
"files": ["*.json", "*.yaml", "*.yml"],
9+
"options": {
10+
"tabWidth": 2
11+
}
12+
},
13+
{
14+
"files": ["apps/docs/src/content/**/examples/*.tsx"],
15+
"options": {
16+
"printWidth": 60
17+
}
18+
}
19+
],
20+
"plugins": [
21+
"prettier-plugin-sort-json",
22+
"prettier-plugin-jsdoc",
23+
"prettier-plugin-pkgsort"
24+
],
25+
"printWidth": 80,
26+
"proseWrap": "always",
27+
"quoteProps": "as-needed",
28+
"semi": true,
29+
"singleQuote": false,
30+
"tabWidth": 2,
31+
"trailingComma": "all"
32+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Mittwald CM Service GmbH & Co. KG and contributors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)