Bladeren bron

refactor(grunt): Adds support for minification and minified source map.

Estevão Soares dos Santos 10 jaren geleden
bovenliggende
commit
0a8d2836c7
3 gewijzigde bestanden met toevoegingen van 4 en 13 verwijderingen
  1. 2 13
      Gruntfile.js
  2. 2 0
      dist/showdown.min.js
  3. 0 0
      dist/showdown.min.js.map

+ 2 - 13
Gruntfile.js

@@ -20,6 +20,7 @@ module.exports = function (grunt) {
         },
         uglify: {
             options: {
+                sourceMap: true,
                 banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n'
             },
             dist: {
@@ -55,21 +56,9 @@ module.exports = function (grunt) {
     grunt.loadNpmTasks('grunt-contrib-jshint');
     grunt.loadNpmTasks('grunt-simple-mocha');
 
-    // test
-    /*
-    grunt.registerTask('sourceMapsSupport', function() {
-        'use strict';
-
-        //# sourceMappingURL=path/to/source.map
-        sourceMapSupport.install();
-    });
-    */
-    grunt.registerTask('lint', ['jshint']);
     grunt.registerTask('test', ['jshint', 'concat', 'simplemocha']);
     grunt.registerTask('test-without-building', ['simplemocha']);
-
-    // build with uglify
-    grunt.registerTask('build', ['concat', 'uglify']);
+    grunt.registerTask('build', ['jshint', 'concat', 'test', 'uglify']);
 
     // Default task(s).
     grunt.registerTask('default', []);

File diff suppressed because it is too large
+ 2 - 0
dist/showdown.min.js


File diff suppressed because it is too large
+ 0 - 0
dist/showdown.min.js.map


Some files were not shown because too many files changed in this diff