Skip to content

Commit e0fd1e9

Browse files
authored
Normalise with latest scaffolding (#4)
* Normalize the code structure with baldrick-ts version 0.14.0 See https://github.com/flarebyte/baldrick-ts/releases * Adds scripts to generate readme cli doc
1 parent 3e20879 commit e0fd1e9

25 files changed

+3046
-653
lines changed

.aliases.zsh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
alias bpub='npx baldrick-dev-ts release ci'
2+
alias gcf='git add . && git commit -F .message && rm .message'
3+
alias yig='yarn global add $PWD'

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Bug Report
2+
description: File a bug report
3+
title: "[Bug]: "
4+
labels:
5+
- bug
6+
- triage
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thanks for taking the time to fill out this bug report!
12+
- type: textarea
13+
id: what-happened
14+
attributes:
15+
label: What happened?
16+
description: Please tell us, what did you expect to happen?
17+
placeholder: Tell us what you see!
18+
value: A bug happened!
19+
validations:
20+
required: true
21+
- type: textarea
22+
id: version
23+
attributes:
24+
label: Version
25+
description: What version of the library are you running?
26+
placeholder: 0.0.0
27+
validations:
28+
required: true
29+
- type: dropdown
30+
id: platform
31+
attributes:
32+
label: On which platform(s) do you have the issue ?
33+
multiple: true
34+
options:
35+
- Node.js
36+
- Typescript node
37+
- Firefox
38+
- Chrome
39+
- Safari
40+
- Microsoft Edge
41+
- Linux
42+
- Windows
43+
- MacOs
44+
- Other
45+
- type: textarea
46+
id: logs
47+
attributes:
48+
label: Relevant log output
49+
description: Please copy and paste any relevant log output. This will be
50+
automatically formatted into code, so no need for backticks.
51+
render: shell

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Feature request
2+
description: Suggest an idea for this project
3+
title: "[Feature]: "
4+
labels:
5+
- feature
6+
- triage
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thanks for taking the time to fill out this feature request!
12+
- type: textarea
13+
id: problem
14+
attributes:
15+
label: Describe the problem
16+
description: Is your feature request related to a problem? Please describe.
17+
placeholder: Describe the problem you would like to solve
18+
value: My problem
19+
validations:
20+
required: true
21+
- type: textarea
22+
id: solution
23+
attributes:
24+
label: Describe the solution
25+
description: A clear and concise description of what you want to happen.
26+
placeholder: Tell us what you would like to see!
27+
value: My solution
28+
validations:
29+
required: true
30+
- type: textarea
31+
id: context
32+
attributes:
33+
label: Additional context
34+
description: Add any other context or screenshots about the feature request here.
35+
placeholder: A context
36+
value: The context
37+
validations:
38+
required: true
39+
- type: checkboxes
40+
id: suitability
41+
attributes:
42+
label: Is this new feature a good fit ?
43+
description: Should this new feature really be part of this project
44+
options:
45+
- label: "__Needed__: an existing user is going to need this in the short term"
46+
required: true
47+
- label: "__Specific__: the problem is clearly understood and defined"
48+
required: true
49+
- label: "__Small change__: This new feature represents a reasonably small change"
50+
required: true
51+
- label: "__Same scope__: this new feature does not change significantly the scope
52+
of this project"
53+
required: true
54+
- label: "__Long term maintenance__: moving this to a new project would make long
55+
term maintenance harder"
56+
required: true

.github/pull_request_template.md

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,33 @@
1+
# Summary of the change
12

3+
Fixes: # (issue)
24

3-
# Summary of the change
5+
## Code check
46

5-
Fixes # (issue)
7+
- [ ] `yarn ready` does not show any concerning issues
8+
- [ ] the project can be built
9+
- [ ] the documentation has been updated
10+
- [ ] the version has been updated in `package.json`
611

7-
# Type of change
12+
## Type of change
813

9-
- [ ] Bug fix (non-breaking change which fixes an issue)
10-
- [ ] New feature (non-breaking change which adds functionality)
11-
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
14+
- [ ] Bug fix (non-breaking change which fixes an issue)
1215

13-
# Motivation and context
16+
- [ ] New feature (non-breaking change which adds functionality)
1417

18+
- [ ] Breaking change (fix or feature that would cause existing
19+
functionality to not work as expected)
1520

16-
# How Has This Been Tested?
21+
## Motivation and context
1722

23+
- [ ] improve user experience
24+
- [ ] improve consistency
25+
- [ ] improve security
26+
- [ ] improve documentation
27+
- [ ] reduce risk for unfamiliar tasks
28+
- [ ] automate repetitive tasks
29+
30+
## How Has This Been Tested
31+
32+
- [ ] Unit tests
33+
- [ ] Manual tests

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,5 @@ jobs:
2828
run: yarn test:ci
2929
- name: Build
3030
run: yarn build
31+
- name: Version
32+
run: yarn release:check

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
.DS_Store
33
node_modules/
44
dist/
5-
report/
5+
report/
6+
.message

CODE_OF_CONDUCT.md

Lines changed: 54 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,82 @@
1-
21
# Contributor Covenant Code of Conduct
32

43
## Our Pledge
54

6-
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project
7+
and our community a harassment-free experience for everyone, regardless of
8+
age, body size, disability, ethnicity, gender identity and expression, level
9+
of experience, nationality, personal appearance, race, religion, or sexual
10+
identity and orientation.
711

812
## Our Standards
913

10-
Examples of behavior that contributes to creating a positive environment include:
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
1116

12-
- Using welcoming and inclusive language
13-
- Being respectful of differing viewpoints and experiences
14-
- Gracefully accepting constructive criticism
15-
- Focusing on what is best for the community
16-
- Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
1722

1823
Examples of unacceptable behavior by participants include:
1924

20-
- The use of sexualized language or imagery and unwelcome sexual attention or advances
21-
- Trolling, insulting/derogatory comments, and personal or political attacks
22-
- Public or private harassment
23-
- Publishing others' private information, such as a physical or electronic address, without explicit permission
24-
- Other conduct which could reasonably be considered inappropriate in a professional setting
25+
- The use of sexualized language or imagery and unwelcome sexual
26+
attention or advances
27+
28+
- Trolling, insulting/derogatory comments, and personal or political
29+
attacks
30+
31+
- Public or private harassment
32+
33+
- Publishing others' private information, such as a physical or
34+
electronic address, without explicit permission
35+
36+
- Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
2538

2639
## Our Responsibilities
2740

28-
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
41+
Project maintainers are responsible for clarifying the standards of
42+
acceptable behavior and are expected to take appropriate and fair corrective
43+
action in response to any instances of unacceptable behavior.
2944

30-
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
45+
Project maintainers have the right and responsibility to remove, edit, or
46+
reject comments, commits, code, wiki edits, issues, and other contributions
47+
that are not aligned to this Code of Conduct, or to ban temporarily or
48+
permanently any contributor for other behaviors that they deem inappropriate,
49+
threatening, offensive, or harmful.
3150

3251
## Scope
3352

34-
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
53+
This Code of Conduct applies both within project spaces and in public spaces
54+
when an individual is representing the project or its community. Examples of
55+
representing a project or community include using an official project e-mail
56+
address, posting via an official social media account, or acting as an
57+
appointed representative at an online or offline event. Representation of a
58+
project may be further defined and clarified by project maintainers.
3559

3660
## Enforcement
3761

38-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [Flarebyte.com](https://github.com/flarebyte). The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
62+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
63+
reported by contacting the project team at
64+
[Flarebyte.com](https://github.com/flarebyte). The project team will review
65+
and investigate all complaints, and will respond in a way that it deems
66+
appropriate to the circumstances. The project team is obligated to maintain
67+
confidentiality with regard to the reporter of an incident. Further details
68+
of specific enforcement policies may be posted separately.
3969

40-
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
70+
Project maintainers who do not follow or enforce the Code of Conduct in good
71+
faith may face temporary or permanent repercussions as determined by other
72+
members of the project's leadership.
4173

4274
## Attribution
4375

44-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
76+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
77+
version 1.4, available at
78+
[http://contributor-covenant.org/version/1/4][version]
4579

4680
[homepage]: http://contributor-covenant.org
81+
4782
[version]: http://contributor-covenant.org/version/1/4/

0 commit comments

Comments
 (0)