Skip to content

Commit

Permalink
Feature/extracting lumberjack core (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoVazquez authored Nov 12, 2023
1 parent 328bbfb commit 4891e3c
Show file tree
Hide file tree
Showing 331 changed files with 25,731 additions and 26,389 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules

vite.config.ts
25 changes: 23 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"enforceBuildableLibDependency": true,
"allowCircularSelfDependency": true,
"allow": [],
"buildTargets": ["build", "build-package"],
"depConstraints": [
{
"sourceTag": "scope:public",
Expand All @@ -37,6 +38,26 @@
{
"sourceTag": "type:e2e",
"onlyDependOnLibsWithTags": ["type:app"]
},
{
"sourceTag": "technology:angular",
"onlyDependOnLibsWithTags": ["technology:angular", "technology:javascript"]
},
{
"sourceTag": "technology:qwik",
"onlyDependOnLibsWithTags": ["technology:qwik", "technology:javascript"]
},
{
"sourceTag": "technology:solid",
"onlyDependOnLibsWithTags": ["technology:solid", "technology:javascript"]
},
{
"sourceTag": "technology:react",
"onlyDependOnLibsWithTags": ["technology:react", "technology:javascript"]
},
{
"sourceTag": "technology:javascript",
"onlyDependOnLibsWithTags": ["technology:javascript"]
}
]
}
Expand Down Expand Up @@ -87,12 +108,12 @@
"group-ordering": [
{
"name": "project root",
"match": "^@(?!(ngworker|internal)).*|^[a-zA-Z].*",
"match": "^@(?!(naxodev|internal)).*|^[a-zA-Z].*",
"order": 20
},
{
"name": "internal imports",
"match": "^@(ngworker|internal).*",
"match": "^@(naxodev|internal).*",
"order": 30
},
{ "name": "parent directories", "match": "^\\.\\.", "order": 40 },
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,21 @@ jobs:
# in the parallel-commands-on-agents command list
# The --agent-count parameter must match the number-of-agents parameter
init-commands: |
yarn nx-cloud start-ci-run --stop-agents-after="e2e" --agent-count=4
pnpm nx-cloud start-ci-run --stop-agents-after="e2e" --agent-count=4
# Commands run in parallel on this DTE coordinator
parallel-commands: |
yarn nx-cloud record -- yarn nx format:check
pnpm nx-cloud record -- pnpm nx format:check
# Commands distributed between DTE agents
# Distribution strategy for 2 vCPUs per hosted runner (GitHub Free):
# lint: 2 tasks assigned at a time, 1 task per vCPU
# test: 1 task assigned at a time with 2 parallel processes, 1 process per vCPU
# build: 2 tasks assigned at a time, 1 task per vCPU
# e2e: 1 task assigned at a time, 1 task total
parallel-commands-on-agents: |
yarn nx run-many --all --target=lint --configuration=report --parallel=2 --max-warnings=0
yarn nx run-many --all --target=test --configuration=coverage --parallel=1 --max-workers=2
yarn nx affected --target=build --parallel=2
yarn nx affected --target=e2e --parallel=1
pnpm nx run-many --all --target=lint --configuration=report --parallel=2 --max-warnings=0
pnpm nx run-many --all --target=test --configuration=coverage --parallel=1 --max-workers=2
pnpm nx affected --target=build --parallel=2
pnpm nx affected --target=e2e --parallel=1
# Commands run sequentially on this DTE coordinator after parallel jobs
# final-commands: |

Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
uses: ./.github/actions/setup
# Uses the cache generated in the distributed step
- name: Build docs
run: yarn nx build docs-lumberjack-docs-app
run: pnpm nx build docs-lumberjack-docs-app
- name: Set up GitHub Pages
uses: actions/configure-pages@v2
- name: Upload docs to GitHub Pages
Expand Down Expand Up @@ -138,13 +138,13 @@ jobs:
uses: ./.github/actions/setup
# Uses the cache generated in the distributed step (Needed for the sonar eslint reports).
- name: Lint with reports
run: yarn nx run-many --all --target=lint --configuration=report --parallel=2 --max-warnings=0
run: pnpm nx run-many --all --target=lint --configuration=report --parallel=2 --max-warnings=0
# Uses the cache generated in the distributed step (Needed for the sonar jest coverage reports).
- name: Tests with coverage
run: yarn nx run-many --all --target=test --configuration=coverage --parallel=1 --max-workers=2
run: pnpm nx run-many --all --target=test --configuration=coverage --parallel=1 --max-workers=2

- name: Configure Sonar report paths
run: yarn configure-sonar-report-paths
run: pnpm configure-sonar-report-paths

- name: SonarCloud Scan
uses: sonarsource/[email protected]
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ migrations.json
# Generated Docusaurus files
.docusaurus/
.cache-loader/

.angular
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
/reports
/.angular/
.docusaurus/
**/.lib.swcrc

# Generated files
packages/**/CHANGELOG.md

**/CHANGELOG.md
153 changes: 0 additions & 153 deletions CONTRIBUTING.md

This file was deleted.

Loading

0 comments on commit 4891e3c

Please sign in to comment.