Browse Source

fix(build): fixed issue with ngAnnotate not including files in core/*, fixes #2733

Torkel Ödegaard 10 years ago
parent
commit
de753bf330
3 changed files with 7 additions and 17 deletions
  1. 5 6
      public/app/core/filters/filters.ts
  2. 1 10
      tasks/options/ngAnnotate.js
  3. 1 1
      tasks/options/tslint.js

+ 5 - 6
public/app/core/filters/filters.ts

@@ -1,4 +1,5 @@
 ///<reference path="../../headers/common.d.ts" />
+'use strict';
 
 import angular = require('angular');
 import jquery = require('jquery');
@@ -59,8 +60,8 @@ module.filter('noXml', function() {
   };
 });
 
-module.filter('interpolateTemplateVars', function(templateSrv) {
-  var interpolateTemplateVars : any = function (text, scope) {
+module.filter('interpolateTemplateVars', function (templateSrv) {
+  var filterFunc : any = function (text, scope) {
     if (scope.panel) {
       return templateSrv.replaceWithText(text, scope.panel.scopedVars);
     } else {
@@ -68,10 +69,8 @@ module.filter('interpolateTemplateVars', function(templateSrv) {
     }
   };
 
-  interpolateTemplateVars.$stateful = true;
-
-  return interpolateTemplateVars;
+  filterFunc.$stateful = true;
+  return filterFunc;
 });
 
-// dummy export
 export {};

+ 1 - 10
tasks/options/ngAnnotate.js

@@ -4,16 +4,7 @@ module.exports = function(config) {
       expand: true,
       cwd:'<%= genDir %>',
       src: [
-        'app/controllers/**/*.js',
-        'app/plugins/**/*.js',
-        'app/directives/**/*.js',
-        'app/services/**/*.js',
-        'app/filters/**/*.js',
-        'app/features/**/*.js',
-        'app/panels/**/*.js',
-        'app/routes/**/*.js',
-        'app/app.js',
-        'vendor/angular/**/*.js',
+        'app/**/*.js',
       ],
       dest: '<%= genDir %>'
     }

+ 1 - 1
tasks/options/tslint.js

@@ -14,7 +14,7 @@ module.exports = function(config) {
           "class-name": true,
           "interface-name": true,
           "semicolon": true,
-          "use-strict": [true, "check-module", "check-function" ],
+          "use-strict": [false, "check-module", "check-function"],
           "whitespace": [true, "check-branch", "check-decl", "check-type"],
         }
       }