summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-11-29 22:39:36 +0100
committerGitHub <noreply@github.com>2020-11-29 16:39:36 -0500
commite81edc02b9e93f625b9767386bbef6761f7bc291 (patch)
tree3fe3c4b12c92b70efce327d8e101c6a81263f089 /Makefile
parentc4deb97ed105e923b922fae0ad8cc49327a13852 (diff)
downloadgitea-e81edc02b9e93f625b9767386bbef6761f7bc291.tar.gz
gitea-e81edc02b9e93f625b9767386bbef6761f7bc291.zip
Update JS dependencies and misc tweaks (#13741)
* Update JS dependencies and misc tweaks - Update all JS dependencies minus webpack - Adapt CodeMirrors styling to new CSS parent introduced by EasyMDE - Set eslint parser to latest and add new eslint 7.14 rule - Speed up npm install by disabling audit and fund checks - Move fomantic-ui to optional dependencies to further speed up npm - Enable syntax highlighting on GH for .eslintrc and .stylelintrc - Makefile cleanups * disable audit in npmrc * add missing dash Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index f74f1e67d4..7bf384c977 100644
--- a/Makefile
+++ b/Makefile
@@ -255,7 +255,7 @@ swagger-check: generate-swagger
echo "Please run 'make generate-swagger' and commit the result:"; \
echo "$${diff}"; \
exit 1; \
- fi;
+ fi
.PHONY: swagger-validate
swagger-validate:
@@ -296,7 +296,7 @@ fmt-check:
echo "Please run 'make fmt' and commit the result:"; \
echo "$${diff}"; \
exit 1; \
- fi;
+ fi
.PHONY: checks
checks: checks-frontend checks-backend
@@ -348,7 +348,7 @@ test-check:
echo "You should change the tests to create these files in a temporary directory."; \
echo "Do not simply add these files to .gitignore"; \
exit 1; \
- fi;
+ fi
.PHONY: test\#%
test\#%:
@@ -373,7 +373,7 @@ test-vendor: vendor
echo "Please run 'make vendor' and commit the result:"; \
echo "$${diff}"; \
exit 1; \
- fi;
+ fi
generate-ini-sqlite:
sed -e 's|{{REPO_TEST_DIR}}|${REPO_TEST_DIR}|g' \
@@ -623,7 +623,7 @@ docs:
cd docs; make trans-copy clean build-offline;
node_modules: package-lock.json
- npm install --no-save
+ npm install --no-save --no-optional
@touch node_modules
.PHONY: npm-update
@@ -637,6 +637,9 @@ npm-update: node-check | node_modules
fomantic: $(FOMANTIC_DEST)
$(FOMANTIC_DEST): $(FOMANTIC_CONFIGS) | node_modules
+ @if [ ! -d node_modules/fomantic-ui ]; then \
+ npm install --no-save; \
+ fi
rm -rf $(FOMANTIC_DEST_DIR)
cp -f web_src/fomantic/theme.config.less node_modules/fomantic-ui/src/theme.config
cp -rf web_src/fomantic/_site/* node_modules/fomantic-ui/src/_site/
@@ -664,7 +667,7 @@ svg-check: svg
echo "Please run 'make svg' and 'git add $(SVG_DEST_DIR)' and commit the result:"; \
echo "$${diff}"; \
exit 1; \
- fi;
+ fi
.PHONY: update-translations
update-translations: