diff options
author | silverwind <me@silverwind.io> | 2019-06-19 04:59:47 +0200 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-06-18 22:59:47 -0400 |
commit | a71cabbd537d2ca3f937e8fb986315ccc6701270 (patch) | |
tree | 7e25cbd146d70b5c07083097edb0c7dda53aa9c2 /docs/content/doc/advanced | |
parent | 33ad5548002156f7fb7779870571600c0a181c85 (diff) | |
download | gitea-a71cabbd537d2ca3f937e8fb986315ccc6701270.tar.gz gitea-a71cabbd537d2ca3f937e8fb986315ccc6701270.zip |
add 'npm' and 'npm-update' make targets and lockfile (#7246)
* add 'npm' and 'npm-update' make targets and lockfile
- `make npm` installs and updates node_modules, triggered automatically
on `make css` and `make js` as it completes reasonably fast and
ensures consistent modules.
- `make npm-update` updates all dependencies to their latest version,
regenerates `node_modules` from scratch and updates
`package-lock.json`. It uses npm modules `updates` written by yours
truly to find the latest version of each dependency.
* add suggested make dependencies
* remove package-lock.json during npm-update
* regenerate package-lock.json
Diffstat (limited to 'docs/content/doc/advanced')
-rw-r--r-- | docs/content/doc/advanced/hacking-on-gitea.en-us.md | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/docs/content/doc/advanced/hacking-on-gitea.en-us.md b/docs/content/doc/advanced/hacking-on-gitea.en-us.md index 481f26dcf8..d04cdfca5b 100644 --- a/docs/content/doc/advanced/hacking-on-gitea.en-us.md +++ b/docs/content/doc/advanced/hacking-on-gitea.en-us.md @@ -138,14 +138,7 @@ make vet lint misspell-check ### Updating CSS -To generate the CSS, you will need [Node.js](https://nodejs.org/) 8.0 or greater and the build dependencies: - -```bash -npm install -``` - -At present we use [less](http://lesscss.org/) and [postcss](https://postcss.org) to generate our CSS. Do -**not** edit the files in `public/css` directly, as they are generated from `lessc` from the files in `public/less`. +To generate the CSS, you will need [Node.js](https://nodejs.org/) 8.0 or greater with npm. At present we use [less](http://lesscss.org/) and [postcss](https://postcss.org) to generate our CSS. Do **not** edit the files in `public/css` directly, as they are generated from `lessc` from the files in `public/less`. Edit files in `public/less`, run the linter, regenerate the CSS and commit all changed files: @@ -155,13 +148,7 @@ make css ### Updating JS -To run the JavaScript linter you will need [Node.js](https://nodejs.org/) 8.0 or greater and the build dependencies: - -```bash -npm install -``` - -Edit files in `public/js` and run the linter: +To run the JavaScript linter you will need [Node.js](https://nodejs.org/) 8.0 or greater with npm. Edit files in `public/js` and run the linter: ```bash make js @@ -250,7 +237,7 @@ TAGS="bindata sqlite sqlite_unlock_notify" make generate build test-sqlite ``` will run the integration tests in an sqlite environment. Other database tests -are available but may need adjustment to the local environment. +are available but may need adjustment to the local environment. Look at [`integrations/README.md`](https://github.com/go-gitea/gitea/blob/master/integrations/README.md) |