| j | 7940eec | 2020-12-28 14:00:41 -0600 | [diff] [blame] | 1 | # Contributing
|
| 2 |
|
| j | 2e1cd83 | 2023-02-05 22:03:31 -0800 | [diff] [blame] | 3 | Before adding new features or making major changes, please open an issue or contact me at [hello@jottocraft.com](mailto:hello@jottocraft.com).
|
| j | 7940eec | 2020-12-28 14:00:41 -0600 | [diff] [blame] | 4 |
|
| 5 | ## Documentation
|
| 6 |
|
| j | 2e1cd83 | 2023-02-05 22:03:31 -0800 | [diff] [blame] | 7 | You can read the Power+ docs at [powerplus.app/docs/](https://powerplus.app/docs/).
|
| j | 7940eec | 2020-12-28 14:00:41 -0600 | [diff] [blame] | 8 |
|
| 9 | ## Code Organization
|
| 10 |
|
| 11 | - `/scripts` Power+ script files
|
| 12 | - `/scripts/lms` LMS integration files
|
| 13 | - `/www` Static website files
|
| 14 | - `/docs` JSDoc configuration
|
| 15 | - `/chrome` Chrome extension source
|
| 16 | - `/build` Public website and optimized JavaScript files generated by `npm run build`
|
| 17 |
|
| 18 | ## Development Environment
|
| 19 |
|
| 20 | To get Power+ up and running locally, you'll need git and node installed on your system.
|
| 21 |
|
| 22 | ```bash
|
| j | 2e1cd83 | 2023-02-05 22:03:31 -0800 | [diff] [blame] | 23 | git clone https://gitlab.com/jottocraft/dtps.git
|
| j | 7940eec | 2020-12-28 14:00:41 -0600 | [diff] [blame] | 24 | cd dtps
|
| 25 | npm install
|
| 26 | npm start
|
| 27 | ```
|
| 28 |
|
| 29 | When the server is ready, open Power+ and go to Settings -> About -> Show Advanced Options -> Test prerelease versions. Then, reload Power+ and go to Settings -> Prerelease testing and select "Local". This will make Power+ load from the local server instead of the live version the next time you reload.
|
| 30 |
|
| 31 | ## NPM scripts
|
| 32 | - `start` Starts an HTTP server for testing Power+ locally
|
| 33 | - `build` Minifies Power+ and generates docs into the build folder for deployment
|
| j | 2e1cd83 | 2023-02-05 22:03:31 -0800 | [diff] [blame] | 34 | - `deploy` Runs the build script, then deploys Power+ to the gh-pages branch for hosting |