aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-09-25 09:55:33 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-10-01 16:39:37 +0200
commit7fb651235128dcbca8a6683b5cdafdf835f46300 (patch)
tree28f6f36bb0b5596981dc99d46b68fcc7b62e282f /Makefile
parentf9870eec2cefef95aa563cbbbe78f2dc9dd5e128 (diff)
downloadnextcloud-server-7fb651235128dcbca8a6683b5cdafdf835f46300.tar.gz
nextcloud-server-7fb651235128dcbca8a6683b5cdafdf835f46300.zip
Use eslint
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 12 insertions, 5 deletions
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-*