Skip to content

Commit

Permalink
feature: add cms layering to utils
Browse files Browse the repository at this point in the history
  • Loading branch information
julrich committed Aug 20, 2024
1 parent 92039aa commit 46e0114
Show file tree
Hide file tree
Showing 17 changed files with 538 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .vscode/project.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
"name": "examples/hygraph",
"path": "../examples/hygraph"
},
{
"name": "examples/layering",
"path": "../examples/layering"
},
{
"name": "examples/staticcms",
"path": "../examples/staticcms"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@kickstartds/jsonschema-utils",
"comment": "add cms layering",
"type": "minor"
}
],
"packageName": "@kickstartds/jsonschema-utils"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@kickstartds/layering-example",
"comment": "first commit",
"type": "patch"
}
],
"packageName": "@kickstartds/layering-example"
}
52 changes: 52 additions & 0 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 43 additions & 0 deletions examples/layering/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('@rushstack/eslint-config/patch/modern-module-resolution');

module.exports = {
extends: [
'@rushstack/eslint-config/profile/node-trusted-tool',
'plugin:import/recommended',
'plugin:import/typescript'
],
parserOptions: { tsconfigRootDir: __dirname },
settings: {
'import/resolver': {
typescript: true,
node: true
},
'import/ignore': ['node_modules/json-schema-typed/draft-07\\.js$']
},
plugins: ['json-files'],
rules: {
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': [
'warn', // or "error"
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_'
}
],
'import/namespace': 'off',
'import/order': [
'error',
{
groups: ['builtin', 'external', 'parent', 'sibling', 'index'],
'newlines-between': 'always',
alphabetize: {
order: 'asc',
caseInsensitive: true
}
}
],
'json-files/sort-package-json': 'error'
}
};
3 changes: 3 additions & 0 deletions examples/layering/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
lib
temp
dist
14 changes: 14 additions & 0 deletions examples/layering/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug Example Dereference",
"program": "${workspaceFolder}/src/index.ts",
"runtimeArgs": ["--experimental-vm-modules"],
"skipFiles": ["<node_internals>/**"],
"resolveSourceMapLocations": ["**", "!**/node_modules/**"]
}
]
}
13 changes: 13 additions & 0 deletions examples/layering/COPYRIGHT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Licensing Information

Copyright 2024 Jonas Ulrich, kickstartDS by ruhmesmeile GmbH [[email protected]].

Copyrights in this project are retained by contributors. No copyright assignment
is required to contribute to this project.

Except as otherwise noted (below and/or in individual files), this project is
licensed under the Apache License, Version 2.0
([`LICENSE-APACHE`](LICENSE-APACHE) or
http://www.apache.org/licenses/LICENSE-2.0) or the MIT license,
([`LICENSE-MIT`](LICENSE-MIT) or http://opensource.org/licenses/MIT), at your
option.
Loading

0 comments on commit 46e0114

Please sign in to comment.