Przeglądaj źródła

packaging: reduce package size

Torkel Ödegaard 8 lat temu
rodzic
commit
d99c873221
2 zmienionych plików z 3 dodań i 10 usunięć
  1. 3 2
      tasks/options/clean.js
  2. 0 8
      tasks/systemjs_task.js

+ 3 - 2
tasks/options/clean.js

@@ -8,9 +8,10 @@ module.exports = function(config) {
     css: ['<%= genDir %>/css'],
     css: ['<%= genDir %>/css'],
     packaging: [
     packaging: [
       '<%= tempDir %>/public/vendor/npm/rxjs',
       '<%= tempDir %>/public/vendor/npm/rxjs',
-      '<%= tempDir %>/public/vendor/npm/teather',
-      '<%= tempDir %>/public/vendor/npm/teather-drop',
+      '<%= tempDir %>/public/vendor/npm/tether',
+      '<%= tempDir %>/public/vendor/npm/tether-drop',
       '<%= tempDir %>/public/**/*.map',
       '<%= tempDir %>/public/**/*.map',
+      '<%= tempDir %>/public/**/*.ts',
     ],
     ],
   };
   };
 };
 };

+ 0 - 8
tasks/systemjs_task.js

@@ -25,14 +25,6 @@ module.exports = function(grunt) {
     builder
     builder
       .bundle(expression, 'public_gen/app/app_bundle.js')
       .bundle(expression, 'public_gen/app/app_bundle.js')
       .then(function(res) {
       .then(function(res) {
-        console.log('Build complete', res.modules);
-
-        for (var i = 0; i < res.modules.length; i++) {
-          var modulePath = path.join('public_gen', res.modules[i]);
-          console.log(modulePath);
-          grunt.file.delete(modulePath);
-        }
-
         done();
         done();
         grunt.task.run('concat:bundle_and_boot');
         grunt.task.run('concat:bundle_and_boot');
       })
       })