فهرست منبع

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

Estevão Soares dos Santos 10 سال پیش
والد
کامیت
0a8d2836c7
3فایلهای تغییر یافته به همراه4 افزوده شده و 13 حذف شده
  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', []);

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 2 - 0
dist/showdown.min.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/showdown.min.js.map


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است