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
1821b5a1
authored
2015-12-16 10:57:33 -0600
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Configure jshint, and fix the errors it reported.
1 parent
e4b534f3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
Gruntfile.js
grunt-monty-python.js
package.json
Gruntfile.js
View file @
1821b5a
...
...
@@ -7,6 +7,23 @@ module.exports = function(grunt) {
var
config
=
{};
config
.
jshint
=
{
options
:
{
reporter
:
require
(
'jshint-stylish'
),
esnext
:
true
,
bitwise
:
true
,
camelcase
:
true
,
curly
:
true
,
eqeqeq
:
true
,
immed
:
true
,
indent
:
4
,
latedef
:
true
,
newcap
:
true
,
noarg
:
true
,
proto
:
true
,
quotmark
:
'single'
,
undef
:
true
,
unused
:
'vars'
,
strict
:
true
,
},
all
:
[
'grunt-monty-python.js'
,
...
...
grunt-monty-python.js
View file @
1821b5a
/* global module:false */
/*
* grunt-monty-python
*
...
...
@@ -5,6 +6,7 @@
module
.
exports
=
function
(
grunt
)
{
/* global require:false */
'use strict'
;
var
_
=
require
(
'lodash'
);
...
...
@@ -87,7 +89,6 @@ module.exports = function (grunt) {
];
*/
for
(
var
key
in
requireModules
)
{
var
keyS
=
JSON
.
stringify
(
key
);
var
value
=
requireModules
[
key
];
var
included
=
[];
for
(
var
i
=
0
;
i
<
value
.
length
;
i
++
)
{
...
...
@@ -139,7 +140,6 @@ module.exports = function (grunt) {
base
:
'src'
,
},
mpConfig
);
var
featureFlags
=
{};
var
holyGrailTmp
=
'.grunt/holygrail'
;
var
initConfig
=
{
clean
:
{
...
...
@@ -282,6 +282,7 @@ module.exports = function (grunt) {
var
htmlSourceDir
;
if
(
mpConfig
.
punch
)
{
grunt
.
registerMultiTask
(
'punch'
,
'run punch externally to create html files'
,
function
()
{
/* jshint camelcase:false */
var
done
=
this
.
async
();
var
options
=
this
.
options
();
var
target
=
this
.
target
;
...
...
package.json
View file @
1821b5a
...
...
@@ -29,6 +29,7 @@
"grunt-rev"
:
"~0"
,
"grunt-svgmin"
:
"~0"
,
"grunt-usemin"
:
"~2"
,
"jshint-stylish"
:
"~0"
,
"load-grunt-tasks"
:
"~0"
,
"lodash"
:
"~2"
,
"punch"
:
"~0.5.46"
,
...
...
Please
register
or
sign in
to post a comment