123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- /* 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']);
- };
|