Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
grunt-monty-python
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
825a3048
authored
2015-09-22 14:57:58 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Make use of load-grunt-tasks instead of doing things ourself.
1 parent
4c9067a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
grunt-monty-python.js
package.json
grunt-monty-python.js
View file @
825a304
...
...
@@ -8,6 +8,7 @@
module
.
exports
=
function
(
grunt
)
{
var
_
=
require
(
'lodash'
);
require
(
'load-grunt-tasks'
)(
grunt
);
grunt
.
registerTask
(
'revconfig'
,
function
revconfig
()
{
var
prefix
=
grunt
.
template
.
process
(
'dist/build/scripts/'
);
var
pattern
=
prefix
+
'**/*.{js,html}'
;
...
...
@@ -194,7 +195,6 @@ module.exports = function (grunt) {
});
}
grunt
.
loadNpmTasks
(
'grunt-monty-python'
);
if
(
mpConfig
.
jshint
)
{
initConfig
.
jshint
=
{
options
:
mpConfig
.
jshint
.
options
,
...
...
@@ -215,8 +215,8 @@ module.exports = function (grunt) {
},
}
};
if
(
common
.
jshint
.
all
)
{
initConfig
.
jshint
.
all
=
initConfig
.
jshint
.
all
.
concat
(
common
.
jshint
.
all
);
if
(
mpConfig
.
jshint
.
all
)
{
initConfig
.
jshint
.
all
=
initConfig
.
jshint
.
all
.
concat
(
mpConfig
.
jshint
.
all
);
}
checkList
.
push
(
'jshint'
);
}
...
...
package.json
View file @
825a304
...
...
@@ -29,6 +29,7 @@
"grunt-rev"
:
"~0"
,
"grunt-svgmin"
:
"~0"
,
"grunt-usemin"
:
"~2"
,
"load-grunt-tasks"
:
"~0"
,
"lodash"
:
"~2"
,
"punch"
:
"~0.5.46"
,
"punch-html-fragment-content-parser"
:
"^0.5.1"
...
...
Please
register
or
sign in
to post a comment