123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- 'use strict';
- module.exports = function(grunt) {
- grunt.initConfig({
- pkg: grunt.file.readJSON('package.json'),
- karma: {
- unit: {
- options: {
- files: [
- 'components/angular/angular.js',
- 'components/angular-mocks/angular-mocks.js',
- 'components/chai/chai.js',
- 'ngStorage.js',
- 'test/spec.js'
- ]
- },
- frameworks: ['mocha'],
- browsers: [
- 'Chrome',
- 'PhantomJS',
- 'Firefox'
- ],
- singleRun: true
- }
- },
- uglify: {
- options: {
- banner: '/*! <%= pkg.name %> <%= pkg.version %> | Copyright (c) <%= grunt.template.today("yyyy") %> Gias Kay Lee | MIT License */'
- },
- build: {
- src: '<%= pkg.name %>.js',
- dest: '<%= pkg.name %>.min.js'
- }
- }
- });
- grunt.loadNpmTasks('grunt-contrib-uglify');
- grunt.loadNpmTasks('grunt-karma');
- grunt.registerTask('default', [
- 'karma',
- 'uglify'
- ]);
- };
|