mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-05 16:24:21 +01:00
63 lines
937 B
JavaScript
63 lines
937 B
JavaScript
/* License: MIT.
|
|
* Copyright (C) 2013, 2014, 2015, Uri Shaked.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
module.exports = function (grunt) {
|
|
// Load grunt tasks automatically
|
|
require('load-grunt-tasks')(grunt);
|
|
|
|
grunt.initConfig({
|
|
karma: {
|
|
unit: {
|
|
configFile: 'karma.conf.js',
|
|
singleRun: true
|
|
}
|
|
},
|
|
jshint: {
|
|
options: {
|
|
jshintrc: '.jshintrc'
|
|
},
|
|
all: [
|
|
'Gruntfile.js',
|
|
'angular-moment.js',
|
|
'tests.js'
|
|
]
|
|
},
|
|
uglify: {
|
|
dist: {
|
|
options: {
|
|
sourceMap: true
|
|
},
|
|
files: {
|
|
'angular-moment.min.js': 'angular-moment.js'
|
|
}
|
|
}
|
|
},
|
|
ngdocs: {
|
|
options: {
|
|
startPage: '/',
|
|
title: false,
|
|
html5Mode: false
|
|
},
|
|
api: {
|
|
src: 'angular-moment.js',
|
|
title: 'angular-moment API Documentation'
|
|
}
|
|
}
|
|
});
|
|
|
|
grunt.registerTask('test', [
|
|
'jshint',
|
|
'karma'
|
|
]);
|
|
|
|
grunt.registerTask('build', [
|
|
'jshint',
|
|
'uglify'
|
|
]);
|
|
|
|
grunt.registerTask('default', ['build']);
|
|
};
|