ngx-skeleton-loader 13.0.0 → 14.0.0

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.
@@ -0,0 +1,77 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, sex characteristics, gender identity and expression,
9
+ level of experience, education, socio-economic status, nationality, personal
10
+ appearance, race, religion, or sexual identity and orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
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
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at [INSERT EMAIL ADDRESS]. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72
+
73
+ [homepage]: https://www.contributor-covenant.org
74
+
75
+ For answers to common questions about this code of conduct, see
76
+ https://www.contributor-covenant.org/faq
77
+
@@ -0,0 +1,34 @@
1
+ # How to start
2
+
3
+ **Note** requires node v20.x.x or higher and npm 10.x.x.
4
+
5
+ ```bash
6
+ git clone https://github.com/willmendesneto/ngx-skeleton-loader.git
7
+ cd ngx-skeleton-loader
8
+ npm install
9
+ npm start
10
+ ```
11
+
12
+ # Running test
13
+
14
+ ```bash
15
+ npm test
16
+ ```
17
+
18
+ ## Submitting Pull Requests
19
+
20
+ **Please follow these basic steps to simplify pull request reviews - if you don't you'll probably just be asked to anyway.**
21
+
22
+ - Please rebase your branch against the current master
23
+ - Run `npm install` to make sure your development dependencies are up-to-date
24
+ - Please ensure that the test suite passes **and** that code is lint free before submitting a PR by running:
25
+ - `npm test`
26
+ - If you've added new functionality, **please** include tests which validate its behaviour
27
+ - Make reference to possible [issues](https://github.com/willmendesneto/ngx-skeleton-loader/issues) on PR comment
28
+ - This module follows Angular commit message standard, so please make sure that you are following this standard.
29
+
30
+ ## Submitting bug reports
31
+
32
+ - Please detail the affected browser(s) and operating system(s)
33
+ - Please be sure to state which version of node **and** npm you're using
34
+ - Please use try to simulate your bug based on [the demo on Stackblitz](https://ngx-skeleton-loader-sample.stackblitz.io)!
@@ -0,0 +1,102 @@
1
+ # Publishing a Hotfix for NGX Skeleton Loader
2
+
3
+ > This guide outlines the steps to publish a hotfix for the NGX Skeleton Loader package for older versions - if necessary.
4
+
5
+ A hotfix addresses critical issues that need immediate attention without waiting for the next scheduled release cycle.
6
+
7
+ ## Prerequisites
8
+
9
+ Please make sure you're using the correct NodeJS and NPM versions, as described below - and also in `.nvmrc` file.
10
+
11
+ > **Note** requires node v20.x.x or higher and npm 10.x.x.
12
+
13
+ ## Hotfix Process
14
+
15
+ ### 1. Identify the Issue
16
+
17
+ Clearly define the issue that needs a hotfix. Use the following steps:
18
+
19
+ Open an issue on GitHub, detailing the problem and its urgency.
20
+
21
+ Reference the issue number in all subsequent commits and documentation.
22
+
23
+ ### 2. Create a Hotfix Branch
24
+
25
+ Create a new branch based on the latest stable release tag.
26
+
27
+ # Clone the package and fetch the latest tags and branches
28
+
29
+ ```bash
30
+ git clone https://github.com/willmendesneto/ngx-skeleton-loader.git
31
+ cd ngx-skeleton-loader
32
+ git fetch --all
33
+ ```
34
+
35
+ # Check out the latest stable release without the issue in specific
36
+
37
+ ```bash
38
+ # By running `git checkout <latest-stable-tag>`
39
+ # you will be in a detached head state. E.G:
40
+ git checkout v1.1.0
41
+ ```
42
+
43
+ # Create and switch to a hotfix branch
44
+
45
+ ```bash
46
+ # create new branch based on detached head state
47
+ git checkout -b hotfix/<issue-key>
48
+ ```
49
+
50
+ ### 3. Implement the Fix
51
+
52
+ Modify the necessary files in the codebase.
53
+
54
+ Run tests to confirm the fix resolves the issue without introducing new bugs.
55
+
56
+ ### 4. Update the Version Number
57
+
58
+ Use npm to bump the patch version. The new version follows semantic versioning:
59
+
60
+ ```bash
61
+ npm version patch
62
+ ```
63
+
64
+ This updates the version in package.json and creates a Git tag for the new version.
65
+
66
+ ### 5. Add a Changelog Entry
67
+
68
+ Update the `CHANGELOG.md` file with details of the hotfix:
69
+
70
+ ```bash
71
+ ## [x.y.z] - YYYY-MM-DD
72
+ ### Fixed
73
+ - [#issue-number] Description of the hotfix.
74
+ ```
75
+
76
+ ### 6. Push Changes to the Repository
77
+
78
+ Push the hotfix branch and the updated tag to the remote repository:
79
+
80
+ ```bash
81
+ git push origin hotfix/<issue-key>
82
+ git push origin --tags
83
+ ```
84
+
85
+ ### 7. Create a Pull Request
86
+
87
+ Open a pull request (PR) from the hotfix branch to the main branch.If it's not against main, please make sure you're pointing to the right branch - and add all relevant reviewers.
88
+
89
+ Include a link to the issue being resolved and the changelog entry.
90
+
91
+ ### 8. Merge and Publish the Package Fix
92
+
93
+ Once the PR is reviewed and merged, the updated package will be published to npm by following the [Publish steps as described on `README.md` file.](https://github.com/willmendesneto/ngx-skeleton-loader?tab=readme-ov-file#publish)
94
+
95
+
96
+ ## Notes
97
+
98
+ Testing: Always run the full test suite before merging and publishing a hotfix.
99
+
100
+ Documentation: Maintain up-to-date documentation for future contributors.
101
+
102
+ By following these steps, you ensure a smooth and reliable hotfix process for the NGX Skeleton Loader package.