From 7fb651235128dcbca8a6683b5cdafdf835f46300 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Wed, 25 Sep 2019 09:55:33 +0200 Subject: Use eslint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- Makefile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 67077602634..9b24969e9f0 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ all: clean dev-setup build-js-production -dev-setup: clean-dev npm-init +# Dev env management +dev-setup: clean clean-dev npm-init npm-init: npm install @@ -8,6 +9,7 @@ npm-init: npm-update: npm update +# Building build-js: npm run dev @@ -17,9 +19,11 @@ build-js-production: watch-js: npm run watch -clean-dev: - rm -rf node_modules +# Linting +lint-fix: + npm run lint:fix +# Cleaning clean: rm -rf apps/accessibility/js/ rm -rf apps/comments/js/ @@ -27,12 +31,15 @@ clean: rm -rf apps/files_trashbin/js/ rm -rf apps/files_versions/js/ rm -rf apps/oauth2/js/ + rm -rf apps/settings/js/vue-* rm -rf apps/systemtags/js/systemtags.* rm -rf apps/twofactor_backupcodes/js rm -rf apps/updatenotification/js/updatenotification.* rm -rf apps/workflowengine/js/ rm -rf core/js/dist - rm -rf settings/js/vue-* + +clean-dev: + rm -rf node_modules clean-git: clean git checkout -- apps/accessibility/js/ @@ -41,9 +48,9 @@ clean-git: clean git checkout -- apps/files_trashbin/js/ git checkout -- apps/files_versions/js/ git checkout -- apps/oauth2/js/ + git checkout -- apps/settings/js/vue-* git checkout -- apps/systemtags/js/systemtags.* git checkout -- apps/twofactor_backupcodes/js git checkout -- apps/updatenotification/js/updatenotification.* git checkout -- apps/workflowengine/js/ git checkout -- core/js/dist - git checkout -- settings/js/vue-* -- cgit v1.2.3