cron-guardian 1.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.
- package/CONTRIBUTING.md +111 -0
- package/DOCS.md +744 -0
- package/LICENSE +21 -0
- package/README.md +141 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/src/jobRegistry/jobRegistry.d.ts +9 -0
- package/dist/src/jobRegistry/jobRegistry.d.ts.map +1 -0
- package/dist/src/jobRegistry/jobRegistry.js +25 -0
- package/dist/src/jobRegistry/jobRegistry.js.map +1 -0
- package/dist/src/jobRunner/jobRunner.d.ts +12 -0
- package/dist/src/jobRunner/jobRunner.d.ts.map +1 -0
- package/dist/src/jobRunner/jobRunner.js +46 -0
- package/dist/src/jobRunner/jobRunner.js.map +1 -0
- package/dist/src/logger/logger.d.ts +7 -0
- package/dist/src/logger/logger.d.ts.map +1 -0
- package/dist/src/logger/logger.js +16 -0
- package/dist/src/logger/logger.js.map +1 -0
- package/dist/src/notifier/notifier.d.ts +5 -0
- package/dist/src/notifier/notifier.d.ts.map +1 -0
- package/dist/src/notifier/notifier.js +12 -0
- package/dist/src/notifier/notifier.js.map +1 -0
- package/dist/src/retryManager/retryManager.d.ts +4 -0
- package/dist/src/retryManager/retryManager.d.ts.map +1 -0
- package/dist/src/retryManager/retryManager.js +23 -0
- package/dist/src/retryManager/retryManager.js.map +1 -0
- package/dist/src/scheduler/scheduler.d.ts +11 -0
- package/dist/src/scheduler/scheduler.d.ts.map +1 -0
- package/dist/src/scheduler/scheduler.js +65 -0
- package/dist/src/scheduler/scheduler.js.map +1 -0
- package/dist/src/smartCron.d.ts +40 -0
- package/dist/src/smartCron.d.ts.map +1 -0
- package/dist/src/smartCron.js +60 -0
- package/dist/src/smartCron.js.map +1 -0
- package/package.json +50 -0
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# Contributing to Smart Cron Manager
|
|
2
|
+
|
|
3
|
+
Thank you for your interest in contributing to Smart Cron Manager! This document provides guidelines and information for contributors.
|
|
4
|
+
|
|
5
|
+
## Development Setup
|
|
6
|
+
|
|
7
|
+
1. **Clone the repository**
|
|
8
|
+
```bash
|
|
9
|
+
git clone https://github.com/NISARG-J/smart-cron-manager
|
|
10
|
+
cd smart-cron-manager
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
2. **Install dependencies**
|
|
14
|
+
```bash
|
|
15
|
+
npm install
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
3. **Build the project**
|
|
19
|
+
```bash
|
|
20
|
+
npm run build
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
4. **Run tests**
|
|
24
|
+
```bash
|
|
25
|
+
npm test
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Development Workflow
|
|
29
|
+
|
|
30
|
+
1. **Create a feature branch**
|
|
31
|
+
```bash
|
|
32
|
+
git checkout -b feature/your-feature-name
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
2. **Make your changes**
|
|
36
|
+
- Follow the existing code style
|
|
37
|
+
- Add tests for new functionality
|
|
38
|
+
- Update documentation if needed
|
|
39
|
+
|
|
40
|
+
3. **Run tests and linting**
|
|
41
|
+
```bash
|
|
42
|
+
npm test
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
4. **Commit your changes**
|
|
46
|
+
```bash
|
|
47
|
+
git commit -m "Add: brief description of your changes"
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
5. **Push and create a pull request**
|
|
51
|
+
```bash
|
|
52
|
+
git push origin feature/your-feature-name
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Code Guidelines
|
|
56
|
+
|
|
57
|
+
### TypeScript
|
|
58
|
+
- Use strict TypeScript settings
|
|
59
|
+
- Provide type definitions for all exports
|
|
60
|
+
- Use interfaces for object shapes
|
|
61
|
+
- Avoid `any` type when possible
|
|
62
|
+
|
|
63
|
+
### Testing
|
|
64
|
+
- Write unit tests for all new functionality
|
|
65
|
+
- Aim for good test coverage
|
|
66
|
+
- Use descriptive test names
|
|
67
|
+
- Test both success and error cases
|
|
68
|
+
|
|
69
|
+
### Documentation
|
|
70
|
+
- Update README.md for API changes
|
|
71
|
+
- Update DOCS.md for detailed documentation
|
|
72
|
+
- Add JSDoc comments for public APIs
|
|
73
|
+
- Keep examples up to date
|
|
74
|
+
|
|
75
|
+
## Commit Message Format
|
|
76
|
+
|
|
77
|
+
Use the following format for commit messages:
|
|
78
|
+
```
|
|
79
|
+
Type: Brief description of the change
|
|
80
|
+
|
|
81
|
+
Optional detailed description
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Types:
|
|
85
|
+
- `Add:` - New features
|
|
86
|
+
- `Fix:` - Bug fixes
|
|
87
|
+
- `Update:` - Changes to existing functionality
|
|
88
|
+
- `Remove:` - Removed features
|
|
89
|
+
- `Docs:` - Documentation changes
|
|
90
|
+
- `Test:` - Test-related changes
|
|
91
|
+
|
|
92
|
+
## Reporting Issues
|
|
93
|
+
|
|
94
|
+
When reporting bugs, please include:
|
|
95
|
+
- Node.js version
|
|
96
|
+
- Package version
|
|
97
|
+
- Steps to reproduce
|
|
98
|
+
- Expected vs actual behavior
|
|
99
|
+
- Error messages/logs
|
|
100
|
+
|
|
101
|
+
## Feature Requests
|
|
102
|
+
|
|
103
|
+
Feature requests are welcome! Please:
|
|
104
|
+
- Check if the feature already exists
|
|
105
|
+
- Describe the use case clearly
|
|
106
|
+
- Explain why it's needed
|
|
107
|
+
- Consider backward compatibility
|
|
108
|
+
|
|
109
|
+
## License
|
|
110
|
+
|
|
111
|
+
By contributing to this project, you agree that your contributions will be licensed under the MIT License.
|