File tree Expand file tree Collapse file tree 4 files changed +39
-6
lines changed Expand file tree Collapse file tree 4 files changed +39
-6
lines changed Original file line number Diff line number Diff line change 11/npm-debug.log
2+ /build
3+ /node_modules
Original file line number Diff line number Diff line change 1515 "regexp" : true ,
1616 "strict" : false ,
1717 "trailing" : true ,
18- "unused" : true
19- }
18+ "unused" : true ,
19+ "globals" : { "define" : true }
20+ }
Original file line number Diff line number Diff line change 1+ module . exports = function ( grunt ) {
2+
3+ // Project configuration.
4+ grunt . initConfig ( {
5+ pkg : grunt . file . readJSON ( 'package.json' ) ,
6+ uglify : {
7+ options : {
8+ preserveComments : 'some'
9+ } ,
10+ build : {
11+ src : '<%= pkg.name %>.js' ,
12+ dest : 'build/<%= pkg.name %>.min.js'
13+ }
14+ } ,
15+ jshint : {
16+ all : [ '*.js' ]
17+ }
18+ } ) ;
19+
20+ // Load the plugin that provides the "uglify" task.
21+ grunt . loadNpmTasks ( 'grunt-contrib-uglify' ) ;
22+ grunt . loadNpmTasks ( 'grunt-contrib-jshint' ) ;
23+
24+ // Default task(s).
25+ grunt . registerTask ( 'default' , [ 'jshint' , 'uglify' ] ) ;
26+
27+ } ;
Original file line number Diff line number Diff line change 11{
2- "scripts" : {
3- "check" : " jshint ." ,
4- "lint" : " jshint ."
2+ "name" : " jquery.mousewheel" ,
3+ "version" : " 3.1.1" ,
4+ "devDependencies" : {
5+ "grunt-contrib-jshint" : " ~0.2.0" ,
6+ "grunt-contrib-uglify" : " ~0.1.2" ,
7+ "grunt" : " ~0.4.0"
58 }
6- }
9+ }
You can’t perform that action at this time.
0 commit comments