2016-09-13 20:02:18 +02:00
|
|
|
# This file is licensed under the Affero General Public License version 3 or
|
|
|
|
# later. See the COPYING file.
|
2016-01-02 23:21:22 +01:00
|
|
|
|
2019-09-18 00:20:20 +02:00
|
|
|
all: dev-setup lint build-js-production test test-php
|
2018-10-17 21:21:54 +02:00
|
|
|
|
|
|
|
# Dev env management
|
2021-02-20 19:56:02 +01:00
|
|
|
dev-setup: clean npm-init
|
2018-10-17 21:21:54 +02:00
|
|
|
|
|
|
|
npm-init:
|
2021-02-20 19:56:02 +01:00
|
|
|
npm ci
|
2018-10-17 21:21:54 +02:00
|
|
|
|
2019-09-18 00:20:20 +02:00
|
|
|
composer-init:
|
|
|
|
composer install --prefer-dist
|
|
|
|
composer update --prefer-dist
|
|
|
|
|
2018-10-17 21:21:54 +02:00
|
|
|
npm-update:
|
|
|
|
npm update
|
|
|
|
|
|
|
|
# Building
|
|
|
|
build-js:
|
|
|
|
npm run dev
|
|
|
|
|
|
|
|
build-js-production:
|
|
|
|
npm run build
|
|
|
|
|
|
|
|
watch-js:
|
|
|
|
npm run watch
|
|
|
|
|
|
|
|
# Testing
|
|
|
|
test:
|
|
|
|
npm run test
|
|
|
|
|
|
|
|
test-watch:
|
|
|
|
npm run test:watch
|
|
|
|
|
|
|
|
test-coverage:
|
|
|
|
npm run test:coverage
|
|
|
|
|
2019-09-18 00:20:20 +02:00
|
|
|
test-php:
|
|
|
|
phpunit -c phpunit.xml
|
|
|
|
phpunit -c phpunit.integration.xml
|
|
|
|
|
|
|
|
test-php-coverage:
|
|
|
|
phpunit -c phpunit.xml --coverage-clover=coverage-unit.xml
|
|
|
|
phpunit -c phpunit.integration.xml --coverage-clover=coverage-integration.xml
|
|
|
|
|
2018-10-17 21:21:54 +02:00
|
|
|
# Linting
|
|
|
|
lint:
|
|
|
|
npm run lint
|
|
|
|
|
|
|
|
lint-fix:
|
|
|
|
npm run lint:fix
|
|
|
|
|
|
|
|
# Style linting
|
|
|
|
stylelint:
|
|
|
|
npm run stylelint
|
|
|
|
|
|
|
|
stylelint-fix:
|
|
|
|
npm run stylelint:fix
|
|
|
|
|
|
|
|
# Cleaning
|
2016-01-02 23:21:22 +01:00
|
|
|
clean:
|
2019-10-21 11:51:26 +02:00
|
|
|
rm -rf js
|
2018-10-17 21:21:54 +02:00
|
|
|
|
2016-09-13 20:02:18 +02:00
|
|
|
# Builds the source package for the app store, ignores php and js tests
|
|
|
|
appstore:
|
2021-01-18 17:41:17 +01:00
|
|
|
krankerl package
|