was.wm.js
/trunk/Gruntfile.js |
@@ -17,12 +17,8 @@ |
stripBanners: true |
}, |
dist: { |
src: [ |
'node_modules/interact.js/interact.js', |
'node_modules/js-cookie/src/js.cookie.js', |
'lib/**/*.js' |
], |
dest: 'dist/<%= pkg.name %>' // <%= pkg.name %>.js -> was.wm.js |
src: ['lib/*.js'], |
dest: 'dist/<%= pkg.name %>.js' |
} |
}, |
uglify: { |
@@ -31,7 +27,7 @@ |
}, |
dist: { |
src: '<%= concat.dist.dest %>', |
dest: 'dist/was.wm.min.js' // <%= pkg.name %>.min.js -> was.wm.min.js |
dest: 'dist/<%= pkg.name %>.min.js' |
} |
}, |
jshint: { |
@@ -48,16 +44,8 @@ |
boss: true, |
eqnull: true, |
globals: { |
'$': false, |
'module': false, |
'document' : false, |
'window' : false, |
'interact' : false, |
'Cookies' : false, |
jQuery: true |
}, |
// spread/rest operator |
esnext: true |
'$': false |
} |
}, |
gruntfile: { |
src: 'Gruntfile.js' |
@@ -69,16 +57,6 @@ |
nodeunit: { |
files: ['test/**/*_test.js'] |
}, |
sass: { |
dist: { |
options: { |
style: 'expanded' |
}, |
files: { |
'css/wm.css': 'css/wm.scss' |
} |
} |
}, |
watch: { |
gruntfile: { |
files: '<%= jshint.gruntfile.src %>', |
@@ -92,9 +70,8 @@ |
}); |
|
// These plugins provide necessary tasks. |
grunt.loadNpmTasks('grunt-contrib-sass'); |
grunt.loadNpmTasks('grunt-contrib-concat'); |
grunt.loadNpmTasks('grunt-contrib-uglify-es'); |
grunt.loadNpmTasks('grunt-contrib-uglify'); |
//grunt.loadNpmTasks('grunt-contrib-nodeunit'); |
grunt.loadNpmTasks('grunt-contrib-jshint'); |
grunt.loadNpmTasks('grunt-contrib-watch'); |
@@ -103,7 +80,6 @@ |
grunt.registerTask( |
'default', |
[ |
'sass', |
'jshint', |
//'nodeunit', |
'concat', |