Skip to content

Commit

Permalink
added composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Apr 3, 2014
1 parent c0debe5 commit c0de61f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor
/composer.lock
23 changes: 23 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "nette/code-checker",
"description": "A simple tool to source code against a set of coding standards.",
"type": "project",
"license": ["BSD-3-Clause", "GPL-2.0", "GPL-3.0"],
"authors": [
{
"name": "David Grudl",
"homepage": "http://davidgrudl.com"
}
],
"require": {
"php": ">= 5.3.1",
"nette/utils": "~2.2",
"nette/finder": "~2.2",
"nette/neon": "~2.2",
"latte/latte": "~2.2",
"nette/application": "~2.2",
"nette/forms": "~2.2",
"nette/caching": "~2.2"
},
"bin": ["src/code-checker.php"]
}
5 changes: 4 additions & 1 deletion src/code-checker.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
* This file is part of the Nette Framework (http://nette.org)
*/

require __DIR__ . '/../nette.min.php';
if (@!include __DIR__ . '/../vendor/autoload.php') {
echo('Install packages using `composer update`');
exit(1);
}

use Nette\Utils\Strings;

Expand Down

0 comments on commit c0de61f

Please sign in to comment.