was.wm.js – Diff between revs 1 and 4

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 1 Rev 4
Line 15... Line 15...
15 options: { 15 options: {
16 banner: '<%= banner %>', 16 banner: '<%= banner %>',
17 stripBanners: true 17 stripBanners: true
18 }, 18 },
19 dist: { 19 dist: {
20 src: ['lib/*.js'], 20 src: ['lib/**/*.js'],
21 dest: 'dist/<%= pkg.name %>.js' 21 dest: 'dist/<%= pkg.name %>' // <%= pkg.name %>.js -> was.wm.js
22 } 22 }
23 }, 23 },
24 uglify: { 24 uglify: {
25 options: { 25 options: {
26 banner: '<%= banner %>' 26 banner: '<%= banner %>'
27 }, 27 },
28 dist: { 28 dist: {
29 src: '<%= concat.dist.dest %>', 29 src: '<%= concat.dist.dest %>',
30 dest: 'dist/<%= pkg.name %>.min.js' 30 dest: 'dist/was.wm.min.js' // <%= pkg.name %>.min.js -> was.wm.min.js
31 } 31 }
32 }, 32 },
33 jshint: { 33 jshint: {
34 options: { 34 options: {
35 curly: true, 35 curly: true,
Line 42... Line 42...
42 undef: true, 42 undef: true,
43 unused: false, 43 unused: false,
44 boss: true, 44 boss: true,
45 eqnull: true, 45 eqnull: true,
46 globals: { 46 globals: {
47 '$': false 47 '$': false,
-   48 'module': false,
-   49 'document' : false,
-   50 'window' : false,
-   51 'interact' : false,
-   52 'Cookies' : false,
-   53 jQuery: true
48 } 54 },
-   55 // spread/rest operator
-   56 esnext: true
49 }, 57 },
50 gruntfile: { 58 gruntfile: {
51 src: 'Gruntfile.js' 59 src: 'Gruntfile.js'
52 }, 60 },
53 lib_test: { 61 lib_test: {
Line 69... Line 77...
69 } 77 }
70 }); 78 });
Line 71... Line 79...
71   79  
72 // These plugins provide necessary tasks. 80 // These plugins provide necessary tasks.
73 grunt.loadNpmTasks('grunt-contrib-concat'); 81 grunt.loadNpmTasks('grunt-contrib-concat');
74 grunt.loadNpmTasks('grunt-contrib-uglify'); 82 grunt.loadNpmTasks('grunt-contrib-uglify-es');
75 //grunt.loadNpmTasks('grunt-contrib-nodeunit'); 83 //grunt.loadNpmTasks('grunt-contrib-nodeunit');
76 grunt.loadNpmTasks('grunt-contrib-jshint'); 84 grunt.loadNpmTasks('grunt-contrib-jshint');
Line 77... Line 85...
77 grunt.loadNpmTasks('grunt-contrib-watch'); 85 grunt.loadNpmTasks('grunt-contrib-watch');