Skip to content

Commit

Permalink
Build first bin scripts and add composer-bin-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstauffer committed Feb 1, 2021
1 parent 85f630a commit e1bbc1b
Show file tree
Hide file tree
Showing 9 changed files with 3,146 additions and 11 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
composer.lock
vendor
/composer.lock
/vendor
/vendor-bin/**/vendor
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ If you discover any security related issues, please email hello@tighten.co inste
## Credits

- [Matt Stauffer](https://github.com/mattstauffer)
- [Tom Witkowski](https://github.com/devgummibeer) -- much of the idea and syntax for this was inspired by his `elbgoods/ci-test-tools` package
- [All Contributors](../../contributors)

## License
Expand Down
5 changes: 5 additions & 0 deletions bin/duster-tlint-fix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

set -e

vendor/bin/tlint format ${1:-./app} --no-interaction -v
5 changes: 5 additions & 0 deletions bin/duster-tlint-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

set -e

vendor/bin/tlint lint ${1:-./app} --no-interaction -v
20 changes: 11 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,27 @@
"name": "Matt Stauffer",
"email": "matt@tighten.co",
"homepage": "https://tighten.co",
"role": "CTO"
"role": "Developer"
}
],
"require": {
"php": "^7.4"
"php": "^7.4",
"bamarni/composer-bin-plugin": "^1.4"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.16",
"phpunit/phpunit": "^9.0",
"squizlabs/php_codesniffer": "^3.5",
"tightenco/tlint": "^5.0"
"phpunit/phpunit": "^9.0"
},
"scripts": {
"lint": "vendor/bin/phpcs && vendor/bin.tlint",
"format": "vendor/bin/php-cs-fixer fix --allow-risky=yes && vendor/bin/tlint format"
"post-install-cmd": ["@composer bin all install --ansi --no-interaction --quiet"],
"post-update-cmd": ["@composer bin all update --ansi --no-interaction --quiet"]
},
"config": {
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
"prefer-stable": true,
"bin": [
"bin/duster-tlint-lint",
"bin/duster-tlint-fix"
]
}
6 changes: 6 additions & 0 deletions vendor-bin/phpcs/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.18",
"squizlabs/php_codesniffer": "^3.5"
}
}
Loading

0 comments on commit e1bbc1b

Please sign in to comment.