Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
endyjasmi committed Oct 29, 2014
0 parents commit eaebef2
Show file tree
Hide file tree
Showing 7 changed files with 116 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/node_modules/
/vendor/
composer.lock
*.sublime-workspace
81 changes: 81 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
module.exports = function(grunt)
{
"use strict";

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

connect: {
docs: {
options: {
base: 'docs',
livereload: true,
port: 4004
}
}
},

phpcs: {
tests: {
dir: ['src/**/*.php', 'tests/**/*.php'],
options: {
bin: 'vendor/bin/phpcs',
standard: 'psr2'
}
}
},

phpdocumentor: {
src: {
options: {
directory: 'src/',
target: 'docs'
}
}
},

phpunit: {
tests: {
options: {
bin: 'vendor/bin/phpunit'
}
}
},

watch: {
config: {
files: 'Gruntfile.js',
options: {
reload: true
}
},

src: {
files: 'src/**/*.php',
tasks: ['test', 'docs'],
options: {
livereload: true
}
},

tests: {
files: 'tests/**/*.php',
tasks: ['test'],
options: {
reload: true
}
}
}
});

grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-phpcs');
grunt.loadNpmTasks('grunt-phpdocumentor');
grunt.loadNpmTasks('grunt-phpunit');

grunt.registerTask('default', ['connect', 'watch']);

grunt.registerTask('test', ['phpunit:tests', 'phpcs:tests']);
grunt.registerTask('docs', ['phpdocumentor:src']);
};
14 changes: 14 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"autoload": {

},
"require": {

},
"require-dev": {
"squizlabs/php_codesniffer": "1.*",
"phpunit/phpunit": "4.*",
"mockery/mockery": "0.*",
"phpdocumentor/phpdocumentor": "2.*"
}
}
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"dependencies": {
"grunt": "^0.4.5",
"grunt-contrib-connect": "^0.8.0",
"grunt-contrib-watch": "^0.6.1",
"grunt-phpcs": "^0.2.2",
"grunt-phpdocumentor": "^0.4.1",
"grunt-phpunit": "^0.3.3"
}
}
7 changes: 7 additions & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<phpunit bootstrap="vendor/autoload.php" colors="true" stopOnError="true">
<testsuites>
<testsuite>
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
Empty file added src/.gitkeep
Empty file.
Empty file added tests/.gitkeep
Empty file.

0 comments on commit eaebef2

Please sign in to comment.