Skip to content

Commit 3b9b8e4

Browse files
committed
chore: add release it
1 parent 1aeaf82 commit 3b9b8e4

File tree

7 files changed

+2191
-53
lines changed

7 files changed

+2191
-53
lines changed

.env-example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GITHUB_TOKEN=

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ testem.log
3939
Thumbs.db
4040

4141
.angular
42+
.env

.release-it.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"plugins": {
3+
"@release-it/conventional-changelog": {
4+
"preset": {
5+
"name": "conventionalcommits",
6+
"types": [
7+
{
8+
"type": "feat",
9+
"section": "Features"
10+
},
11+
{
12+
"type": "fix",
13+
"section": "Bug Fixes"
14+
},
15+
{
16+
"type": "cleanup",
17+
"section": "Cleanup"
18+
},
19+
{
20+
"type": "docs",
21+
"section": "Documentations"
22+
}
23+
]
24+
},
25+
"infile": "CHANGELOG.md"
26+
},
27+
"@release-it/bumper": {
28+
"in": "libs/angular-three-postprocessing/version.json",
29+
"out": ["libs/angular-three-postprocessing/version.json", "dist/libs/**/package.json"]
30+
}
31+
},
32+
"git": {
33+
"commitMessage": "chore: release ${version}"
34+
},
35+
"npm": {
36+
"publish": false
37+
},
38+
"github": {
39+
"release": true,
40+
"releaseName": "Release ${version}"
41+
},
42+
"hooks": {
43+
"before:bump": "npx nx package angular-three-postprocessing",
44+
"after:bump": ["git checkout -- package.json"]
45+
}
46+
}

libs/angular-three-postprocessing/package.json

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,30 @@
11
{
22
"name": "angular-three-postprocessing",
3-
"version": "0.0.1",
3+
"version": "0.0.0-replace",
4+
"publishConfig": {
5+
"access": "public"
6+
},
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/angular-threejs/postprocessing"
10+
},
11+
"author": {
12+
"name": "Chau Tran",
13+
"email": "[email protected]",
14+
"url": "https://nartc.me"
15+
},
16+
"description": "Postprocessing integration with Angular Three",
17+
"keywords": [
18+
"angular",
19+
"threejs",
20+
"renderer",
21+
"postprocessing"
22+
],
23+
"license": "MIT",
424
"peerDependencies": {
525
"@angular/common": "^15.1.0",
6-
"@angular/core": "^15.1.0"
26+
"@angular/core": "^15.1.0",
27+
"postprocessing": "^6.0.0"
728
},
829
"dependencies": {
930
"tslib": "^2.3.0"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"version": "0.0.1"
3+
}

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@
1717
"@nrwl/jest": "15.6.3",
1818
"@nrwl/linter": "15.6.3",
1919
"@nrwl/workspace": "15.6.3",
20+
"@release-it/bumper": "^4.0.2",
21+
"@release-it/conventional-changelog": "^5.1.1",
2022
"@types/jest": "28.1.1",
2123
"@types/node": "18.11.18",
2224
"@types/three": "^0.149.0",
2325
"@typescript-eslint/eslint-plugin": "^5.49.0",
2426
"@typescript-eslint/parser": "^5.49.0",
27+
"dotenv-cli": "^7.0.0",
2528
"eslint": "~8.33.0",
2629
"eslint-config-prettier": "8.6.0",
2730
"jest": "28.1.1",
@@ -35,6 +38,7 @@
3538
"postcss-url": "~10.1.3",
3639
"prettier": "^2.8.3",
3740
"prettier-plugin-organize-imports": "^3.2.2",
41+
"release-it": "^15.6.0",
3842
"ts-jest": "28.0.5",
3943
"ts-node": "10.9.1",
4044
"typescript": "~4.9.5"

0 commit comments

Comments
 (0)