From 5a891dc0e4d1e5c7d36609bba4bd3df5063b9745 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 4 Feb 2022 15:41:51 +0100 Subject: Update dev dependencies stylelint SASS (#4173) * Update dev dependencies stylelint SASS Major update for stylelint with breaking changes https://stylelint.io/migration-guide/to-14/ Applied automatic SASS migration to current syntax https://sass-lang.com/documentation/cli/migrator#migrations And a few manual fixes such as: https://github.com/stylelint-scss/stylelint-scss/blob/master/src/rules/dollar-variable-no-missing-interpolation/README.md Other dev dependencies are minor updates. * RTLCSS * Fix color-hex-length bug * Implement make bin/composer * Update git hash --- Makefile | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c68cda3e7..11dd5c8ea 100644 --- a/Makefile +++ b/Makefile @@ -67,6 +67,10 @@ lint: bin/phpcs ## Run the linter on the PHP files lint-fix: bin/phpcbf ## Fix the errors detected by the linter $(PHP) ./bin/phpcbf . -p -s +bin/composer: + mkdir -p bin/ + wget 'https://raw.githubusercontent.com/composer/getcomposer.org/ce43e63e47a7fca052628faf1e4b14f9100ae82c/web/installer' -O - -q | php -- --quiet --install-dir='./bin/' --filename='composer' + bin/phpunit: mkdir -p bin/ wget -O bin/phpunit https://phar.phpunit.de/phpunit-9.5.2.phar @@ -91,6 +95,12 @@ bin/typos: rm *.tar.gz ; \ cd .. +node_modules/.bin/eslint: + npm install + +vendor/bin/phpstan: bin/composer + bin/composer install --prefer-dist --no-progress + ########## ## I18N ## ########## @@ -185,20 +195,19 @@ refresh: ## Refresh feeds by fetching new messages # TODO: Add composer install .PHONY: composer-test -composer-test: - composer run-script test +composer-test: vendor/bin/phpstan + bin/composer run-script test .PHONY: composer-fix composer-fix: - composer run-script fix + bin/composer run-script fix -# TODO: Add npm install .PHONY: npm-test -npm-test: +npm-test: node_modules/.bin/eslint npm test .PHONY: npm-fix -npm-fix: +npm-fix: node_modules/.bin/eslint npm run fix .PHONY: typos-test -- cgit v1.2.3