1
0
Fork 0
Beyond coding. We forge. https://codeberg.org/forgejo/forgejo
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
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
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
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
.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 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
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
main.go
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

简体中文

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.