You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
angular-local-storage/Gruntfile.js

54 lines
939 B
JavaScript

module.exports = function(grunt) {
'use strict';
// Load the grunt tasks
require('load-grunt-tasks')(grunt);
// Time the grunt tasks
require('time-grunt')(grunt);
grunt.initConfig({
karma: {
options: {
autowatch: false,
browsers: [
'PhantomJS'
],
configFile: 'test/karma.conf.js',
reporters: [ 'dots' ],
singleRun: true
},
unit: {}
},
jshint: {
grunt: {
src: [ 'Gruntfile.js' ],
options: {
node: true
}
},
dev: {
src: [ 'localStorageModule.js' ],
options: {
jshintrc: '.jshintrc',
}
},
test: {
src: [ 'test/spec/**/*.js' ],
options: {
jshintrc: 'test/.jshintrc',
}
}
}
});
grunt.registerTask('test', [
'karma'
]);
grunt.registerTask('default', [
'jshint',
'test'
]);
};