was.wm.js – Blame information for rev 6

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 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: {
4 office 20 src: ['lib/**/*.js'],
21 dest: 'dist/<%= pkg.name %>' // <%= pkg.name %>.js -> was.wm.js
1 office 22 }
23 },
24 uglify: {
25 options: {
26 banner: '<%= banner %>'
27 },
28 dist: {
29 src: '<%= concat.dist.dest %>',
4 office 30 dest: 'dist/was.wm.min.js' // <%= pkg.name %>.min.js -> was.wm.min.js
1 office 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: {
4 office 47 '$': false,
48 'module': false,
49 'document' : false,
50 'window' : false,
51 'interact' : false,
52 'Cookies' : false,
53 jQuery: true
54 },
55 // spread/rest operator
56 esnext: true
1 office 57 },
58 gruntfile: {
59 src: 'Gruntfile.js'
60 },
61 lib_test: {
62 src: ['lib/**/*.js', 'test/**/*.js']
63 }
64 },
65 nodeunit: {
66 files: ['test/**/*_test.js']
67 },
6 office 68 sass: {
69 dist: {
70 options: {
71 style: 'expanded'
72 },
73 files: {
74 'css/wm.css': 'css/wm.scss'
75 }
76 }
77 },
1 office 78 watch: {
79 gruntfile: {
80 files: '<%= jshint.gruntfile.src %>',
81 tasks: ['jshint:gruntfile']
82 },
83 lib_test: {
84 files: '<%= jshint.lib_test.src %>',
85 tasks: ['jshint:lib_test', 'nodeunit']
86 }
87 }
88 });
89  
90 // These plugins provide necessary tasks.
6 office 91 grunt.loadNpmTasks('grunt-contrib-sass');
1 office 92 grunt.loadNpmTasks('grunt-contrib-concat');
4 office 93 grunt.loadNpmTasks('grunt-contrib-uglify-es');
1 office 94 //grunt.loadNpmTasks('grunt-contrib-nodeunit');
95 grunt.loadNpmTasks('grunt-contrib-jshint');
96 grunt.loadNpmTasks('grunt-contrib-watch');
97  
98 // Default task.
99 grunt.registerTask(
100 'default',
101 [
6 office 102 'sass',
1 office 103 'jshint',
104 //'nodeunit',
105 'concat',
106 'uglify'
107 ]
108 );
109  
110 };