forms/Makefile

60 строки
1.1 KiB
Makefile
Исходник Обычный вид История

# Makefile for building the project
2019-05-14 02:15:45 +03:00
app_name=forms
project_dir=$(CURDIR)/../$(app_name)
build_dir=$(CURDIR)/build/artifacts
appstore_package_name=$(build_dir)/$(app_name)
source_dir=$(build_dir)/source
2019-05-14 02:15:45 +03:00
all: clean install-composer-deps install-npm-deps-dev build-js-production appstore
2019-05-14 02:15:45 +03:00
clean:
rm -rf $(build_dir)
rm -rf node_modules
rm -rf vendor
rm -rf js
install-deps: install-composer-deps-dev install-npm-deps-dev
2019-05-14 02:15:45 +03:00
install-composer-deps:
composer install --no-dev -o
2019-05-14 02:15:45 +03:00
install-composer-deps-dev:
composer install -o
install-npm-deps:
npm install --production
install-npm-deps-dev:
npm install
optimize-js: install-npm-deps-dev
npm run build
build-js:
npm run dev
build-js-production:
npm run build
watch-js:
npm run watch
dev-setup: install-composer-deps-dev install-npm-deps-dev build-js
appstore:
2021-11-10 18:26:14 +03:00
rm -rf $(build_dir)
mkdir -p $(build_dir)
tar cvzf $(appstore_package_name).tar.gz \
--exclude-vcs \
$(project_dir)/appinfo \
$(project_dir)/COPYING \
$(project_dir)/css \
$(project_dir)/img \
$(project_dir)/js \
$(project_dir)/l10n \
$(project_dir)/lib \
$(project_dir)/templates \
$(project_dir)/vendor \
$(project_dir)/CHANGELOG.md