Skip to content

Commit

Permalink
Merge branch 'jembi/ohm-463-apply-standard-as-linter'
Browse files Browse the repository at this point in the history
  • Loading branch information
bausmeier committed Sep 20, 2017
2 parents 654af9b + 29665d3 commit 836f2c2
Show file tree
Hide file tree
Showing 101 changed files with 9,159 additions and 10,024 deletions.
24 changes: 0 additions & 24 deletions .jshintrc

This file was deleted.

57 changes: 16 additions & 41 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Generated on 2014-04-03 using generator-angular 0.8.0
'use strict';
'use strict'

// # Globbing
// for performance reasons we're only matching one level down:
Expand All @@ -8,18 +8,16 @@
// 'test/spec/**/*.js'

module.exports = function (grunt) {

// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
require('load-grunt-tasks')(grunt)

// Time how long tasks take. Can help when optimizing build times
require('time-grunt')(grunt);
require('time-grunt')(grunt)

// Define the configuration for all the tasks
grunt.initConfig({

packageVersion: grunt.file.readJSON('package.json').version,

// Project settings
yeoman: {
// configurable paths
Expand All @@ -35,14 +33,12 @@ module.exports = function (grunt) {
},
js: {
files: ['<%= yeoman.app %>/scripts/{,*/}*.js'],
tasks: ['newer:jshint:all'],
options: {
livereload: true
}
},
jsTest: {
files: ['test/spec/{,*/}*.js'],
tasks: ['newer:jshint:test', 'karma']
files: ['test/spec/{,*/}*.js']
},
styles: {
files: ['<%= yeoman.app %>/styles/{,*/}*.css'],
Expand Down Expand Up @@ -97,24 +93,6 @@ module.exports = function (grunt) {
}
},

// Make sure code styles are up to par and there are no obvious mistakes
jshint: {
options: {
jshintrc: '.jshintrc',
reporter: require('jshint-stylish')
},
all: [
'Gruntfile.js',
'<%= yeoman.app %>/scripts/{,*/}*.js'
],
test: {
options: {
jshintrc: 'test/.jshintrc'
},
src: ['test/spec/{,*/}*.js']
}
},

// Empties folders to start fresh
clean: {
dist: {
Expand Down Expand Up @@ -335,13 +313,12 @@ module.exports = function (grunt) {
singleRun: true
}
}

});

})

grunt.registerTask('serve', function (target) {
if (target === 'dist') {
return grunt.task.run(['build', 'connect:dist:keepalive']);
return grunt.task.run(['build', 'connect:dist:keepalive'])
}

grunt.task.run([
Expand All @@ -351,22 +328,21 @@ module.exports = function (grunt) {
'autoprefixer',
'connect:livereload',
'watch'
]);
});
])
})

grunt.registerTask('server', function (target) {
grunt.log.warn('The `server` task has been deprecated. Use `grunt serve` to start a server.');
grunt.task.run(['serve:' + target]);
});
grunt.log.warn('The `server` task has been deprecated. Use `grunt serve` to start a server.')
grunt.task.run(['serve:' + target])
})

grunt.registerTask('test', [
'clean:server',
'newer:jshint',
'concurrent:test',
'autoprefixer',
'connect:test',
'karma'
]);
])

grunt.registerTask('build', [
'clean:dist',
Expand All @@ -382,11 +358,10 @@ module.exports = function (grunt) {
'rev',
'usemin',
'htmlmin'
]);
])

grunt.registerTask('default', [
'test',
'build'
]);

};
])
}
Loading

0 comments on commit 836f2c2

Please sign in to comment.