forked from ccraig/cpoMMo
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created simple grunt task to lint php
- Loading branch information
Showing
6 changed files
with
50 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
config.php | ||
cache/pommo/* | ||
cache/pommo/ | ||
node_modules/ | ||
|
||
cache/ERROR_LOG | ||
cache/maintenance.php | ||
config.php |
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,17 @@ | ||
In an effort to improve poMMo's quality I am trying to automate some development tasks that will hopefully make the codebase better. In order to run these automated tasks there is some setup necessary. | ||
|
||
### Node.js | ||
|
||
Node.js is a platform that is needed by our task runner; Grunt. It allows you to run applications written in JavaScript in the Desktop. You can get it from [Node's website](http://nodejs.org/). | ||
|
||
### Grunt | ||
|
||
Grunt is a task runner like make, ant or rake but a litte easier to user and understand. To get it you only need to run **npm install** (after installing node.js) in the root of your poMMo folder. | ||
|
||
### Running our tasks | ||
|
||
Currently we only have one simple task that lints our php files, you can run it using this command from poMMo's root: | ||
|
||
``` | ||
grunt | ||
``` |
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 @@ | ||
- [Environment set-up](environment_setup.md) |
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,15 @@ | ||
module.exports = function(grunt) { | ||
grunt.initConfig({ | ||
phplint: { | ||
all: [ | ||
'*.php', | ||
'ajax/*.php', | ||
'classes/*.php', | ||
] | ||
} | ||
}); | ||
|
||
grunt.loadNpmTasks('grunt-phplint'); | ||
|
||
grunt.registerTask('default', ['phplint:all']); | ||
}; |
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,11 @@ | ||
{ | ||
"name": "poMMo", | ||
"version": "0.0.1", | ||
"description": "poMMo mass mailer", | ||
"author": "Adrian Ancona <soonick5@yahoo.com.mx>", | ||
"devDependencies": { | ||
"grunt": "~0.4.0", | ||
"grunt-cli": "*", | ||
"grunt-phplint": "0.0.5" | ||
} | ||
} |