Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"extends": [
"@commitlint/config-conventional"
],
"//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"."
]
}
16 changes: 2 additions & 14 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"cli",
"config-conventional",
"mountainpass",
"cool-bits-for-projen",
"types",
"http-status-codes",
"jest",
Expand All @@ -30,18 +29,11 @@
"json-schema",
"npm-check-updates",
"prettier",
"projen",
"standard-version",
"ts-jest",
"ts-node",
"typescript",
"projenrc",
"docgen",
"unbump",
"lcov",
"cobertura",
"MarkMcCulloh",
"vscode-projen",
"dbaeumer",
"vscode-eslint",
"esbenp",
Expand Down Expand Up @@ -106,10 +98,7 @@
".npmignore",
".prettierignore",
".prettierrc.json",
".projen/deps.json",
".projen/files.json",
".projen/tasks.json",
".vscode/settings.json",
".vscode/settings.json",
"CODE_OF_CONDUCT.md",
"LICENSE",
"package.json",
Expand All @@ -125,6 +114,5 @@
"socio-economic"
]
}
],
"//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"."
]
}
5 changes: 1 addition & 4 deletions .dry-aged-deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@
"eslint-plugin-unicorn": "Major version upgrade; blocked by eslint 8.x constraint",
"http-status-codes": "Used only in tests; minor update with no security impact",
"husky": "Major version upgrade; requires migration to new config format",
"jest": "Pinned to ^27 by projen; upgrade requires projen and ts-jest migration",
"jest": "Pinned to ^27; upgrade requires ts-jest migration",
"jest-junit": "Major version upgrade; blocked by jest 27.x constraint",
"npm-check-updates": "Major version upgrade; used only for maintenance scripts",
"prettier": "Major version upgrade; may cause formatting changes across codebase",
"projen": "Pinned to ^0.58; upgrade may cause breaking changes to project config",
"ts-jest": "Pinned to jest 27.x; upgrade requires jest migration",
"ts-node": "Minor update; low priority with no security impact",
"typescript": "Major version upgrade; requires codebase compatibility verification"
}
}
4 changes: 0 additions & 4 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".
.commitlintrc.json
.cspell.json
.eslintignore
Expand All @@ -18,9 +17,6 @@
.npmignore
.prettierignore
.prettierrc.json
.projen/deps.json
.projen/files.json
.projen/tasks.json
.vscode/extensions.json
.vscode/settings.json
CODE_OF_CONDUCT.md
Expand Down
33 changes: 3 additions & 30 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,10 @@
},
"ignorePatterns": [
"*.js",
"!.projenrc.ts",
"*.d.ts",
"node_modules/",
"*.generated.ts",
"coverage",
"!.projenrc.ts",
"!projenrc/**/*.ts"
"coverage"
],
"rules": {
"prettier/prettier": [
Expand All @@ -65,10 +62,7 @@
{
"devDependencies": [
"**/test/**",
"**/build-tools/**",
"**/projenrc/**",
".projenrc.ts",
"projenrc/**/*.ts"
"**/build-tools/**"
],
"optionalDependencies": false,
"peerDependencies": true
Expand Down Expand Up @@ -172,24 +166,6 @@
"no-secrets/no-secrets": "error"
},
"overrides": [
{
"files": [
".projenrc.ts"
],
"rules": {
"@typescript-eslint/no-require-imports": "off",
"import/no-extraneous-dependencies": "off"
}
},
{
"files": [
".projenrc.js",
".projenrc.ts"
],
"rules": {
"unicorn/prefer-module": "off"
}
},
{
"files": [
"*.json",
Expand All @@ -211,10 +187,7 @@
".npmignore",
".prettierignore",
".prettierrc.json",
".projen/deps.json",
".projen/files.json",
".projen/tasks.json",
".vscode/settings.json",
".vscode/settings.json",
"LICENSE",
"package.json",
"tsconfig.dev.json",
Expand Down
34 changes: 1 addition & 33 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,34 +1,2 @@
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".

*.snap linguist-generated
/.commitlintrc.json linguist-generated
/.cspell.json linguist-generated
/.eslintignore linguist-generated
/.eslintrc-json.json linguist-generated
/.eslintrc.json linguist-generated
/.gitattributes linguist-generated
/.github/pull_request_template.md linguist-generated
/.github/workflows/auto-approve.yml linguist-generated
/.github/workflows/build.yml linguist-generated
/.github/workflows/pull-request-lint.yml linguist-generated
/.github/workflows/release.yml linguist-generated
/.github/workflows/upgrade-main.yml linguist-generated
/.gitignore linguist-generated
/.husky/commit-msg linguist-generated
/.husky/pre-commit linguist-generated
/.husky/pre-push linguist-generated
/.npmignore linguist-generated
/.prettierignore linguist-generated
/.prettierrc.json linguist-generated
/.projen/** linguist-generated
/.projen/deps.json linguist-generated
/.projen/files.json linguist-generated
/.projen/tasks.json linguist-generated
/.vscode/extensions.json linguist-generated
/.vscode/settings.json linguist-generated
/CODE_OF_CONDUCT.md linguist-generated
/LICENSE linguist-generated
/package.json linguist-generated
/tsconfig.dev.json linguist-generated
/tsconfig.json linguist-generated
/yarn.lock linguist-generated
/yarn.lock linguist-generated
2 changes: 0 additions & 2 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".

name: auto-approve
on:
pull_request_target:
Expand Down
54 changes: 2 additions & 52 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".

name: build
on:
pull_request: {}
Expand All @@ -8,9 +6,7 @@ jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
self_mutation_happened: ${{ steps.self_mutation.outputs.self_mutation_happened }}
contents: read
env:
CI: "true"
steps:
Expand All @@ -22,52 +18,6 @@ jobs:
- name: Install dependencies
run: yarn install --check-files
- name: build
run: npx projen build
run: npm run build
- name: Check for outdated dependencies
run: npx dry-aged-deps --check
- id: self_mutation
name: Find mutations
run: |-
git add .
git diff --staged --patch --exit-code > .repo.patch || echo "::set-output name=self_mutation_happened::true"
- if: steps.self_mutation.outputs.self_mutation_happened
name: Upload patch
uses: actions/upload-artifact@v4
with:
name: .repo.patch
path: .repo.patch
- name: Fail build on mutation
if: steps.self_mutation.outputs.self_mutation_happened
run: |-
echo "::error::Files were changed during build (see build log). If this was triggered from a fork, you will need to update your branch."
cat .repo.patch
exit 1
self-mutation:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
if: always() && needs.build.outputs.self_mutation_happened && !(github.event.pull_request.head.repo.full_name != github.repository)
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Download patch
uses: actions/download-artifact@v4
with:
name: .repo.patch
path: ${{ runner.temp }}
- name: Apply patch
run: '[ -s ${{ runner.temp }}/.repo.patch ] && git apply ${{ runner.temp }}/.repo.patch || echo "Empty patch. Skipping."'
- name: Set git identity
run: |-
git config user.name "github-actions"
git config user.email "github-actions@github.com"
- name: Push changes
run: |2-
git add .
git commit -s -m "chore: self mutation"
git push origin HEAD:${{ github.event.pull_request.head.ref }}
2 changes: 0 additions & 2 deletions .github/workflows/pull-request-lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".

name: pull-request-lint
on:
pull_request_target:
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".

name: release
on:
push:
Expand Down Expand Up @@ -27,10 +25,10 @@ jobs:
- name: Install dependencies
run: yarn install --check-files --frozen-lockfile
- name: release
run: npx projen release
run: npm run release
- name: Check for new commits
id: git_remote
run: echo ::set-output name=latest_commit::"$(git ls-remote origin -h ${{ github.ref }} | cut -f1)"
run: echo "latest_commit=$(git ls-remote origin -h ${{ github.ref }} | cut -f1)" >> $GITHUB_OUTPUT
- name: Upload artifact
if: ${{ steps.git_remote.outputs.latest_commit == github.sha }}
uses: actions/upload-artifact@v4
Expand All @@ -46,8 +44,6 @@ jobs:
if: needs.release.outputs.latest_commit == github.sha
steps:
- uses: actions/setup-node@v4
with:
node-version: 14.x
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -68,8 +64,6 @@ jobs:
if: needs.release.outputs.latest_commit == github.sha
steps:
- uses: actions/setup-node@v4
with:
node-version: 14.x
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
Expand Down
19 changes: 3 additions & 16 deletions .github/workflows/upgrade-main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# ~~ Generated by projen. To modify, edit .projenrc.js and run "npx projen".

name: upgrade-main
on:
workflow_dispatch: {}
Expand All @@ -21,12 +19,12 @@ jobs:
- name: Install dependencies
run: yarn install --check-files --frozen-lockfile
- name: Upgrade dependencies
run: npx projen upgrade
run: npx npm-check-updates --dep dev --upgrade --target=minor && yarn install --check-files && yarn upgrade
- id: create_patch
name: Find mutations
run: |-
git add .
git diff --staged --patch --exit-code > .repo.patch || echo "::set-output name=patch_created::true"
git diff --staged --patch --exit-code > .repo.patch || echo "patch_created=true" >> $GITHUB_OUTPUT
- if: steps.create_patch.outputs.patch_created
name: Upload patch
uses: actions/upload-artifact@v4
Expand All @@ -45,7 +43,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
ref: main
- name: Download patch
uses: actions/download-artifact@v4
Expand All @@ -59,31 +56,21 @@ jobs:
git config user.name "github-actions"
git config user.email "github-actions@github.com"
- name: Create Pull Request
id: create-pr
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
commit-message: |-
chore(deps): upgrade dependencies

Upgrades project dependencies. See details in [workflow run].

[Workflow Run]: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}

------

*Automatically created by projen via the "upgrade-main" workflow*
branch: github-actions/upgrade-main
title: "chore(deps): upgrade dependencies"
labels: auto-approve
body: |-
Upgrades project dependencies. See details in [workflow run].

[Workflow Run]: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}

------

*Automatically created by projen via the "upgrade-main" workflow*
author: github-actions <github-actions@github.com>
committer: github-actions <github-actions@github.com>
signoff: true
Loading
Loading