2.9 KiB
2.9 KiB
Contributing
- Love your input! Contributing to this project should be as easy and transparent as possible, whether it's:
- Reporting a bug
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
- Becoming a maintainer
Pull Request Process
- GitHub flow is used
- Your pull requests are actively welcomed.
- The steps:
- Fork the repo and create your branch from master.
- If you've added code that should be tested, add tests.
- If you've changed APIs, update the documentation.
- Ensure the test suite passes.
- Make sure your code lints.
- Issue that pull request!
- 🙏 DO
- Document your changes in the pull request
- ❗ DON'T
- Do not update the versions, current version is only set by the maintainer and updated automatically by bump-everywhere
Guidelines
Extend scripts
- Create a pull request for application.yaml
- 🙏 For any new script, please add
revertCodeanddocsvalues if possible. - Structure of
scriptobject:name:string(required)- Name of the script
- E.g.
Disable targeted ads
code:string(required)- Batch file commands that will be executed
docs:string|[ string, ... ]- Documentation URL or list of URLs for those who wants to learn more about the script
- E.g.
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_telemetry
revertCode:string- Code that'll undo the change done by
codeproperty. - E.g. let's say
codesets an environment variable assetx POWERSHELL_TELEMETRY_OPTOUT 1- then
revertCodeshould be doingsetx POWERSHELL_TELEMETRY_OPTOUT 0
- then
- Code that'll undo the change done by
recommend:"standard"|"strict"|undefined(default)- If not defined then the script will not be recommended
- If defined it can be either
standard: Will be recommended for general usersstrict: Will only be recommended with a warning
- See typings for documentation as code.
Handle the state in presentation layer
- There are two types of components:
- Stateless, extends
Vue - Stateful, extends
StatefulVue- The source of truth for the state lies in application layer (
./src/application/) and must be updated from the views if they're mutating the state - They mutate or/and reacts to changes in application state.
- You can react by getting the state and listening to it and update the view accordingly in
mounted()method.
- The source of truth for the state lies in application layer (
- Stateless, extends
License
By contributing, you agree that your contributions will be licensed under its GNU General Public License v3.0.