was.js – Blame information for rev 17

Subversion Repositories:
Rev:
Rev Author Line No. Line
2 office 1 /*global module:false*/
2 module.exports = function(grunt) {
3  
4 // Project configuration.
5 grunt.initConfig({
6 // Metadata.
7 pkg: grunt.file.readJSON('package.json'),
8 banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
9 '<%= grunt.template.today("yyyy-mm-dd") %> \n' +
10 '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
11 '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author %>;' +
12 ' Licensed <%= pkg.license %> */\n',
13 // Task configuration.
14 concat: {
15 options: {
16 banner: '<%= banner %>',
17 stripBanners: true
18 },
19 dist: {
20 src: ['lib/**/*.js'],
21 dest: 'dist/<%= pkg.name %>.js'
22 }
23 },
24 uglify: {
25 options: {
26 banner: '<%= banner %>'
27 },
28 dist: {
29 src: '<%= concat.dist.dest %>',
30 dest: 'dist/<%= pkg.name %>.min.js'
31 }
32 },
33 jshint: {
34 options: {
35 curly: true,
36 eqeqeq: true,
37 immed: true,
38 latedef: true,
39 newcap: true,
40 noarg: true,
41 sub: true,
42 undef: true,
43 unused: false,
44 boss: true,
45 eqnull: true,
46 globals: {
47 '$': false
17 office 48 },
49 // spread/rest operator
50 esnext: true
2 office 51 },
52 gruntfile: {
53 src: 'Gruntfile.js'
54 },
55 lib_test: {
56 src: ['lib/**/*.js', 'test/**/*.js']
57 }
58 },
59 nodeunit: {
60 files: ['test/**/*_test.js']
61 },
62 watch: {
63 gruntfile: {
64 files: '<%= jshint.gruntfile.src %>',
65 tasks: ['jshint:gruntfile']
66 },
67 lib_test: {
68 files: '<%= jshint.lib_test.src %>',
69 tasks: ['jshint:lib_test', 'nodeunit']
70 }
71 }
72 });
73  
74 // These plugins provide necessary tasks.
75 grunt.loadNpmTasks('grunt-contrib-concat');
76 grunt.loadNpmTasks('grunt-contrib-uglify');
77 //grunt.loadNpmTasks('grunt-contrib-nodeunit');
78 grunt.loadNpmTasks('grunt-contrib-jshint');
79 grunt.loadNpmTasks('grunt-contrib-watch');
80  
81 // Default task.
82 grunt.registerTask(
83 'default',
84 [
85 'jshint',
86 //'nodeunit',
87 'concat',
88 'uglify'
89 ]
90 );
91  
92 };