diff --git a/.eslintignore b/.eslintignore index 3c3629e64..79cb7074e 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,3 @@ node_modules + +vite.config.ts \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json index eca28ddb1..9389d09e6 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -17,6 +17,7 @@ "enforceBuildableLibDependency": true, "allowCircularSelfDependency": true, "allow": [], + "buildTargets": ["build", "build-package"], "depConstraints": [ { "sourceTag": "scope:public", @@ -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"] } ] } @@ -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 }, diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be6c9f194..e8070ab3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,10 +45,10 @@ 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 @@ -56,10 +56,10 @@ jobs: # 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: | @@ -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 @@ -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/sonarcloud-github-action@v2.0.0 diff --git a/.gitignore b/.gitignore index 7d14c5175..faaa050c1 100644 --- a/.gitignore +++ b/.gitignore @@ -47,3 +47,5 @@ migrations.json # Generated Docusaurus files .docusaurus/ .cache-loader/ + +.angular diff --git a/.prettierignore b/.prettierignore index e36db7289..6e328c71b 100644 --- a/.prettierignore +++ b/.prettierignore @@ -5,6 +5,9 @@ /reports /.angular/ .docusaurus/ +**/.lib.swcrc # Generated files packages/**/CHANGELOG.md + +**/CHANGELOG.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index a4522703c..000000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,153 +0,0 @@ -# Contributing to Lumberjack - -πŸ™ We would ❀️ for you to contribute to Lumberjack and help make it even better than it is today! - -## Developing - -Start by installing all dependencies: - -```bash -yarn -``` - -Run the tests: - -```bash -yarn test -yarn e2e -``` - -Run the playground app: - -```bash -yarn start -``` - -## Building - -```bash -yarn build -``` - -## Coding Rules - -To ensure consistency throughout the source code, keep these rules in mind as you are working: - -- All features or bug fixes **must be tested** by one or more specs (unit-tests). -- All public API methods **must be documented**. - -## Commit Message Guidelines - -We have very precise rules over how our git commit messages can be formatted. This leads to **more -readable messages** that are easy to follow when looking through the **project history**. But also, -we use the git commit messages to **generate the Lumberjack changelog**. - -### Commit Message Format - -Each commit message consists of a **header**, a **body** and a **footer**. The header has a special -format that includes a **type**, a **scope** and a **subject**: - -``` -(): - - - -