Skip to content

Commit

Permalink
chore: upgrade projen
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarbe authored May 10, 2021
1 parent 506466f commit 25e2352
Show file tree
Hide file tree
Showing 14 changed files with 140 additions and 90 deletions.
44 changes: 22 additions & 22 deletions .eslintrc.json

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

19 changes: 19 additions & 0 deletions .gitattributes

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

21 changes: 15 additions & 6 deletions .github/workflows/build.yml

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

2 changes: 0 additions & 2 deletions .github/workflows/projenupgrade.yml

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

32 changes: 20 additions & 12 deletions .github/workflows/release.yml

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

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
.jsii
.nyc_output
.yarn-integrity
/.changelog.tmp.md
/.version.tmp.json
/coverage
/dist
/lib
Expand All @@ -31,6 +33,7 @@ tsconfig.json
yarn-debug.log*
yarn-error.log*
!/.eslintrc.json
!/.gitattributes
!/.github/dependabot.yml
!/.github/pull_request_template.md
!/.github/workflows/build.yml
Expand All @@ -49,4 +52,3 @@ yarn-error.log*
!/test
!/tsconfig.eslint.json
!/tsconfig.jest.json
!version.json
2 changes: 1 addition & 1 deletion .npmignore

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

2 changes: 1 addition & 1 deletion .projen/deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
},
{
"name": "projen",
"version": "^0.17.18",
"version": "^0.17.83",
"type": "build"
},
{
Expand Down
60 changes: 35 additions & 25 deletions .projen/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,30 @@
],
"condition": "git diff --exit-code > /dev/null"
},
"bump": {
"name": "bump",
"category": "20.release",
"description": "Bumps version based on latest git tag and generates a changelog entry",
"steps": [
{
"exec": "git -c \"versionsort.suffix=-\" tag --sort=\"-version:refname\" --list \"v*\" | head -n1 > .version.tmp.json"
},
{
"exec": "standard-version"
}
],
"condition": "! git log --oneline -1 | grep -q \"chore(release):\""
},
"unbump": {
"name": "unbump",
"category": "20.release",
"description": "Restores version to 0.0.0",
"steps": [
{
"exec": "standard-version -r 0.0.0"
}
]
},
"compile": {
"name": "compile",
"category": "00.build",
Expand Down Expand Up @@ -80,6 +104,9 @@
"category": "00.build",
"description": "Full release build (test+compile)",
"steps": [
{
"exec": "npx projen"
},
{
"spawn": "test"
},
Expand All @@ -91,31 +118,6 @@
}
]
},
"bump": {
"name": "bump",
"category": "20.release",
"description": "Commits a bump to the package version based on conventional commits",
"steps": [
{
"exec": "standard-version"
}
],
"condition": "! git log --oneline -1 | grep -q \"chore(release):\""
},
"release": {
"name": "release",
"category": "20.release",
"description": "Bumps version & push to main",
"steps": [
{
"spawn": "bump"
},
{
"exec": "git push --follow-tags origin main"
}
],
"condition": "! git log --oneline -1 | grep -q \"chore(release):\""
},
"test:watch": {
"name": "test:watch",
"category": "10.test",
Expand Down Expand Up @@ -149,6 +151,14 @@
}
]
},
"default": {
"name": "default",
"steps": [
{
"exec": "node .projenrc.js"
}
]
},
"watch": {
"name": "watch",
"category": "00.build",
Expand Down
21 changes: 11 additions & 10 deletions .versionrc.json

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

9 changes: 5 additions & 4 deletions package.json

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

Loading

0 comments on commit 25e2352

Please sign in to comment.