Skip to content

Commit

Permalink
Merge pull request #865 from Sitecore/project-restructure
Browse files Browse the repository at this point in the history
Project restructure
  • Loading branch information
markvanaalst authored Sep 12, 2024
2 parents 394c133 + 214c828 commit cf34c6f
Show file tree
Hide file tree
Showing 2,356 changed files with 60,464 additions and 67,392 deletions.
10 changes: 0 additions & 10 deletions .eslintrc.js

This file was deleted.

24 changes: 24 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"extends": ["next", "prettier", "next/core-web-vitals", "eslint:recommended", "plugin:@next/next/recommended"],
"globals": {
"React": "readonly",
"JSX": true
},
"env": {
"node": true,
"browser": true
},
"plugins": ["only-warn", "jest", "react"],
"rules": {
"react-hooks/rules-of-hooks": "off",
"react/prop-types": "off",
"no-unused-vars": "off"
//"import/no-unused-modules": [1, { "unusedExports": true }]
},
"settings": {},
"overrides": [
{
"files": ["*.stories.@(ts|tsx|js|jsx|mjs|cjs)"]
}
]
}
41 changes: 20 additions & 21 deletions .github/workflows/check-devportal-links.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
name: Developer Portal Links Checker
on:
workflow_dispatch:
# runs every monday at 9 am
# schedule:
# - cron: "0 9 * * 1"

jobs:
devportal-md-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@a996638015fbc9ef96beef1a41bbad7df8e06154
# checks all markdown files from /docs including all subfolders
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: './.github/workflows/mlc-devportal.config.json'
folder-path: './apps/devportal/data/markdown/partials, ./apps/devportal/data/markdown/pages/commerce, ./apps/devportal/data/markdown/pages/content-management, ./apps/devportal/data/markdown/pages/contribute, ./apps/devportal/data/markdown/pages/customer-data-management, ./apps/devportal/data/markdown/pages/dam-and-content-operations, ./apps/devportal/data/markdown/pages/devops, ./apps/devportal/data/markdown/pages/integrations, ./apps/devportal/data/markdown/pages/learn, ./apps/devportal/data/markdown/pages/marketing-automation, ./apps/devportal/data/markdown/pages/newsletter, ./apps/devportal/data/markdown/pages/personalization-testing, ./apps/devportal/data/markdown/pages/trials'
file-path: './apps/devportal/data/markdown/pages/_newsletter.md, ./apps/devportal/data/markdown/pages/_search.md, ./apps/devportal/data/markdown/pages/community.md, ./apps/devportal/data/markdown/pages/discover.md, ./apps/devportal/data/markdown/pages/docs.md, ./apps/devportal/data/markdown/pages/help.md, ./apps/devportal/data/markdown/pages/home.md, ./apps/devportal/data/markdown/pages/learn.md'

name: Developer Portal Links Checker
on:
workflow_dispatch:
# runs every monday at 9 am
# schedule:
# - cron: "0 9 * * 1"

jobs:
devportal-md-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@a996638015fbc9ef96beef1a41bbad7df8e06154
# checks all markdown files from /docs including all subfolders
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: './.github/workflows/mlc-devportal.config.json'
folder-path: './apps/devportal/data/markdown/partials, ./apps/devportal/data/markdown/pages/commerce, ./apps/devportal/data/markdown/pages/content-management, ./apps/devportal/data/markdown/pages/contribute, ./apps/devportal/data/markdown/pages/customer-data-management, ./apps/devportal/data/markdown/pages/dam-and-content-operations, ./apps/devportal/data/markdown/pages/devops, ./apps/devportal/data/markdown/pages/integrations, ./apps/devportal/data/markdown/pages/learn, ./apps/devportal/data/markdown/pages/marketing-automation, ./apps/devportal/data/markdown/pages/newsletter, ./apps/devportal/data/markdown/pages/personalization-testing, ./apps/devportal/data/markdown/pages/trials'
file-path: './apps/devportal/data/markdown/pages/_newsletter.md, ./apps/devportal/data/markdown/pages/_search.md, ./apps/devportal/data/markdown/pages/community.md, ./apps/devportal/data/markdown/pages/discover.md, ./apps/devportal/data/markdown/pages/docs.md, ./apps/devportal/data/markdown/pages/help.md, ./apps/devportal/data/markdown/pages/home.md, ./apps/devportal/data/markdown/pages/learn.md'
39 changes: 19 additions & 20 deletions .github/workflows/check-downloads-links.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
name: Downloads Links Checker
on:
workflow_dispatch:
# runs every monday at 9 am
# schedule:
# - cron: "0 9 * * 1"

jobs:
downloads-md-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@a996638015fbc9ef96beef1a41bbad7df8e06154
# checks all markdown files from /docs including all subfolders
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: './.github/workflows/mlc-downloads.config.json'
folder-path: './apps/devportal/data/markdown/pages/downloads/'

name: Downloads Links Checker
on:
workflow_dispatch:
# runs every monday at 9 am
# schedule:
# - cron: "0 9 * * 1"

jobs:
downloads-md-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@a996638015fbc9ef96beef1a41bbad7df8e06154
# checks all markdown files from /docs including all subfolders
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: './.github/workflows/mlc-downloads.config.json'
folder-path: './apps/devportal/data/markdown/pages/downloads/'
64 changes: 32 additions & 32 deletions .github/workflows/mlc-devportal.config.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
{
"replacementPatterns": [
{
"pattern": "^/",
"replacement": "https://developers.sitecore.com/"
},
{
"pattern": "^https://kb.sitecore.net/articles/",
"replacement": "https://support.sitecore.com/kb?id=kb_article_view&sysparm_article=KB0"
}
],
"ignorePatterns": [
{
"pattern": "^#"
},
{
"pattern": "^http://localhost:3000"
}
],
"httpHeaders": [
{
"urls": ["https://github.com/", "https://guides.github.com/", "https://help.github.com/", "https://docs.github.com/", "kb.sitecore.net"],
"headers": {
"Accept-Encoding": "zstd, br, gzip, deflate"
}
}
],
"retryOn429": true,
"retryCount": 5,
"fallbackRetryDelay": "30s",
"aliveStatusCodes": [200, 206, 403]
}
{
"replacementPatterns": [
{
"pattern": "^/",
"replacement": "https://developers.sitecore.com/"
},
{
"pattern": "^https://kb.sitecore.net/articles/",
"replacement": "https://support.sitecore.com/kb?id=kb_article_view&sysparm_article=KB0"
}
],
"ignorePatterns": [
{
"pattern": "^#"
},
{
"pattern": "^http://localhost:3000"
}
],
"httpHeaders": [
{
"urls": ["https://github.com/", "https://guides.github.com/", "https://help.github.com/", "https://docs.github.com/", "kb.sitecore.net"],
"headers": {
"Accept-Encoding": "zstd, br, gzip, deflate"
}
}
],
"retryOn429": true,
"retryCount": 5,
"fallbackRetryDelay": "30s",
"aliveStatusCodes": [200, 206, 403]
}
58 changes: 29 additions & 29 deletions .github/workflows/mlc-downloads.config.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
{
"replacementPatterns": [
{
"pattern": "^/",
"replacement": "https://developers.sitecore.com/"
},
{
"pattern": "^https://kb.sitecore.net/articles/",
"replacement": "https://support.sitecore.com/kb?id=kb_article_view&sysparm_article=KB0"
}
],
"ignorePatterns": [
{
"pattern": "^#"
}
],
"httpHeaders": [
{
"urls": ["https://github.com/", "https://guides.github.com/", "https://help.github.com/", "https://docs.github.com/", "kb.sitecore.net"],
"headers": {
"Accept-Encoding": "zstd, br, gzip, deflate"
}
}
],
"retryOn429": true,
"retryCount": 5,
"fallbackRetryDelay": "30s",
"aliveStatusCodes": [200, 206, 403]
}
{
"replacementPatterns": [
{
"pattern": "^/",
"replacement": "https://developers.sitecore.com/"
},
{
"pattern": "^https://kb.sitecore.net/articles/",
"replacement": "https://support.sitecore.com/kb?id=kb_article_view&sysparm_article=KB0"
}
],
"ignorePatterns": [
{
"pattern": "^#"
}
],
"httpHeaders": [
{
"urls": ["https://github.com/", "https://guides.github.com/", "https://help.github.com/", "https://docs.github.com/", "kb.sitecore.net"],
"headers": {
"Accept-Encoding": "zstd, br, gzip, deflate"
}
}
],
"retryOn429": true,
"retryCount": 5,
"fallbackRetryDelay": "30s",
"aliveStatusCodes": [200, 206, 403]
}
81 changes: 43 additions & 38 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,41 +1,46 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# Dependencies
node_modules
.pnp
.pnp.js

# Local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# Testing
coverage

# Turbo
.turbo

# Vercel
.vercel

# Build Outputs
.next/
out/
build
dist


# Debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Misc
.DS_Store
*.pem
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# Dependencies
node_modules
.pnp
.pnp.js

# Local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# Testing
coverage

# Turbo
.turbo

# Vercel
.vercel

# Build Outputs
.next/
out/
build
dist


# Debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Misc
.DS_Store
*.pem

.vercel
.env*.local

# generated postbuild
robots.txt
sitemap*.xml
node_modules
File renamed without changes.
4 changes: 4 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.ts?(x)": ["prettier -w --config .prettierrc"],
"*.js?(x)": ["prettier -w --config .prettierrc"]
}
3 changes: 1 addition & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ yarn-error.log*
.env.production.local

# vercel
.vercel
.turbo
.vercel
File renamed without changes.
Loading

0 comments on commit cf34c6f

Please sign in to comment.