how-to-contribute.mdx 2.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. # Contributing to AdminLTE
  2. Contributions are always **welcome and recommended**! Here is how for beginner's: [Get started with open source click here](https://youtu.be/GbqSvJs-6W4)
  3. 1. Contribution Requirements :
  4. * When you contribute, you agree to give a non-exclusive license to AdminLTE.io to use that contribution in any context as we (AdminLTE.io) see appropriate.
  5. * If you use content provided by another party, it must be appropriately licensed using an [open source](https://opensource.org/licenses) license.
  6. * Contributions are only accepted through GitHub pull requests.
  7. * Finally, contributed code must work in all supported browsers (see above for browser support).
  8. 2. Installation :
  9. * Fork the repository ([here is the guide](https://help.github.com/articles/fork-a-repo/)).
  10. * Clone to your machine
  11. ```bash
  12. git clone https://github.com/YOUR_USERNAME/AdminLTE.git
  13. ```
  14. * Create a new branch from `master`
  15. 3. Compile dist files (Development) :
  16. * To compile the dist files you need Node.js 18 or higher/npm (node package manager)
  17. * `npm install` (install npm deps)
  18. * `npm run dev` (developer mode, autocompile with browsersync support for live demo)
  19. * Make your changes only in `./src` Folder OR `package.json` in any files which are necessary for contribution
  20. * Do not make changes in `./dist/**` Because it contains compiled files and do not include in PR (Pull Request)
  21. * `npm run production` (compile css/js files and test all pages are perfectly working fine, before creating a pull request)
  22. 4. Create a pull request to `master` branch
  23. ## Online one-click setup for contributing
  24. You can use [Codespace](https://docs.github.com/en/codespaces) an online IDE which is free for Open Source for working on issues or making PRs (Pull Requests). With a single click it will launch a workspace and automatically:
  25. - clone the `AdminLTE` repo.
  26. - Open with [Codespace](https://docs.github.com/en/codespaces) or [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/from-referrer/)
  27. - install the dependencies.
  28. - run `npm run dev` to start the server.