Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
07b5f126
Commit
07b5f126
authored
Jul 19, 2013
by
Timmy Willison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lint JSON manifests during development
parent
c33108ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
Gruntfile.js
Gruntfile.js
+12
-7
package.json
package.json
+2
-1
No files found.
Gruntfile.js
View file @
07b5f126
...
...
@@ -73,7 +73,14 @@ module.exports = function( grunt ) {
]
}
},
jsonlint
:
{
pkg
:
{
src
:
[
"package.json"
]
},
bower
:
{
src
:
[
"bower.json"
]
}
},
jshint
:
{
dist
:
{
src
:
[
"dist/jquery.js"
],
...
...
@@ -92,16 +99,13 @@ module.exports = function( grunt ) {
}
}
},
testswarm
:
{
tests
:
"ajax attributes callbacks core css data deferred dimensions effects event manipulation offset queue selector serialize support traversing Sizzle"
.
split
(
" "
)
},
watch
:
{
files
:
[
"<%= jshint.grunt.src %>"
,
"<%= jshint.tests.src %>"
,
"src/**/*.js"
],
tasks
:
"dev"
},
"pre-uglify"
:
{
all
:
{
files
:
{
...
...
@@ -583,10 +587,11 @@ module.exports = function( grunt ) {
grunt
.
loadNpmTasks
(
"grunt-contrib-watch"
);
grunt
.
loadNpmTasks
(
"grunt-contrib-jshint"
);
grunt
.
loadNpmTasks
(
"grunt-contrib-uglify"
);
// Default grunt
grunt
.
registerTask
(
"default"
,
[
"selector"
,
"build:*:*"
,
"jshint"
,
"pre-uglify"
,
"uglify"
,
"post-uglify"
,
"dist:*"
,
"compare_size"
]
);
grunt
.
loadNpmTasks
(
"grunt-jsonlint"
);
// Short list as a high frequency watch task
grunt
.
registerTask
(
"dev"
,
[
"selector"
,
"build:*:*"
,
"jshint"
]
);
// Default grunt
grunt
.
registerTask
(
"default"
,
[
"jsonlint"
,
"dev"
,
"pre-uglify"
,
"uglify"
,
"post-uglify"
,
"dist:*"
,
"compare_size"
]
);
};
package.json
View file @
07b5f126
...
...
@@ -31,7 +31,8 @@
"
grunt-contrib-uglify
"
:
"
~0.2.2
"
,
"
gzip-js
"
:
"
0.3.2
"
,
"
testswarm
"
:
"
~1.1.0
"
,
"
archiver
"
:
"
~0.4.6
"
"
archiver
"
:
"
~0.4.6
"
,
"
grunt-jsonlint
"
:
"
~1.0.0
"
},
"keywords"
:
[]
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment