|
|
|
@ -115,25 +115,40 @@ module.exports = function (grunt) {
@@ -115,25 +115,40 @@ module.exports = function (grunt) {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// Make sure code styles are up to par and there are no obvious mistakes
|
|
|
|
|
//
|
|
|
|
|
// old verison (from yeoman) was cauing error
|
|
|
|
|
// fixed via
|
|
|
|
|
// https://leanpub.com/grunt/read
|
|
|
|
|
|
|
|
|
|
jshint: { |
|
|
|
|
options: { |
|
|
|
|
jshintrc: '.jshintrc', |
|
|
|
|
reporter: require('jshint-stylish') |
|
|
|
|
node: true |
|
|
|
|
}, |
|
|
|
|
all: { |
|
|
|
|
src: [ |
|
|
|
|
'Gruntfile.js', |
|
|
|
|
'<%= yeoman.app %>/scripts/{,*/}*.js' |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
test: { |
|
|
|
|
options: { |
|
|
|
|
jshintrc: 'test/.jshintrc' |
|
|
|
|
}, |
|
|
|
|
src: ['test/spec/{,*/}*.js'] |
|
|
|
|
} |
|
|
|
|
all: [ |
|
|
|
|
'Gruntfile.js' |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
//jshint: {
|
|
|
|
|
// options: {
|
|
|
|
|
// node:true,
|
|
|
|
|
// jshintrc: '.jshintrc',
|
|
|
|
|
// reporter: require('jshint-stylish')
|
|
|
|
|
// },
|
|
|
|
|
// all: {
|
|
|
|
|
// src: [
|
|
|
|
|
// 'Gruntfile.js',
|
|
|
|
|
// '<%= yeoman.app %>/scripts/{,*/}*.js'
|
|
|
|
|
// ]
|
|
|
|
|
// },
|
|
|
|
|
// test: {
|
|
|
|
|
// options: {
|
|
|
|
|
// jshintrc: 'test/.jshintrc'
|
|
|
|
|
// },
|
|
|
|
|
// src: ['test/spec/{,*/}*.js']
|
|
|
|
|
// }
|
|
|
|
|
//},
|
|
|
|
|
|
|
|
|
|
// Empties folders to start fresh
|
|
|
|
|
clean: { |
|
|
|
|
dist: { |
|
|
|
|