aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/fomantic
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-04-09 07:08:14 +0200
committerGitHub <noreply@github.com>2021-04-09 01:08:14 -0400
commit0991f9aa427ab923544c35d73232fa53c9db9120 (patch)
tree8ce3f0fdbd2dfc12c9ad7b8f21ffdea406fd19d4 /web_src/fomantic
parent7088bcf61bdb748ccd902b6c8ae869340bb4b333 (diff)
downloadgitea-0991f9aa427ab923544c35d73232fa53c9db9120.tar.gz
gitea-0991f9aa427ab923544c35d73232fa53c9db9120.zip
Stop packaging node_modules in release tarballs (#15273)
- Don't package node_modules in tarballs, they are not cross-platform anymore and npm cache should not be messed with directly. Instead, require an internet connection to rebuild the UI, which is not necessary in the general use case because prebuilt UI files are shipped in the public directory. - Simplify the fomantic build and make the target phony. We don't need anything more for something that is rarely ran. - Use regular tar again to build tarballs and add variable for excludes - Disable annoying npm update notifications Fixes: https://github.com/go-gitea/gitea/pull/14578 Fixes: https://github.com/go-gitea/gitea/pull/15256 Fixes: https://github.com/go-gitea/gitea/pull/15262 Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'web_src/fomantic')
-rw-r--r--web_src/fomantic/.npmrc6
-rw-r--r--web_src/fomantic/package.json5
-rw-r--r--web_src/fomantic/semantic.json60
3 files changed, 69 insertions, 2 deletions
diff --git a/web_src/fomantic/.npmrc b/web_src/fomantic/.npmrc
index 5f8054bbb0..15ecd04e11 100644
--- a/web_src/fomantic/.npmrc
+++ b/web_src/fomantic/.npmrc
@@ -1,3 +1,5 @@
-optional=false
+audit=false
+fund=false
+update-notifier=false
package-lock=false
-cache=../../.npm-cache
+optional=false
diff --git a/web_src/fomantic/package.json b/web_src/fomantic/package.json
new file mode 100644
index 0000000000..c031c070c5
--- /dev/null
+++ b/web_src/fomantic/package.json
@@ -0,0 +1,5 @@
+{
+ "dependencies": {
+ "fomantic-ui": "2.8.7"
+ }
+}
diff --git a/web_src/fomantic/semantic.json b/web_src/fomantic/semantic.json
new file mode 100644
index 0000000000..c0fcd79a83
--- /dev/null
+++ b/web_src/fomantic/semantic.json
@@ -0,0 +1,60 @@
+{
+ "version": "2.8.7",
+ "base": "node_modules/fomantic-ui",
+ "paths": {
+ "source": {
+ "config": "src/theme.config",
+ "definitions": "src/definitions/",
+ "site": "src/site/",
+ "themes": "src/themes/"
+ },
+ "output": {
+ "packaged": "../../build/",
+ "uncompressed": "../../build/components/",
+ "compressed": "../../build/components/",
+ "themes": "../../build/themes/"
+ },
+ "clean": "../../build/"
+ },
+ "permission": false,
+ "autoInstall": false,
+ "rtl": false,
+ "admin": false,
+ "components": [
+ "accordion",
+ "api",
+ "breadcrumb",
+ "button",
+ "card",
+ "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",
+ "tab",
+ "table",
+ "text",
+ "transition"
+ ]
+}