1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-29 13:48:36 +00:00

Use npm to manage fomantic and only build needed components (#9561)

* Use npm to manage fomantic

* Only build needed semantic components

* Fix make

* Don't import fonts from google sites since we have loaded

* [misc] devendor fomantic-ui and rebuild upon src or config changes only

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>

* Change sort alphabetically of semantic components

* Fix trailing slash

* fix makefile

* Remove dependency to gulp from package.json

* Fix something

* Simplife the makefile

* add missed fomantic compnent

Co-authored-by: Jakob Ackermann <das7pad@outlook.com>
This commit is contained in:
Lunny Xiao
2020-01-21 13:17:58 +08:00
committed by GitHub
parent e7322a1138
commit 5cf241b312
43 changed files with 5614 additions and 108664 deletions

59
semantic.json Normal file
View File

@@ -0,0 +1,59 @@
{
"version": "2.8.3",
"base": "node_modules/fomantic-ui",
"paths": {
"source": {
"config": "src/theme.config",
"definitions": "src/definitions/",
"site": "src/site/",
"themes": "src/themes/"
},
"output": {
"packaged": "../../public/fomantic/",
"uncompressed": "../../public/fomantic/components/",
"compressed": "../../public/fomantic/components/",
"themes": "../../public/fomantic/themes/"
},
"clean": "../../public/fomantic/"
},
"permission": false,
"autoInstall": false,
"rtl": false,
"admin": false,
"components": [
"accordion",
"breadcrumb",
"button",
"checkbox",
"comment",
"container",
"dimmer",
"divider",
"dropdown",
"form",
"grid",
"header",
"icon",
"image",
"input",
"item",
"label",
"list",
"loader",
"menu",
"message",
"modal",
"popup",
"progress",
"reset",
"search",
"segment",
"sidebar",
"site",
"sticky",
"tab",
"table",
"text",
"transition"
]
}