diff options
author | silverwind <me@silverwind.io> | 2020-02-22 12:51:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-22 08:51:58 -0300 |
commit | e938f1d945e026947fcea63ebecdfb66b766bb49 (patch) | |
tree | f1d9646930300280461977e2f3ce83ec066a63ec /docs | |
parent | 7284327a0077414a35f46feb25a95fd448547f9d (diff) | |
download | gitea-e938f1d945e026947fcea63ebecdfb66b766bb49.tar.gz gitea-e938f1d945e026947fcea63ebecdfb66b766bb49.zip |
Add frontend/backend make targets, fix source release (#10325) (#10414)
* Add frontend/backend make targets, fix source release
- Add 'make backend' and 'make frontend' make targets which are used to
build go and js/css/svg files respectively.
- The 'backend' target can be invoked without requiring Node.js to be
present on the system if pre-built frontend assets are present like
in the release source tarballs.
- Fix source releases missing 'dist' folders inside 'node_modules' which
were erronously excluded from tar.
- Store VERSION in file VERSION for the release tarballs and prefer that
file over git-derived version.
* fix release task
* fix typo
* fix another typo
Fixes: https://github.com/go-gitea/gitea/issues/10253
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/doc/installation/from-source.en-us.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/content/doc/installation/from-source.en-us.md b/docs/content/doc/installation/from-source.en-us.md index f5e12182a3..ceb263884f 100644 --- a/docs/content/doc/installation/from-source.en-us.md +++ b/docs/content/doc/installation/from-source.en-us.md @@ -114,6 +114,17 @@ recommended way to build from source is therefore: TAGS="bindata sqlite sqlite_unlock_notify" make build ``` +The `build` target is split into two sub-targets: + +- `make backend` which requires [Go 1.11](https://golang.org/dl/) or greater. +- `make frontend` which requires [Node.js 10.0.0](https://nodejs.org/en/download/) or greater. + +If pre-built frontend files are present it is possible to only build the backend: + +```bash +TAGS="bindata" make backend +`` + ## Test After following the steps above, a `gitea` binary will be available in the working directory. |