Skip to content

Commit 16845b2

Browse files
committed
chore: add release it
1 parent c774832 commit 16845b2

File tree

8 files changed

+37407
-32605
lines changed

8 files changed

+37407
-32605
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/version.json",
29+
"out": ["libs/angular-three/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 build angular-three",
44+
"after:bump": ["git checkout -- package.json", "git checkout -- package-lock.json"]
45+
}
46+
}

libs/angular-three/package.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
{
22
"name": "angular-three",
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/angular-three"
10+
},
11+
"author": {
12+
"name": "Chau Tran",
13+
"email": "[email protected]",
14+
"url": "https://nartc.me"
15+
},
16+
"description": "Angular Renderer for THREE.js",
17+
"keywords": [
18+
"angular",
19+
"threejs",
20+
"renderer"
21+
],
22+
"license": "MIT",
423
"peerDependencies": {
524
"@angular/common": "^15.1.0",
625
"@angular/core": "^15.1.0",

libs/angular-three/project.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,13 @@
3535
"options": {
3636
"lintFilePatterns": ["libs/angular-three/**/*.ts", "libs/angular-three/**/*.html"]
3737
}
38+
},
39+
"publish": {
40+
"executor": "nx:run-commands",
41+
"options": {
42+
"command": "npm publish",
43+
"cwd": "dist/libs/angular-three"
44+
}
3845
}
39-
},
40-
"tags": []
46+
}
4147
}

libs/angular-three/version.json

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+
}

0 commit comments

Comments
 (0)