Skip to content
This repository was archived by the owner on Feb 24, 2023. It is now read-only.

Commit d681175

Browse files
committed
init(init): first commit
1 parent d893111 commit d681175

File tree

10 files changed

+11763
-746
lines changed

10 files changed

+11763
-746
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules
22
npm-debug.log
33
npm-error.log
4+
yarn-debug.log
5+
yarn-error.log

.github/config/labels.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,132 +1,132 @@
11
---
2-
- name: approved-review
2+
- name: ✔️ approved-review
33
color: '71FFA4'
44
description: Review approved and PR ready to merge
55

6-
- name: awaiting-review
6+
- name: awaiting-review
77
color: 'E3A466'
88
description: PR awaiting for review
99

10-
- name: blocked-review
10+
- name: blocked-review
1111
color: 'E64320'
1212
description: Review blocked (specify why in comments)
1313

14-
- name: bug
14+
- name: 🐛 bug
1515
color: 'E64320'
1616
description: Suspected/confirmed bug
1717

18-
- name: chore
18+
- name: 🚧 chore
1919
color: 'E3A466'
2020
description: Tedious but necessary task
2121

22-
- name: conflicts
22+
- name: conflicts
2323
color: 'E67F03'
2424
description: Merge conflicts to be resolved by the author of the PR
2525

26-
- name: discussion
26+
- name: 📝 discussion
2727
color: '78A5FF'
2828
description: Invite to discussion of collaborators
2929

30-
- name: duplicate
30+
- name: duplicate
3131
color: 'FFFFFF'
3232
description: Duplicated issue link to the issue in comments
3333

34-
- name: enhancement
34+
- name: 💡 enhancement
3535
color: '71FFA4'
3636
description: Improvement of existing code
3737

38-
- name: big-enhancement
38+
- name: 💣 big-enhancement
3939
color: '00FF62'
4040
description: Epic improvement deserving a full release
4141

42-
- name: ext-dependency
42+
- name: 🎉 ext-dependency
4343
color: 'E64320'
4444
description: Third-party dependency problem can't fix by our own
4545

46-
- name: help-needed
46+
- name: 🆘 help-needed
4747
color: '78A5FF'
4848
description: Issue author is asking for help
4949

50-
- name: in-progress
50+
- name: in-progress
5151
color: '71FFA4'
5252
description: Issue is currently worked on
5353

54-
- name: in-review
54+
- name: in-review
5555
color: '71FFA4'
5656
description: Issue is currently reviewed
5757

58-
- name: low-priority
58+
- name: ⚠️ low-priority
5959
color: '71FFA4'
6060
description: Non-urgent changes and future ideas
6161

62-
- name: medium-priority
62+
- name: ⚠️ medium-priority
6363
color: 'E3A466'
6464
description: Can be worked on later
6565

66-
- name: high-priority
66+
- name: ⚠️ high-priority
6767
color: 'E64320'
6868
description: Need to be worked on ASAP
6969

70-
- name: critical-priority
70+
- name: ⚠️ critical-priority
7171
color: '000000'
7272
description: Stop all work in progress and work on this (to be used when REALLY necessary!)
7373

74-
- name: question
74+
- name: question
7575
color: 'E3A466'
7676
description: Question awaiting answer before continuing to advance on the issue
7777

78-
- name: research-needed
78+
- name: research-needed
7979
color: '78A5FF'
8080
description: Research required be clear and concise
8181

82-
- name: beginner
82+
- name: 🔰 beginner
8383
color: '71FFA4'
8484
description: Issue that can be resolved by beginners
8585

86-
- name: intermediate
86+
- name: 🔰 intermediate
8787
color: 'E3A466'
8888
description: Issue requiring at least intermediate developers
8989

90-
- name: advanced
90+
- name: 🔰 advanced
9191
color: 'E67F03'
9292
description: Issue requiring at least advanced developers
9393

94-
- name: expert
94+
- name: 🔰 expert
9595
color: 'E64320'
9696
description: Issue requiring expert developers
9797

98-
- name: feature
98+
- name: feature
9999
color: '78A5FF'
100100
description: Functionnality request changes, improvements, additions, etc
101101

102-
- name: blocked
102+
- name: blocked
103103
color: 'EEEEEE'
104104
description: Is blocked by another issue (specify which in comments)
105105

106-
- name: blocker
106+
- name: blocker
107107
color: '000000'
108108
description: Blocks the progress of an issue requires special attention(specify which in comments)
109109

110-
- name: windows
110+
- name: 🖥️ windows
111111
color: '2E95D1'
112112
description: Under Windows OS
113113

114-
- name: macos
114+
- name: 🍎 macos
115115
color: '2E95D1'
116116
description: Under MacOS
117117

118-
- name: linux
118+
- name: 🐧 linux
119119
color: '2E95D1'
120120
description: Under Linux OS
121121

122-
- name: admin-task
122+
- name: 🚀 admin-task
123123
color: 'E64320'
124124
description: Task requiring an administrator
125125

126-
- name: technical-task
126+
- name: 🚀 technical-task
127127
color: 'E67F03'
128128
description: Task requiring technical work
129129

130-
- name: design-task
130+
- name: 🚀 design-task
131131
color: 'E67F03'
132132
description: Task requiring design work
Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,24 @@
1-
name: Create Release - Pipeline
2-
1+
name: Node.js Package
32
on:
4-
push:
5-
tags:
6-
- '*'
3+
release:
4+
types: [created]
5+
workflow_dispatch:
76

87
jobs:
9-
create-changelog:
8+
build:
109
runs-on: ubuntu-latest
11-
10+
permissions:
11+
contents: read
12+
packages: write
1213
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v2
15-
16-
- name: Create changelog text
17-
id: changelog
18-
uses: loopwerk/tag-changelog@v1
14+
- uses: actions/checkout@v2
15+
# Setup .npmrc file to publish to npm
16+
- uses: actions/setup-node@v2
1917
with:
20-
token: ${{ secrets.GITHUB_TOKEN }}
21-
config_file: .github/config/tag-changelog-config.js
22-
23-
- name: Create release
24-
uses: actions/create-release@latest
18+
node-version: '14.x'
19+
registry-url: 'https://registry.npmjs.org'
20+
- run: yarn
21+
# Publish to npm
22+
- run: yarn publish --access public
2523
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
with:
28-
tag_name: ${{ github.ref }}
29-
release_name: Release ${{ github.ref }}
30-
body: ${{ steps.changelog.outputs.changes }}
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
#yarn commitlint -e $HUSKY_GIT_PARAMS
4+
yarn commitlint -e $HUSKY_GIT_PARAMS
55

66
SIGNATURE="Signed-off-by: `git config --global --get user.name` <`git config --global --get user.email`>"
77
grep -qs "^${SIGNATURE}" "$1" || echo "\n${SIGNATURE}" >> "$1"

README.md

Lines changed: 44 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
1-
# [github-template](https://github.com/WebReadyProjects/github-template/)
1+
# [cz-changelog-wrprojects](https://github.com/WebReadyProjects/cz-changelog-wrprojects/)
22

33
<p align="center">
44
<a href="https://github.com/WebReadyProjects" target="_blank">
5-
<img src="https://avatars.githubusercontent.com/u/84878971?s=200&v=4" alt="WebReady Projects Logo" width="100">
5+
<img src="http://image.noelshack.com/fichiers/2021/48/6/1638580676-component-39-3.png" alt="WebReady Projects Logo" width="800">
66
</a>
77
</p>
88

99
<p align="center">
10-
<a href="https://github.com/WebReadyProjects/github-template/releases">
11-
<img src="https://img.shields.io/github/package-json/v/WebReadyProjects/github-template?style=flat-square" alt="Version badge">
10+
<a href="https://github.com/WebReadyProjects/cz-changelog-wrprojects/releases">
11+
<img src="https://img.shields.io/github/package-json/v/WebReadyProjects/cz-changelog-wrprojects?style=flat-square" alt="Version badge">
1212
</a>
13-
<a href="https://github.com/WebReadyProjects/github-template/">
13+
<a href="https://github.com/WebReadyProjects/cz-changelog-wrprojects/">
1414
<img src="https://img.shields.io/maintenance/yes/2021?style=flat-square" alt="Maintenance badge">
1515
</a>
1616
<a href="">
17-
<img src="https://img.shields.io/github/workflow/status/WebReadyProjects/github-template/Deployment%20-%20Pipeline?style=flat-square" alt="Deployment - Pipeline">
17+
<img src="https://img.shields.io/github/workflow/status/WebReadyProjects/cz-changelog-wrprojects/Deployment%20-%20Pipeline?style=flat-square" alt="Deployment - Pipeline">
1818
</a>
1919
<a href="">
20-
<img src="https://img.shields.io/github/downloads/WebReadyProjects/github-template/total?style=flat-square" alt="Downloads GitHub">
20+
<img src="https://img.shields.io/github/downloads/WebReadyProjects/cz-changelog-wrprojects/total?style=flat-square" alt="Downloads GitHub">
2121
</a>
22-
<a href="https://github.com/WebReadyProjects/github-template/blob/main/LICENSE">
23-
<img src="https://img.shields.io/github/license/WebReadyProjects/github-template?style=flat-square" alt="License badge">
22+
<a href="">
23+
<img src="https://img.shields.io/npm/dw/cz-changelog-wrprojects?style=flat-square" alt="Downloads NPM">
24+
</a>
25+
<a href="https://github.com/WebReadyProjects/cz-changelog-wrprojects/blob/main/LICENSE">
26+
<img src="https://img.shields.io/github/license/WebReadyProjects/cz-changelog-wrprojects?style=flat-square" alt="License badge">
2427
</a>
2528
<a href="https://discord.com/channels/849073103984525323/849088247987437579">
2629
<img src="https://img.shields.io/discord/849073103984525323?style=flat-square" alt="Discord badge">
@@ -29,57 +32,56 @@
2932

3033
## Introduction
3134

32-
[github-template](https://github.com/WebReadyProjects/github-template/) is a GitHub template developed by [Grégoire FAVREAU](https://github.com/GregoireF) to provide [WebReady Projects](https://github.com/WebReadyProjects/) with a solid base respecting many standards and conventions as well as several powerful workflows on all projects.
35+
[cz-changelog-wrprojects](https://github.com/WebReadyProjects/cz-changelog-wrprojects/) is a package developed by [Grégoire FAVREAU](https://github.com/GregoireF) to provide [WebReady Projects](https://github.com/WebReadyProjects/) with a solid base respecting [GitHub commits conventions](https://www.conventionalcommits.org/en/v1.0.0/) on all projects. The tools that have been used for the production of this package are
36+
37+
- [CommitLint](https://commitlint.js.org/#/)
38+
- [Commitizen](https://commitizen-tools.github.io/commitizen/)
39+
- [Husky](https://typicode.github.io/husky/#/)
40+
41+
Also, [WebReady Projects](https://github.com/WebReadyProjects/) works in parallel with GitHub Actions as well to assist in time-intensive steps.
42+
43+
## Ecosystem
44+
45+
| Dependencies | Version |
46+
| :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----------------------------------------- |
47+
| ![conventional changelog conventionalcommits](https://img.shields.io/github/package-json/dependency-version/WebReadyProjects/cz-changelog-wrprojects/conventional-changelog-conventionalcommits?style=flat-square) | conventional-changelog-conventionalcommits |
48+
| ![conventional commit types](https://img.shields.io/github/package-json/dependency-version/WebReadyProjects/cz-changelog-wrprojects/conventional-commit-types?style=flat-square) | conventional-commit-types |
49+
| ![cz conventional changelog](https://img.shields.io/github/package-json/dependency-version/WebReadyProjects/cz-changelog-wrprojects/cz-conventional-changelog?style=flat-square) | cz-conventional-changelog |
50+
| ![husky ](https://img.shields.io/github/package-json/dependency-version/WebReadyProjects/cz-changelog-wrprojects/husky?style=flat-square) | husky |
51+
| ![lodash map](https://img.shields.io/github/package-json/dependency-version/WebReadyProjects/cz-changelog-wrprojects/lodash.map?style=flat-square) | lodash.map |
52+
| ![longest ](https://img.shields.io/github/package-json/dependency-version/WebReadyProjects/cz-changelog-wrprojects/longest?style=flat-square) | longest |
53+
| ![right pad](https://img.shields.io/github/package-json/dependency-version/WebReadyProjects/cz-changelog-wrprojects/right-pad?style=flat-square) | right-pad |
54+
| ![word wrap](https://img.shields.io/github/package-json/dependency-version/WebReadyProjects/cz-changelog-wrprojects/word-wrap?style=flat-square) | word-wrap |
3355

3456
## Installation
3557

36-
In order to use it, you can simply fork the project where you want to start your code in your newly created workspace.
37-
Once this is done, you need to configure the secrets:
38-
- Key name: `GITGUARDIAN_API_KEY` | Where to generate the key: [here](https://www.gitguardian.com/)
39-
- Key name: `METRICS_TOKEN` | Where to generate the key: [here](https://github.com/lowlighter/metrics)
40-
- Key name: `NPM_TOKEN` | Where to generate the key: [here](https://www.npmjs.com/)
41-
- Key name: `GIPHY_API_KEY` | Where to generate the key: [here](https://developers.giphy.com/dashboard/)
42-
43-
In order for [Pipeline - Metrics](https://github.com/WebReadyProjects/github-template/actions/workflows/pipeline-metrics.yml) to be clean, we have to use a Gist configuration provided by [lowlighter](https://github.com/lowlighter/), so it is necessary to follow [the configuration scheme](https://github.com/lowlighter/metrics). Once you have created your different Gist, you need to configure them in the [pipeline-metrics.yml](https://github.com/WebReadyProjects/github-template/blob/main/.github/workflows/pipeline-metrics.yml) file like this:
44-
```yml
45-
with:
46-
committer_gist: 8e01675010ff637355609641fd57fe23 # your gist id as shown in gist url
47-
output_action: gist
58+
In order to use this package, it is necessary to follow the steps described below:
59+
60+
```sh
61+
$ yarn add @webreadyprojects/cz-changelog-wrprojects
62+
OR
63+
$ npm install @webreadyprojects/cz-changelog-wrprojects
4864
```
4965

5066
## Questions
5167

52-
If you have a question or need help, feel free to use the [GitHub Community Chat](https://github.com/WebReadyProjects/github-template/discussions) or our [Discord](https://discord.com/channels/849073103984525323/849088247987437579) to get support. [GitHub Issues](https://github.com/WebReadyProjects/github-template/issues) and [GitHub Pull Request](https://github.com/WebReadyProjects/github-template/pulls) are exclusively for bug reports or development.
53-
54-
<p align="center">
55-
<img src="https://raw.githubusercontent.com/gist/GregoireF/caf930c995804d565ffc9bb85fe79f8c/raw/262df8828ba3422594b26faa58413d671c428137/github-metrics.svg" alt="Metric Discussions">
56-
</p>
68+
If you have a question or need help, feel free to use the [GitHub Community Chat](https://github.com/WebReadyProjects/cz-changelog-wrprojects/discussions) or our [Discord](https://discord.com/channels/849073103984525323/849088247987437579) to get support. [GitHub Issues](https://github.com/WebReadyProjects/cz-changelog-wrprojects/issues) and [GitHub Pull Request](https://github.com/WebReadyProjects/cz-changelog-wrprojects/pulls) are exclusively for bug reports or development.
5769

5870
## Issues
5971

60-
It is necessary to read [contribution information](https://github.com/WebReadyProjects/github-template/blob/main/.github/docs/CONTRIBUTION.md) before submitting any type of incident on GitHub, otherwise it will be closed automatically if it does not meet the community conditions.
72+
It is necessary to read [contribution information](https://github.com/WebReadyProjects/cz-changelog-wrprojects/blob/main/.github/docs/CONTRIBUTION.md) before submitting any type of incident on GitHub, otherwise it will be closed automatically if it does not meet the community conditions.
6173

6274
## Changelog
6375

64-
Detailed changes for each release are documented in the [release notes](https://github.com/WebReadyProjects/github-template/releases).
76+
Detailed changes for each release are documented in the [release notes](https://github.com/WebReadyProjects/cz-changelog-wrprojects/releases).
6577

6678
## Contributing
6779

68-
If you are interested in joining our team of open-source developers, please see the [CONTRIBUTION GUIDE](https://github.com/WebReadyProjects/github-template/blob/main/.github/docs/CONTRIBUTION.md) and the [CODE OF CONDUCT](https://github.com/WebReadyProjects/github-template/blob/main/.github/CODE_OF_CONDUCT.md).
69-
If this is your first contribution for you, we have [a very fun tutorial](https://github.com/WebReadyProjects/first-contributions) for you, promise, it won't be long! Also, if you need support, feel free to use [our GitHub chat](https://github.com/WebReadyProjects/github-template/discussions) as well as [our Discord](https://discord.com/channels/849073103984525323/849088247987437579).
80+
If you are interested in joining our team of open-source developers, please see the [CONTRIBUTION GUIDE](https://github.com/WebReadyProjects/cz-changelog-wrprojects/blob/main/.github/docs/CONTRIBUTION.md) and the [CODE OF CONDUCT](https://github.com/WebReadyProjects/cz-changelog-wrprojects/blob/main/.github/CODE_OF_CONDUCT.md).
81+
If this is your first contribution for you, we have [a very fun tutorial](https://github.com/WebReadyProjects/first-contributions) for you, promise, it won't be long! Also, if you need support, feel free to use [our GitHub chat](https://github.com/WebReadyProjects/cz-changelog-wrprojects/discussions) as well as [our Discord](https://discord.com/channels/849073103984525323/849088247987437579).
7082
Also, feel free to look at [community incidents]() already present that may answer your question.
7183

72-
<p align="center">
73-
<img src="https://raw.githubusercontent.com/gist/GregoireF/8e01675010ff637355609641fd57fe23/raw/c543ddeceee0dacc98cdbf9734d0bf0c3d128333/github-metrics.svg" alt="Metric Contributors">
74-
</p>
75-
76-
## Sponsors & Special Thanks
77-
78-
<p align="center">
79-
<img src="https://raw.githubusercontent.com/gist/GregoireF/378434b35316787dfce1929deba1721c/raw/bcdbe5641d694442f59f664b96c41374e3ef9038/github-metrics.svg" alt="Special Thanks">
80-
</p>
81-
8284
## License
8385

84-
[Apache-2.0](https://github.com/WebReadyProjects/github-template/blob/main/LICENSE)
86+
[Apache-2.0](https://github.com/WebReadyProjects/cz-changelog-wrprojects/blob/main/LICENSE)
8587
Copyright (c) 2021-present WebReady Projects

0 commit comments

Comments
 (0)