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
a78bd6c7
authored
2016-05-27 10:23:22 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Allow for the model and view dir names to be configured.
1 parent
8a0b08b1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
bower.json
grunt-monty-python.js
package.json
bower.json
View file @
a78bd6c
{
"name"
:
"grunt-monty-python"
,
"version"
:
"2016.05.2
5-1
"
,
"version"
:
"2016.05.2
7-0
"
,
"ignore"
:
[
"**/.*"
,
"node_modules"
,
...
...
grunt-monty-python.js
View file @
a78bd6c
...
...
@@ -138,6 +138,8 @@ module.exports = function (grunt) {
function
createConfig
(
mpConfig
)
{
mpConfig
=
_
.
extend
({
base
:
'src'
,
modelDir
:
'model'
,
viewDir
:
'view'
,
},
mpConfig
);
var
holyGrailTmp
=
'.grunt/holygrail'
;
...
...
@@ -235,7 +237,7 @@ module.exports = function (grunt) {
options
:
_
.
extend
({},
mpConfig
[
name
].
modelOptions
,
modelOptions
,
mpConfig
[
name
].
browserOptions
,
browserOptions
),
files
:
{
src
:
[
mpConfig
.
base
+
'/scripts/
model
/**/*.js'
,
mpConfig
.
base
+
'/scripts/
'
+
mpConfig
.
modelDir
+
'
/**/*.js'
,
],
},
},
...
...
@@ -243,7 +245,7 @@ module.exports = function (grunt) {
options
:
_
.
extend
({},
mpConfig
[
name
].
viewOptions
,
viewOptions
,
mpConfig
[
name
].
browserOptions
,
browserOptions
),
files
:
{
src
:
[
mpConfig
.
base
+
'/scripts/
view
/**/*.js'
,
mpConfig
.
base
+
'/scripts/
'
+
mpConfig
.
viewDir
+
'
/**/*.js'
,
],
},
},
...
...
@@ -359,7 +361,7 @@ module.exports = function (grunt) {
},
src
:
[
htmlSourceDir
+
'/!(scripts){,**/}*.html'
,
htmlSourceDir
+
'/scripts/
view
/**/*.html'
,
htmlSourceDir
+
'/scripts/
'
+
mpConfig
.
viewDir
+
'
/**/*.html'
,
],
},
};
...
...
@@ -373,8 +375,9 @@ module.exports = function (grunt) {
assetsDirs
:
[
'dist/build'
],
},
src
:
[
'dist/build/!(scripts){,**/}*.html'
,
'dist/build/scripts/view/**/*.html'
,
'dist/build/**/*.html'
,
'!dist/build/scripts/**/*.html'
,
'dist/build/scripts/'
+
mpConfig
.
viewDir
+
'/**/*.html'
,
],
},
};
...
...
package.json
View file @
a78bd6c
{
"name"
:
"grunt-monty-python"
,
"version"
:
"2016.05.2
5-1
"
,
"version"
:
"2016.05.2
7-0
"
,
"description"
:
"Build system for grunt"
,
"license"
:
"BSD"
,
"repository"
:
{
...
...
Please
register
or
sign in
to post a comment