@hug/hospitality 0.0.4-alpha.15 → 0.0.4-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/core.mjs +31 -0
- package/fesm2022/core.mjs.map +1 -0
- package/{material/form-field/form-field.provider.ts → fesm2022/form-field.mjs} +8 -2
- package/fesm2022/form-field.mjs.map +1 -0
- package/fesm2022/hug-hospitality.mjs +4 -0
- package/fesm2022/hug-hospitality.mjs.map +1 -0
- package/fesm2022/tokens.mjs +5053 -0
- package/fesm2022/tokens.mjs.map +1 -0
- package/material/core/directives/components-styling.directive.d.ts +8 -0
- package/material/form-field/form-field.provider.d.ts +2 -0
- package/package.json +93 -93
- package/tokens/{index.ts → index.d.ts} +8 -16
- package/.editorconfig +0 -18
- package/.eslintignore +0 -47
- package/.eslintrc.json +0 -6
- package/.github/ISSUE_TEMPLATE/1-bug-report.yml +0 -57
- package/.github/ISSUE_TEMPLATE/2-feature-request.yml +0 -26
- package/.github/ISSUE_TEMPLATE/3-doc-issue.yml +0 -26
- package/.github/workflows/ci_release.yml +0 -17
- package/.husky/commit-msg +0 -3
- package/.husky/pre-commit +0 -17
- package/.vscode/extensions.json +0 -6
- package/.vscode/settings.json +0 -33
- package/CODE_OF_CONDUCT.md +0 -135
- package/CONTRIBUTING.md +0 -289
- package/DEVELOPER.md +0 -37
- package/material/core/directives/components-styling.directive.ts +0 -20
- package/material/core/ng-package.json +0 -7
- package/material/form-field/ng-package.json +0 -7
- package/ng-package.json +0 -10
- package/tokens/ng-package.json +0 -7
- package/tokens/tokens.json +0 -5042
- package/tsconfig.json +0 -16
- /package/{index.ts → index.d.ts} +0 -0
- /package/material/core/{index.ts → index.d.ts} +0 -0
- /package/material/form-field/{index.ts → index.d.ts} +0 -0
package/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
|
2
|
-
|
|
3
|
-
## Our Pledge
|
|
4
|
-
|
|
5
|
-
We as members, contributors, and leaders pledge to make participation in our
|
|
6
|
-
community a harassment-free experience for everyone, regardless of age, body
|
|
7
|
-
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
8
|
-
identity and expression, level of experience, education, socio-economic status,
|
|
9
|
-
nationality, personal appearance, race, caste, color, religion, or sexual identity
|
|
10
|
-
and orientation.
|
|
11
|
-
|
|
12
|
-
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
-
diverse, inclusive, and healthy community.
|
|
14
|
-
|
|
15
|
-
## Our Standards
|
|
16
|
-
|
|
17
|
-
Examples of behavior that contributes to a positive environment for our
|
|
18
|
-
community include:
|
|
19
|
-
|
|
20
|
-
* Demonstrating empathy and kindness toward other people
|
|
21
|
-
* Being respectful of differing opinions, viewpoints, and experiences
|
|
22
|
-
* Giving and gracefully accepting constructive feedback
|
|
23
|
-
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
24
|
-
and learning from the experience
|
|
25
|
-
* Focusing on what is best not just for us as individuals, but for the
|
|
26
|
-
overall community
|
|
27
|
-
|
|
28
|
-
Examples of unacceptable behavior include:
|
|
29
|
-
|
|
30
|
-
* The use of sexualized language or imagery, and sexual attention or
|
|
31
|
-
advances of any kind
|
|
32
|
-
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
33
|
-
* Public or private harassment
|
|
34
|
-
* Publishing others' private information, such as a physical or email
|
|
35
|
-
address, without their explicit permission
|
|
36
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
|
37
|
-
professional setting
|
|
38
|
-
|
|
39
|
-
## Enforcement Responsibilities
|
|
40
|
-
|
|
41
|
-
Community leaders are responsible for clarifying and enforcing our standards of
|
|
42
|
-
acceptable behavior and will take appropriate and fair corrective action in
|
|
43
|
-
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
44
|
-
or harmful.
|
|
45
|
-
|
|
46
|
-
Community leaders have the right and responsibility to remove, edit, or reject
|
|
47
|
-
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
48
|
-
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
49
|
-
decisions when appropriate.
|
|
50
|
-
|
|
51
|
-
## Scope
|
|
52
|
-
|
|
53
|
-
This Code of Conduct applies within all community spaces, and also applies when
|
|
54
|
-
an individual is officially representing the community in public spaces.
|
|
55
|
-
Examples of representing our community include using an official e-mail address,
|
|
56
|
-
posting via an official social media account, or acting as an appointed
|
|
57
|
-
representative at an online or offline event.
|
|
58
|
-
|
|
59
|
-
## Enforcement
|
|
60
|
-
|
|
61
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
62
|
-
reported by opening an issue or contacting one or more of the project maintainers.
|
|
63
|
-
|
|
64
|
-
All complaints will be reviewed and investigated promptly and fairly.
|
|
65
|
-
|
|
66
|
-
All community leaders are obligated to respect the privacy and security of the
|
|
67
|
-
reporter of any incident.
|
|
68
|
-
|
|
69
|
-
## Enforcement Guidelines
|
|
70
|
-
|
|
71
|
-
Community leaders will follow these Community Impact Guidelines in determining
|
|
72
|
-
the consequences for any action they deem in violation of this Code of Conduct:
|
|
73
|
-
|
|
74
|
-
### 1. Correction
|
|
75
|
-
|
|
76
|
-
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
77
|
-
unprofessional or unwelcome in the community.
|
|
78
|
-
|
|
79
|
-
**Consequence**: A private, written warning from community leaders, providing
|
|
80
|
-
clarity around the nature of the violation and an explanation of why the
|
|
81
|
-
behavior was inappropriate. A public apology may be requested.
|
|
82
|
-
|
|
83
|
-
### 2. Warning
|
|
84
|
-
|
|
85
|
-
**Community Impact**: A violation through a single incident or series
|
|
86
|
-
of actions.
|
|
87
|
-
|
|
88
|
-
**Consequence**: A warning with consequences for continued behavior. No
|
|
89
|
-
interaction with the people involved, including unsolicited interaction with
|
|
90
|
-
those enforcing the Code of Conduct, for a specified period of time. This
|
|
91
|
-
includes avoiding interactions in community spaces as well as external channels
|
|
92
|
-
like social media. Violating these terms may lead to a temporary or
|
|
93
|
-
permanent ban.
|
|
94
|
-
|
|
95
|
-
### 3. Temporary Ban
|
|
96
|
-
|
|
97
|
-
**Community Impact**: A serious violation of community standards, including
|
|
98
|
-
sustained inappropriate behavior.
|
|
99
|
-
|
|
100
|
-
**Consequence**: A temporary ban from any sort of interaction or public
|
|
101
|
-
communication with the community for a specified period of time. No public or
|
|
102
|
-
private interaction with the people involved, including unsolicited interaction
|
|
103
|
-
with those enforcing the Code of Conduct, is allowed during this period.
|
|
104
|
-
Violating these terms may lead to a permanent ban.
|
|
105
|
-
|
|
106
|
-
### 4. Permanent Ban
|
|
107
|
-
|
|
108
|
-
**Community Impact**: Demonstrating a pattern of violation of community
|
|
109
|
-
standards, including sustained inappropriate behavior, harassment of an
|
|
110
|
-
individual, or aggression toward or disparagement of classes of individuals.
|
|
111
|
-
|
|
112
|
-
**Consequence**: A permanent ban from any sort of public interaction within
|
|
113
|
-
the community.
|
|
114
|
-
|
|
115
|
-
## Attribution
|
|
116
|
-
|
|
117
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
118
|
-
version 2.0, available at
|
|
119
|
-
[https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0].
|
|
120
|
-
|
|
121
|
-
Community Impact Guidelines were inspired by
|
|
122
|
-
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
|
123
|
-
|
|
124
|
-
For answers to common questions about this code of conduct, see the FAQ at
|
|
125
|
-
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available
|
|
126
|
-
at [https://www.contributor-covenant.org/translations][translations].
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
[homepage]: https://www.contributor-covenant.org
|
|
132
|
-
[v2.0]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html
|
|
133
|
-
[Mozilla CoC]: https://github.com/mozilla/diversity
|
|
134
|
-
[FAQ]: https://www.contributor-covenant.org/faq
|
|
135
|
-
[translations]: https://www.contributor-covenant.org/translations
|
package/CONTRIBUTING.md
DELETED
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
# Contributing
|
|
2
|
-
|
|
3
|
-
We would love for you to contribute to this project and help make it even better than it is today!
|
|
4
|
-
As a contributor, here are the guidelines we would like you to follow:
|
|
5
|
-
|
|
6
|
-
- [Code of Conduct](#coc)
|
|
7
|
-
- [Question or Problem?](#question)
|
|
8
|
-
- [Issues and Bugs](#issue)
|
|
9
|
-
- [Feature Requests](#feature)
|
|
10
|
-
- [Submission Guidelines](#submit)
|
|
11
|
-
- [Coding Rules](#rules)
|
|
12
|
-
- [Commit Message Guidelines](#commit)
|
|
13
|
-
|
|
14
|
-
## <a name="coc"></a> Code of Conduct
|
|
15
|
-
|
|
16
|
-
Please read and follow our [Code of Conduct][coc], and help us keep this project open and inclusive.
|
|
17
|
-
|
|
18
|
-
## <a name="question"></a> Got a Question or Problem ?
|
|
19
|
-
|
|
20
|
-
Please open an issue and add the `question` label to it.
|
|
21
|
-
|
|
22
|
-
## <a name="issue"></a> Found a Bug ?
|
|
23
|
-
|
|
24
|
-
If you find a bug in the source code, you can help us by [submitting an issue](#submit-issue) to our [GitHub Repository][github].
|
|
25
|
-
|
|
26
|
-
Even better, you can [submit a Pull Request](#submit-pr) with a fix.
|
|
27
|
-
|
|
28
|
-
## <a name="feature"></a> Missing a Feature ?
|
|
29
|
-
|
|
30
|
-
You can _request_ a new feature by [submitting an issue](#submit-issue) to our [GitHub Repository][github].
|
|
31
|
-
|
|
32
|
-
If you would like to _implement_ a new feature, please consider the size of the change in order to determine the right steps to proceed:
|
|
33
|
-
|
|
34
|
-
- For a **Major Feature**, first open an issue and outline your proposal so that it can be discussed.
|
|
35
|
-
This process allows us to better coordinate our efforts, prevent duplication of work, and help you to craft the change so that it is successfully accepted into the project.
|
|
36
|
-
|
|
37
|
-
**Note**: Adding a new topic to the documentation, or significantly re-writing a topic, counts as a major feature.
|
|
38
|
-
|
|
39
|
-
- **Small Features** can be crafted and directly [submitted as a Pull Request](#submit-pr).
|
|
40
|
-
|
|
41
|
-
## <a name="submit"></a> Submission Guidelines
|
|
42
|
-
|
|
43
|
-
### <a name="submit-issue"></a> Submitting an Issue
|
|
44
|
-
|
|
45
|
-
Before you submit an issue, please search the issue tracker, maybe an issue for your problem already exists and the discussion might inform you of workarounds readily available.
|
|
46
|
-
|
|
47
|
-
We want to fix all the issues as soon as possible, but before fixing a bug we need to reproduce and confirm it.
|
|
48
|
-
In order to reproduce bugs, we require that you provide a minimal reproduction.
|
|
49
|
-
Having a minimal reproducible scenario gives us a wealth of important information without going back and forth to you with additional questions.
|
|
50
|
-
|
|
51
|
-
A minimal reproduction allows us to quickly confirm a bug (or point out a coding problem) as well as confirm that we are fixing the right problem.
|
|
52
|
-
|
|
53
|
-
We require a minimal reproduction to save maintainers' time and ultimately be able to fix more bugs.
|
|
54
|
-
Often, developers find coding problems themselves while preparing a minimal reproduction.
|
|
55
|
-
We understand that sometimes it might be hard to extract essential bits of code from a larger codebase but we really need to isolate the problem before we can fix it.
|
|
56
|
-
|
|
57
|
-
Unfortunately, we are not able to investigate / fix bugs without a minimal reproduction, so if we don't hear back from you, we are going to close an issue that doesn't have enough info to be reproduced.
|
|
58
|
-
|
|
59
|
-
You can file new issues by selecting and filling out the issue template from our [new issue templates][issue-templates].
|
|
60
|
-
|
|
61
|
-
### <a name="submit-pr"></a> Submitting a Pull Request (PR)
|
|
62
|
-
|
|
63
|
-
Before you submit your Pull Request (PR) consider the following guidelines:
|
|
64
|
-
|
|
65
|
-
1. Search [GitHub][github-pr] for an open or closed PR that relates to your submission.
|
|
66
|
-
You don't want to duplicate existing efforts.
|
|
67
|
-
|
|
68
|
-
2. Be sure that an issue describes the problem you're fixing, or documents the design for the feature you'd like to add.
|
|
69
|
-
Discussing the design upfront helps to ensure that we're ready to accept your work.
|
|
70
|
-
|
|
71
|
-
3. Fork this repository.
|
|
72
|
-
|
|
73
|
-
4. Make your changes in a new git branch:
|
|
74
|
-
|
|
75
|
-
```sh
|
|
76
|
-
git checkout -b my-fix-branch master
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
5. Create your patch, **including appropriate test cases**.
|
|
80
|
-
|
|
81
|
-
6. Follow our [Coding Rules](#rules).
|
|
82
|
-
|
|
83
|
-
7. Run a full test suite and ensure that all tests pass.
|
|
84
|
-
|
|
85
|
-
8. Commit your changes using a descriptive commit message that follows our [commit message conventions](#commit).
|
|
86
|
-
Adherence to these conventions is necessary because release notes are automatically generated from these messages.
|
|
87
|
-
|
|
88
|
-
```sh
|
|
89
|
-
git commit --all
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
Note: the optional commit `-a` command line option will automatically "add" and "rm" edited files.
|
|
93
|
-
|
|
94
|
-
9. Push your branch to GitHub:
|
|
95
|
-
|
|
96
|
-
```sh
|
|
97
|
-
git push origin my-fix-branch
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
10. In GitHub, send a pull request to `develop` branch.
|
|
101
|
-
|
|
102
|
-
### Reviewing a Pull Request
|
|
103
|
-
|
|
104
|
-
Pull requests may not be accepted from community members who haven't been good citizens of the community.
|
|
105
|
-
|
|
106
|
-
Such behavior includes not following the [code of conduct](#coc) and applies within or outside of this repository.
|
|
107
|
-
|
|
108
|
-
#### Addressing review feedback
|
|
109
|
-
|
|
110
|
-
If we ask for changes via code reviews then:
|
|
111
|
-
|
|
112
|
-
1. Make the required updates to the code.
|
|
113
|
-
|
|
114
|
-
2. Re-run the test suites to ensure tests are still passing.
|
|
115
|
-
|
|
116
|
-
3. Create a fixup commit and push to your GitHub repository (this will update your Pull Request):
|
|
117
|
-
|
|
118
|
-
```sh
|
|
119
|
-
git commit --all --fixup HEAD
|
|
120
|
-
git push
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
That's it! Thank you for your contribution!
|
|
124
|
-
|
|
125
|
-
#### Updating the commit message
|
|
126
|
-
|
|
127
|
-
A reviewer might often suggest changes to a commit message (for example, to add more context for a change or adhere to our [commit message guidelines](#commit)).
|
|
128
|
-
|
|
129
|
-
In order to update the commit message of the last commit on your branch:
|
|
130
|
-
|
|
131
|
-
1. Check out your branch:
|
|
132
|
-
|
|
133
|
-
```sh
|
|
134
|
-
git checkout my-fix-branch
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
2. Amend the last commit and modify the commit message:
|
|
138
|
-
|
|
139
|
-
```sh
|
|
140
|
-
git commit --amend
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
3. Push to your GitHub repository:
|
|
144
|
-
|
|
145
|
-
```sh
|
|
146
|
-
git push --force-with-lease
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
> NOTE:<br />
|
|
150
|
-
> If you need to update the commit message of an earlier commit, you can use `git rebase` in interactive mode.
|
|
151
|
-
> See the [git docs](https://git-scm.com/docs/git-rebase#_interactive_mode) for more details.
|
|
152
|
-
|
|
153
|
-
#### After your pull request is merged
|
|
154
|
-
|
|
155
|
-
After your pull request is merged, you can safely delete your branch and pull the changes from the main (upstream) repository:
|
|
156
|
-
|
|
157
|
-
- Delete the remote branch on GitHub either through the GitHub web UI or your local shell as follows:
|
|
158
|
-
|
|
159
|
-
```sh
|
|
160
|
-
git push origin --delete my-fix-branch
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
- Check out the master branch:
|
|
164
|
-
|
|
165
|
-
```sh
|
|
166
|
-
git checkout master -f
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
- Delete the local branch:
|
|
170
|
-
|
|
171
|
-
```sh
|
|
172
|
-
git branch -D my-fix-branch
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
- Update your master with the latest upstream version:
|
|
176
|
-
|
|
177
|
-
```sh
|
|
178
|
-
git pull --ff upstream master
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
## <a name="rules"></a> Coding Rules
|
|
182
|
-
|
|
183
|
-
To ensure consistency throughout the source code, keep these rules in mind as you are working:
|
|
184
|
-
|
|
185
|
-
- All features or bug fixes **must be tested** by one or more specs (unit-tests)
|
|
186
|
-
- All public API methods **must be documented**
|
|
187
|
-
- We follow [Google's JavaScript Style Guide][js-style-guide], but wrap all code at **100 characters**
|
|
188
|
-
|
|
189
|
-
## <a name="commit"></a> Commit Message Format
|
|
190
|
-
|
|
191
|
-
_This specification is inspired by and supersedes the [Conventional Commits message format][commit-message-format]._
|
|
192
|
-
|
|
193
|
-
We have very precise rules over how our Git commit messages must be formatted.
|
|
194
|
-
|
|
195
|
-
This format leads to **easier to read commit history**.
|
|
196
|
-
|
|
197
|
-
Each commit message consists of a **header**, a **body**, and a **footer**.
|
|
198
|
-
|
|
199
|
-
```
|
|
200
|
-
<header>
|
|
201
|
-
<BLANK LINE>
|
|
202
|
-
<body>
|
|
203
|
-
<BLANK LINE>
|
|
204
|
-
<footer>
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
The `header` is mandatory and must conform to the [Commit Message Header](#commit-header) format.
|
|
208
|
-
|
|
209
|
-
The `body` is mandatory for all commits except for those of type "docs". When the body is present it must be at least 20 characters long and must conform to the [Commit Message Body](#commit-body) format.
|
|
210
|
-
|
|
211
|
-
The `footer` is optional. The [Commit Message Footer](#commit-footer) format describes what the footer is used for and the structure it must have.
|
|
212
|
-
|
|
213
|
-
Any line of the commit message cannot be longer than 100 characters.
|
|
214
|
-
|
|
215
|
-
#### <a name="commit-header"></a> Commit Message Header
|
|
216
|
-
|
|
217
|
-
```
|
|
218
|
-
<type>(<scope>): <short summary>
|
|
219
|
-
│ │ │
|
|
220
|
-
│ │ └─⫸ Summary in present tense. Not capitalized. No period at the end.
|
|
221
|
-
│ │
|
|
222
|
-
│ └─⫸ Commit Scope (optional): provide additional contextual information
|
|
223
|
-
│
|
|
224
|
-
└─⫸ Commit Type: build|ci|docs|feat|fix|perf|refactor|test
|
|
225
|
-
```
|
|
226
|
-
|
|
227
|
-
##### Type
|
|
228
|
-
|
|
229
|
-
Must be one of the following:
|
|
230
|
-
|
|
231
|
-
- **build**: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
|
|
232
|
-
- **ci**: Changes to CI configuration files and scripts (example scopes: Circle, BrowserStack, SauceLabs)
|
|
233
|
-
- **docs**: Documentation only changes
|
|
234
|
-
- **feat**: A new feature
|
|
235
|
-
- **fix**: A bug fix
|
|
236
|
-
- **perf**: A code change that improves performance
|
|
237
|
-
- **refactor**: A code change that neither fixes a bug nor adds a feature
|
|
238
|
-
- **test**: Adding missing tests or correcting existing tests
|
|
239
|
-
|
|
240
|
-
##### Scope
|
|
241
|
-
|
|
242
|
-
Scope can be anything specifying place of the commit change.
|
|
243
|
-
|
|
244
|
-
##### Summary
|
|
245
|
-
|
|
246
|
-
Use the summary field to provide a succinct description of the change:
|
|
247
|
-
|
|
248
|
-
- use the imperative, present tense: "change" not "changed" nor "changes"
|
|
249
|
-
- don't capitalize the first letter
|
|
250
|
-
- no dot (.) at the end
|
|
251
|
-
|
|
252
|
-
#### <a name="commit-body"></a> Commit Message Body
|
|
253
|
-
|
|
254
|
-
Just as in the summary, use the imperative, present tense: "fix" not "fixed" nor "fixes".
|
|
255
|
-
|
|
256
|
-
Explain the motivation for the change in the commit message body. This commit message should explain _why_ you are making the change.
|
|
257
|
-
|
|
258
|
-
You can include a comparison of the previous behavior with the new behavior in order to illustrate the impact of the change.
|
|
259
|
-
|
|
260
|
-
#### <a name="commit-footer"></a> Commit Message Footer
|
|
261
|
-
|
|
262
|
-
The footer can contain information about breaking changes and is also the place to reference GitHub issues, Jira tickets, and other PRs that this commit closes or is related to.
|
|
263
|
-
|
|
264
|
-
```
|
|
265
|
-
BREAKING CHANGE: <breaking change summary>
|
|
266
|
-
<BLANK LINE>
|
|
267
|
-
<breaking change description + migration instructions>
|
|
268
|
-
<BLANK LINE>
|
|
269
|
-
<BLANK LINE>
|
|
270
|
-
Fixes #<issue number>
|
|
271
|
-
```
|
|
272
|
-
|
|
273
|
-
Breaking Change section should start with the phrase `BREAKING CHANGE: ` followed by a summary of the breaking change, a blank line, and a detailed description of the breaking change that also includes migration instructions.
|
|
274
|
-
|
|
275
|
-
### Revert commits
|
|
276
|
-
|
|
277
|
-
If the commit reverts a previous commit, it should begin with `revert: `, followed by the header of the reverted commit.
|
|
278
|
-
|
|
279
|
-
The content of the commit message body should contain:
|
|
280
|
-
|
|
281
|
-
- information about the SHA of the commit being reverted in the following format: `This reverts commit <SHA>`
|
|
282
|
-
- a clear description of the reason for reverting the commit message
|
|
283
|
-
|
|
284
|
-
[coc]: https://github.com/dsi-hug/hospitality/blob/main/CODE_OF_CONDUCT.md
|
|
285
|
-
[github]: https://github.com/dsi-hug/hospitality
|
|
286
|
-
[issue-templates]: https://github.com/dsi-hug/hospitality/issues/new/choose
|
|
287
|
-
[github-pr]: https://github.com/dsi-hug/hospitality/pulls
|
|
288
|
-
[js-style-guide]: https://google.github.io/styleguide/jsguide.html
|
|
289
|
-
[commit-message-format]: https://www.conventionalcommits.org/en/v1.0.0
|
package/DEVELOPER.md
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# Development
|
|
2
|
-
|
|
3
|
-
This document describes how you can test, build and publish the library and its documentation.
|
|
4
|
-
|
|
5
|
-
## Prerequisite
|
|
6
|
-
|
|
7
|
-
Before you can build and test this library you must install and configure the following products on your development machine:
|
|
8
|
-
|
|
9
|
-
- [Git][git]
|
|
10
|
-
- [Node.js][nodejs]
|
|
11
|
-
|
|
12
|
-
You will then need to install the required dependencies:
|
|
13
|
-
|
|
14
|
-
```sh
|
|
15
|
-
cd <library-path>
|
|
16
|
-
npm install
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Linting/verifying source code
|
|
20
|
-
|
|
21
|
-
Check that the code is properly formatted and adheres to coding style.
|
|
22
|
-
|
|
23
|
-
```sh
|
|
24
|
-
npm run lint
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
## Publishing the library to NPM repository
|
|
28
|
-
|
|
29
|
-
This project comes with automatic continuous delivery (CD) using _GitHub Actions_.
|
|
30
|
-
|
|
31
|
-
1. Bump the library version in `package.json`
|
|
32
|
-
2. Push the changes
|
|
33
|
-
3. Create a new: [GitHub release](https://github.com/dsi-hug/hospitality/releases/new)
|
|
34
|
-
4. Watch the results in: [Actions](https://github.com/dsi-hug/hospitality/actions)
|
|
35
|
-
|
|
36
|
-
[git]: https://git-scm.com/
|
|
37
|
-
[nodejs]: https://nodejs.org/
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/naming-convention */
|
|
2
|
-
import { Directive, input } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
export type HySizeType = 'x-small' | 'small' | 'medium' | 'large' | 'x-large';
|
|
5
|
-
|
|
6
|
-
@Directive({
|
|
7
|
-
selector: `
|
|
8
|
-
[hy-size],
|
|
9
|
-
[hy-appearance]
|
|
10
|
-
`,
|
|
11
|
-
standalone: true,
|
|
12
|
-
host: {
|
|
13
|
-
'[attr.hy-size]': 'hySize()',
|
|
14
|
-
'[attr.hy-appearance]': 'hyAppearance()'
|
|
15
|
-
}
|
|
16
|
-
})
|
|
17
|
-
export class ComponentsStylingDirective {
|
|
18
|
-
public hySize = input<HySizeType | null>(null, { alias: 'hy-size' });
|
|
19
|
-
public hyAppearance = input<string | null>(null, { alias: 'hy-appearance' });
|
|
20
|
-
}
|
package/ng-package.json
DELETED