Skip to content
Snippets Groups Projects
Makefile 1.4 KiB
Newer Older
John Molakvoæ's avatar
John Molakvoæ committed
all: clean dev-setup build-js-production
John Molakvoæ's avatar
John Molakvoæ committed

John Molakvoæ's avatar
John Molakvoæ committed
# Dev env management
dev-setup: clean clean-dev npm-init
Julius Härtl's avatar
Julius Härtl committed
	npm ci
John Molakvoæ's avatar
John Molakvoæ committed

npm-update:
	npm update

John Molakvoæ's avatar
John Molakvoæ committed
# Building
John Molakvoæ's avatar
John Molakvoæ committed
build-js:
	npm run dev

build-js-production:
	npm run build

watch-js:
	npm run watch

John Molakvoæ's avatar
John Molakvoæ committed
# Linting
lint-fix:
	npm run lint:fix
John Molakvoæ's avatar
John Molakvoæ committed

John Molakvoæ's avatar
John Molakvoæ committed
lint-fix-watch:
	npm run lint:fix-watch

John Molakvoæ's avatar
John Molakvoæ committed
# Cleaning
John Molakvoæ's avatar
John Molakvoæ committed
clean:
	rm -rf apps/accessibility/js/
	rm -rf apps/comments/js/
John Molakvoæ's avatar
John Molakvoæ committed
	rm -rf apps/files/js/dist/
John Molakvoæ's avatar
John Molakvoæ committed
	rm -rf apps/files_sharing/js/dist/
	rm -rf apps/files_trashbin/js/
	rm -rf apps/files_versions/js/
	rm -rf apps/oauth2/js/
John Molakvoæ's avatar
John Molakvoæ committed
	rm -rf apps/settings/js/vue-*
	rm -rf apps/systemtags/js/systemtags.*
John Molakvoæ's avatar
John Molakvoæ committed
	rm -rf apps/twofactor_backupcodes/js
	rm -rf apps/updatenotification/js/updatenotification.*
Georg Ehrke's avatar
Georg Ehrke committed
	rm -rf apps/user_status/js/
John Molakvoæ's avatar
John Molakvoæ committed
	rm -rf apps/workflowengine/js/
	rm -rf core/js/dist
John Molakvoæ's avatar
John Molakvoæ committed

clean-dev:
	rm -rf node_modules

clean-git: clean
	git checkout -- apps/accessibility/js/
	git checkout -- apps/comments/js/
John Molakvoæ's avatar
John Molakvoæ committed
	git checkout -- apps/files/js/dist/
	git checkout -- apps/files_sharing/js/dist/
	git checkout -- apps/files_trashbin/js/
	git checkout -- apps/files_versions/js/
	git checkout -- apps/oauth2/js/
John Molakvoæ's avatar
John Molakvoæ committed
	git checkout -- apps/settings/js/vue-*
	git checkout -- apps/systemtags/js/systemtags.*
	git checkout -- apps/twofactor_backupcodes/js
	git checkout -- apps/updatenotification/js/updatenotification.*
Georg Ehrke's avatar
Georg Ehrke committed
	git checkout -- apps/user_status/js/
	git checkout -- apps/workflowengine/js/
	git checkout -- core/js/dist