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
59c643b8
authored
2016-12-16 20:51:16 -0600
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fix jshint.all and jscs.all processing.
1 parent
500cc465
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
Gruntfile.js
grunt-monty-python.js
Gruntfile.js
View file @
59c643b
...
...
@@ -35,6 +35,9 @@ module.exports = function(grunt) {
options
:
{
validateIndentation
:
4
,
},
all
:
[
'grunt-monty-python.js'
,
],
};
config
.
punch
=
{
};
...
...
grunt-monty-python.js
View file @
59c643b
...
...
@@ -253,7 +253,7 @@ module.exports = function (grunt) {
_
.
each
(
arguments
,
function
(
item
)
{
if
(
_
.
isArray
(
item
))
{
items
=
items
.
concat
(
item
);
}
else
if
(
item
!=
null
)
{
}
else
if
(
item
!=
=
null
)
{
items
.
push
(
item
);
}
});
...
...
@@ -265,9 +265,11 @@ module.exports = function (grunt) {
}
initConfig
[
name
]
=
{
options
:
mpConfig
[
name
].
options
,
all
:
[
'Gruntfile.js'
,
all
:
{
files
:
[
{
src
:
'Gruntfile.js'
},
],
},
main
:
{
options
:
_
.
extend
({},
mpConfig
[
name
].
browserOptions
,
browserOptions
),
files
:
makeFilesSpec
(
''
,
mpConfig
.
mainDirs
),
...
...
@@ -281,7 +283,7 @@ module.exports = function (grunt) {
files
:
makeFilesSpec
(
mpConfig
.
viewDir
,
mpConfig
.
viewDirs
),
},
};
jscheckerAddExtra
(
mpConfig
[
name
].
all
,
initConfig
[
name
]
,
'all
'
);
jscheckerAddExtra
(
mpConfig
[
name
].
all
,
initConfig
[
name
]
.
all
.
files
,
'src
'
);
jscheckerAddExtra
(
mpConfig
[
name
].
main
,
initConfig
[
name
].
main
.
files
,
'src'
);
jscheckerAddExtra
(
mpConfig
[
name
].
model
,
initConfig
[
name
].
model
.
files
,
'src'
);
jscheckerAddExtra
(
mpConfig
[
name
].
view
,
initConfig
[
name
].
view
.
files
,
'src'
);
...
...
Please
register
or
sign in
to post a comment