-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use just for development instead on npm run
This behaves slightly more sensibly when calling it recursively.
- Loading branch information
Showing
13 changed files
with
105 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
fix: fix-js fix-styles | ||
|
||
fix-styles: fix-styles-lint fix-styles-prettify | ||
|
||
fix-styles-lint: | ||
npm exec -- stylelint styles/*.scss --fix | ||
|
||
fix-styles-prettify: | ||
npm exec -- prettier styles/*.scss --check --write | ||
|
||
fix-js: | ||
npm exec -- eslint --ext .jsx,.js . --fix | ||
|
||
check: lint-js check-styles | ||
|
||
lint-js: | ||
npm exec -- eslint --ext .jsx,.js . | ||
|
||
check-styles: check-styles-lint check-styles-prettify | ||
|
||
check-styles-lint: | ||
npm exec -- stylelint styles/*.scss | ||
|
||
check-styles-prettify: | ||
npm exec -- prettier styles/*.scss --check | ||
|
||
dev: | ||
npm exec -- parcel watch index.html --dist-dir ../public/ --public-url ./ | ||
|
||
build: | ||
npm exec -- parcel build index.html --dist-dir ../public/ --public-url ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
analyse-server: | ||
composer exec -- phpstan analyse --memory-limit 512M | ||
|
||
bump-version version: | ||
utils/bump-version.js {{version}} | ||
|
||
check: check-client check-server | ||
|
||
check-client: | ||
just client/check | ||
|
||
check-server: lint-server cs-server test-server analyse-server | ||
|
||
cs-server: | ||
composer exec -- php-cs-fixer fix --verbose --dry-run --diff | ||
|
||
dev: | ||
just client/dev | ||
|
||
build: | ||
just client/build | ||
|
||
dist: | ||
python3 utils/create-zipball.py | ||
|
||
fix: fix-client fix-server | ||
|
||
fix-client: | ||
just client/fix | ||
|
||
fix-server: | ||
composer exec -- php-cs-fixer fix --verbose --diff | ||
|
||
install-dependencies: install-dependencies-client install-dependencies-server | ||
|
||
install-dependencies-client: | ||
npm install --production=false --prefix client/ | ||
|
||
install-dependencies-server: | ||
composer install --dev | ||
|
||
lint-server: | ||
composer exec -- parallel-lint src tests | ||
|
||
test-server: | ||
composer exec -- simple-phpunit --bootstrap tests/bootstrap.php tests | ||
|
||
test-integration: | ||
python3 tests/integration/run.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters