My Forgejo fork. Changes are in FORK.md.
Find a 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 Comment help text for issues (#2281) 2017-08-09 12:13:33 +08:00
assets Add task to generate images from SVG and change to new logo (#2194) 2017-07-28 13:51:20 +08:00
cmd improve protected branch to add whitelist support (#2451) 2017-09-14 16:16:22 +08:00
conf Disable custom Git Hooks globally via configuration file (#2450) 2017-09-12 12:25:42 +03:00
contrib Basic VSCode configuration for building and debugging (#2483) 2017-09-12 20:27:44 +08:00
docker Use sqlite3 database as default for Docker image (#2182) 2017-07-26 15:21:23 +08:00
integrations Fix /api/repo/search integration tests (#2550) 2017-09-20 12:24:38 +03:00
models Fix can_push value to false in protected_branch (#2560) 2017-09-20 17:52:23 +03:00
modules Sync releases table with tags on push and for mirrors (#2459) 2017-09-20 13:26:49 +08:00
options Make basic functionality work without JavaScript (#2541) 2017-09-19 01:03:01 +02:00
public Use standard lessc and minify CSS using Node.js (#2337) 2017-09-21 11:35:11 +08:00
routers Sync releases table with tags on push and for mirrors (#2459) 2017-09-20 13:26:49 +08:00
scripts Make sure both scripts/ can live side by side (#1264) 2017-03-15 16:11:26 +01:00
templates Sync releases table with tags on push and for mirrors (#2459) 2017-09-20 13:26:49 +08:00
vendor Sort repository tree entries in natural way (#2506) 2017-09-19 11:37:03 +03:00
.changelog.yml Add changelog config file for generate changelog (#2461) 2017-09-04 13:07:57 +03:00
.dockerignore Bug fixed for .dockerignore (#329) 2016-12-01 23:05:28 +08:00
.drone.yml Use standard lessc and minify CSS using Node.js (#2337) 2017-09-21 11:35:11 +08:00
.editorconfig switch gitter to discord for drone. (#1971) 2017-06-15 10:47:42 +08:00
.gitattributes ignore static files statstics for linguist 2016-12-27 16:49:25 +01:00
.gitignore Use standard lessc and minify CSS using Node.js (#2337) 2017-09-21 11:35:11 +08:00
.lgtm Added ignore_maintainers_file option to .lgtm 2016-11-07 16:36:37 +01:00
CHANGELOG.md add release notes of v1.1.4 (#2463) 2017-09-05 09:00:55 +03:00
CONTRIBUTING.md Use standard lessc and minify CSS using Node.js (#2337) 2017-09-21 11:35:11 +08:00
DCO follow the advisor: add DCO and some improvements 2016-11-04 16:43:41 +08:00
Dockerfile Dockerfile: Updated alpine image to 3.6. (#2486) 2017-09-13 14:37:42 +08:00
Dockerfile.aarch64 Dockerfile: Updated alpine image to 3.6. (#2486) 2017-09-13 14:37:42 +08:00
Dockerfile.rpi Dockerfile: Updated alpine image to 3.6. (#2486) 2017-09-13 14:37:42 +08:00
LICENSE Fix typo 2016-11-08 08:42:05 +01:00
main.go Fix for #828: Embed build tags (#1051) 2017-02-28 08:40:02 +08:00
MAINTAINERS add @daviian as maintainer (#2552) 2017-09-19 23:03:31 +02:00
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.md add codecov.io service. (#2493) 2017-09-13 20:57:55 +08:00
README_ZH.md Update links to Discord server 2017-06-11 19:42:08 +02:00

简体中文

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.