diff options
author | sunboyy | 2019-12-24 12:28:58 +0700 |
---|---|---|
committer | techknowlogick | 2019-12-24 00:28:58 -0500 |
commit | 34688e1db37cebe76df73ab47bc57764821c787c (patch) | |
tree | fb0b87ed27b336a558e3fde71b33d546c826fc2a /CONTRIBUTING.md | |
parent | e394504937f22ef6d4fa5c328adecc7f2f144394 (diff) |
Update CONTRIBUTING.md to include building JS (#9454)
* Update CONTRIBUTING.md to include building JS
Signed-off-by: sunboyy <sura_sun@hotmail.com>
* Edit minimum Node.js version in CONTRIBUTING.md
Signed-off-by: sunboyy <sura_sun@hotmail.com>
Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'CONTRIBUTING.md')
-rw-r--r-- | CONTRIBUTING.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d732fdc4c..a0134974a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -114,10 +114,10 @@ included in the next released version. ## Building Gitea Generally, the go build tools are installed as-needed in the `Makefile`. -An exception are the tools to build the CSS and images. +An exception are the tools to build the CSS, JS and images. -- To build CSS: Install [Node.js](https://nodejs.org/en/download/package-manager) at version 8.0 or above - with `npm` and then run `npm install` and `make css`. +- To build CSS and JS: Install [Node.js](https://nodejs.org/en/download/package-manager) at version 10.0 or above + with `npm` and then run `npm install`, `make css` and `make js`. - To build Images: ImageMagick, inkscape and zopflipng binaries must be available in your `PATH` to run `make generate-images`. @@ -166,7 +166,7 @@ import ( To maintain understandable code and avoid circular dependencies it is important to have a good structure of the code. The gitea code is divided into the following parts: -- **integration:** Integrations tests +- **integration:** Integrations tests - **models:** Contains the data structures used by xorm to construct database tables. It also contains supporting functions to query and update the database. Dependecies to other code in Gitea should be avoided although some modules might be needed (for example for logging). - **models/fixtures:** Sample model data used in integration tests. - **models/migrations:** Handling of database migrations between versions. PRs that changes a database structure shall also have a migration step. |