Git with a cup of tea, painless self-hosted git service
Go to file
silverwind 1fbfccb4fc Use standard lessc and minify CSS using Node.js (#2337)
* Use standard lessc and minify CSS using Node.js

This changes the previous nonstandard `lessc` to the official one and
enables CSS minification via the clean-css module.

To build CSS, Node.js is required along with a `npm install` to get the
tools installed locally in node_modules so there is no dependency on
binaries in PATH. Benefits include:

- Allows one to have a standard lessc in PATH.
- Can now use command line switches on lessc.
- Minified CSS brings faster page load times and also has the benefit
  of discouraging contributors from editing CSS directly.

To build CSS, Node.js is required along with a `npm install` to get the
tools installed locally based on the information in `package.json`.

The 'make stylesheet' task was modified to run without condition. This
makes it easier to work on the make task itself without having to delete
files.

Also fixes: https://github.com/go-gitea/gitea/issues/2198

* install node, npm and modules on drone

* .PHONY

* use 'minify' to minify CSS
2017-09-21 11:35:11 +08:00
.github
assets
cmd
conf
contrib
docker
integrations
models
modules
options
public Use standard lessc and minify CSS using Node.js (#2337) 2017-09-21 11:35:11 +08:00
routers
scripts
templates
vendor
.changelog.yml
.dockerignore
.drone.yml Use standard lessc and minify CSS using Node.js (#2337) 2017-09-21 11:35:11 +08:00
.editorconfig
.gitattributes
.gitignore Use standard lessc and minify CSS using Node.js (#2337) 2017-09-21 11:35:11 +08:00
.lgtm
CHANGELOG.md
CONTRIBUTING.md Use standard lessc and minify CSS using Node.js (#2337) 2017-09-21 11:35:11 +08:00
DCO
Dockerfile
Dockerfile.aarch64
Dockerfile.rpi
LICENSE
main.go
MAINTAINERS
Makefile Use standard lessc and minify CSS using Node.js (#2337) 2017-09-21 11:35:11 +08:00
package.json Use standard lessc and minify CSS using Node.js (#2337) 2017-09-21 11:35:11 +08:00
README_ZH.md
README.md

简体中文

Gitea - Git with a cup of tea

Build Status Join the Discord chat at https://discord.gg/NsatcWJ Join the Matrix chat at https://matrix.to/#/#gitea:matrix.org codecov Go Report Card GoDoc Release

Dashboard Repository Commits History
Profile Admin Dashboard Diff
Issues Releases Organization

Purpose

The goal of this project is to make the easiest, fastest, and most painless way of setting up a self-hosted Git service. Using Go, this can be done with an independent binary distribution across all platforms which Go supports, including Linux, macOS, and Windows on x86, amd64, ARM and PowerPC architectures. Want to try it before doing anything else? Do it with the online demo! This project has been forked from Gogs.

Notes

  1. YOU MUST READ THE CONTRIBUTORS GUIDE BEFORE STARTING TO WORK ON A PULL REQUEST.
  2. If you found a vulnerability in the project, please write privately to security@gitea.io. Thanks!
  3. If you're interested in using our APIs, we have experimental support with documentation.

Docs

For more information and instructions about how to install Gitea please look at our documentation. If you cannot find some specific information, then head over to our Discord server or Matrix room to chat with us or use the forum.

Contributing

Fork -> Patch -> Push -> Pull Request

Authors

License

This project is licensed under the MIT License. See the LICENSE file for the full license text.