2019-06-19 14:53:28 +03:00
|
|
|
all: clean dev-setup build-js-production
|
2018-04-06 22:03:36 +03:00
|
|
|
|
2019-09-25 10:55:33 +03:00
|
|
|
# Dev env management
|
2021-02-20 22:14:48 +03:00
|
|
|
dev-setup: clean npm-init
|
2018-04-24 10:40:05 +03:00
|
|
|
|
|
|
|
npm-init:
|
2020-02-17 14:24:40 +03:00
|
|
|
npm ci
|
2018-04-06 22:03:36 +03:00
|
|
|
|
|
|
|
npm-update:
|
|
|
|
npm update
|
|
|
|
|
2019-09-25 10:55:33 +03:00
|
|
|
# Building
|
2018-04-06 22:03:36 +03:00
|
|
|
build-js:
|
|
|
|
npm run dev
|
|
|
|
|
|
|
|
build-js-production:
|
|
|
|
npm run build
|
|
|
|
|
|
|
|
watch-js:
|
|
|
|
npm run watch
|
|
|
|
|
2019-09-25 10:55:33 +03:00
|
|
|
# Linting
|
|
|
|
lint-fix:
|
|
|
|
npm run lint:fix
|
2018-04-06 22:03:36 +03:00
|
|
|
|
2019-09-25 19:19:42 +03:00
|
|
|
lint-fix-watch:
|
|
|
|
npm run lint:fix-watch
|
|
|
|
|
2019-09-25 10:55:33 +03:00
|
|
|
# Cleaning
|
2019-06-19 14:53:28 +03:00
|
|
|
clean:
|
|
|
|
rm -rf apps/accessibility/js/
|
|
|
|
rm -rf apps/comments/js/
|
2019-05-23 18:03:04 +03:00
|
|
|
rm -rf apps/files/js/dist/
|
2019-06-19 14:53:28 +03:00
|
|
|
rm -rf apps/files_sharing/js/dist/
|
|
|
|
rm -rf apps/files_trashbin/js/
|
|
|
|
rm -rf apps/files_versions/js/
|
|
|
|
rm -rf apps/oauth2/js/
|
2019-09-25 10:55:33 +03:00
|
|
|
rm -rf apps/settings/js/vue-*
|
2019-09-03 11:13:28 +03:00
|
|
|
rm -rf apps/systemtags/js/systemtags.*
|
2019-06-19 14:53:28 +03:00
|
|
|
rm -rf apps/twofactor_backupcodes/js
|
2019-09-03 11:13:28 +03:00
|
|
|
rm -rf apps/updatenotification/js/updatenotification.*
|
2020-06-02 13:48:37 +03:00
|
|
|
rm -rf apps/user_status/js/
|
2019-06-19 14:53:28 +03:00
|
|
|
rm -rf apps/workflowengine/js/
|
|
|
|
rm -rf core/js/dist
|
2019-09-25 10:55:33 +03:00
|
|
|
|
2019-09-03 11:13:28 +03:00
|
|
|
clean-git: clean
|
|
|
|
git checkout -- apps/accessibility/js/
|
|
|
|
git checkout -- apps/comments/js/
|
2019-05-23 18:03:04 +03:00
|
|
|
git checkout -- apps/files/js/dist/
|
2019-09-03 11:13:28 +03:00
|
|
|
git checkout -- apps/files_sharing/js/dist/
|
|
|
|
git checkout -- apps/files_trashbin/js/
|
|
|
|
git checkout -- apps/files_versions/js/
|
|
|
|
git checkout -- apps/oauth2/js/
|
2019-09-25 10:55:33 +03:00
|
|
|
git checkout -- apps/settings/js/vue-*
|
2019-09-03 11:13:28 +03:00
|
|
|
git checkout -- apps/systemtags/js/systemtags.*
|
|
|
|
git checkout -- apps/twofactor_backupcodes/js
|
|
|
|
git checkout -- apps/updatenotification/js/updatenotification.*
|
2020-06-02 13:48:37 +03:00
|
|
|
git checkout -- apps/user_status/js/
|
2019-09-03 11:13:28 +03:00
|
|
|
git checkout -- apps/workflowengine/js/
|
|
|
|
git checkout -- core/js/dist
|