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
0c8d6869
authored
2016-06-16 14:31:35 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Allow for mainDirs, viewDirs, and modelDirs to be specified.
1 parent
9a528e55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
grunt-monty-python.js
grunt-monty-python.js
View file @
0c8d686
...
...
@@ -240,7 +240,7 @@ module.exports = function (grunt) {
function
jscheckerAddExtra
(
src
,
container
,
dest
)
{
if
(
src
)
{
container
[
dest
]
=
container
[
dest
]
.
concat
(
src
);
container
[
dest
]
=
(
container
[
dest
]
||
[])
.
concat
(
src
);
}
}
function
createJschecker
(
name
,
browserOptions
,
modelOptions
,
viewOptions
)
{
...
...
@@ -254,27 +254,27 @@ module.exports = function (grunt) {
],
main
:
{
options
:
_
.
extend
({},
mpConfig
[
name
].
browserOptions
,
browserOptions
),
files
:
{
src
:
[
mpConfig
.
base
+
'/scripts/
*.js'
,
],
},
files
:
_
.
map
(
_
.
concat
([],
mpConfig
.
mainDirs
),
function
(
value
)
{
return
{
src
:
mpConfig
.
base
+
'/scripts/'
+
value
+
'/{,**/}
*.js'
,
};
}
)
,
},
model
:
{
options
:
_
.
extend
({},
mpConfig
[
name
].
modelOptions
,
modelOptions
,
mpConfig
[
name
].
browserOptions
,
browserOptions
),
files
:
{
src
:
[
mpConfig
.
base
+
'/scripts/'
+
mpConfig
.
modelDir
+
'/**/
*.js'
,
],
},
files
:
_
.
map
(
_
.
concat
([
mpConfig
.
modelDir
],
mpConfig
.
modelDirs
),
function
(
value
)
{
return
{
src
:
mpConfig
.
base
+
'/scripts/'
+
value
+
'/{,**/}
*.js'
,
};
}
)
,
},
view
:
{
options
:
_
.
extend
({},
mpConfig
[
name
].
viewOptions
,
viewOptions
,
mpConfig
[
name
].
browserOptions
,
browserOptions
),
files
:
{
src
:
[
mpConfig
.
base
+
'/scripts/'
+
mpConfig
.
viewDir
+
'/**/
*.js'
,
],
},
files
:
_
.
map
(
_
.
concat
([
mpConfig
.
viewDir
],
mpConfig
.
viewDirs
),
function
(
value
)
{
return
{
src
:
mpConfig
.
base
+
'/scripts/'
+
value
+
'/{,**/}
*.js'
,
};
}
)
,
},
};
jscheckerAddExtra
(
mpConfig
[
name
].
all
,
initConfig
[
name
],
'all'
);
...
...
Please
register
or
sign in
to post a comment