| 1 | Vector Skin |
| 2 | ======================== |
| 3 | |
| 4 | Installation |
| 5 | ------------ |
| 6 | |
| 7 | See <https://www.mediawiki.org/wiki/Skin:Vector>. |
| 8 | |
| 9 | ### Configuration options |
| 10 | |
| 11 | See [skin.json](skin.json). |
| 12 | |
| 13 | Also see [configuration.md](doc/configuration/configuration.md) |
| 14 | |
| 15 | Development |
| 16 | ----------- |
| 17 | |
| 18 | ### Node version |
| 19 | |
| 20 | It is recommended to use [nvm](https://github.com/nvm-sh/nvm) to use the version of node defined |
| 21 | in `.nvmrc` during local development. This ensures consistency amongst development environments. |
| 22 | |
| 23 | ### Coding conventions |
| 24 | |
| 25 | We strive for compliance with MediaWiki conventions: |
| 26 | |
| 27 | <https://www.mediawiki.org/wiki/Manual:Coding_conventions> |
| 28 | |
| 29 | Additions and deviations from those conventions that are more tailored to this |
| 30 | project are noted at: |
| 31 | |
| 32 | <https://www.mediawiki.org/wiki/Reading/Web/Coding_conventions> |
| 33 | |
| 34 | ### Pre-commit tests |
| 35 | |
| 36 | A pre-commit hook is installed when executing `npm install`. By default, it runs |
| 37 | `npm test` which is useful for automatically validating everything that can be |
| 38 | in a reasonable amount of time. If you wish to defer these tests to be executed |
| 39 | by continuous integration only, set the `PRE_COMMIT` environment variable to `0`: |
| 40 | |
| 41 | ```bash |
| 42 | $ export PRE_COMMIT=0 |
| 43 | $ git commit |
| 44 | ``` |
| 45 | |
| 46 | Or more succinctly: |
| 47 | |
| 48 | ```bash |
| 49 | $ PRE_COMMIT=0 git commit |
| 50 | ``` |
| 51 | |
| 52 | Skipping the pre-commit tests has no impact on Gerrit change identifier hooks. |
| 53 | |
| 54 | ### Hooks |
| 55 | See [hooks.txt](hooks.txt). |