BIN = vendor/bin
-all: static_analysis_summary check_permissions test
+all: check_permissions test
##
# Docker test adapter
code_sniffer:
@$(PHPCS)
-### - errors filtered by coding standard: PEAR, PSR1, PSR2, Zend...
-PHPCS_%:
- @$(PHPCS) --report-full --report-width=200 --standard=$*
-
### - errors by Git author
code_sniffer_blame:
@$(PHPCS) --report-gitblame
@# --text doesn't work with phpunit 4.* (v5 requires PHP 5.6)
@#$(BIN)/phpcov merge --text coverage/txt coverage
+### download 3rd-party PHP libraries, including dev dependencies
+composer_dependencies_dev: clean
+ composer install --prefer-dist
+
##
# Custom release archive generation
#
htmldoc:
python3 -m venv venv/
bash -c 'source venv/bin/activate; \
+ pip install wheel; \
pip install mkdocs; \
mkdocs build --clean'
find doc/html/ -type f -exec chmod a-x '{}' \;
eslint:
@yarn run eslint -c .dev/.eslintrc.js assets/vintage/js/
@yarn run eslint -c .dev/.eslintrc.js assets/default/js/
+ @yarn run eslint -c .dev/.eslintrc.js assets/common/js/
### Run CSSLint check against Shaarli's SCSS files
sasslint:
- @yarn run sass-lint -c .dev/.sasslintrc 'assets/default/scss/*.scss' -v -q
+ @yarn run stylelint --config .dev/.stylelintrc.js 'assets/default/scss/*.scss'