From 3e94035db20c817ad1da60789d47bcdd12bf11a6 Mon Sep 17 00:00:00 2001 From: wind13 Date: Thu, 30 Oct 2014 09:49:04 +0800 Subject: [PATCH] fix the build to -all.js --- Gruntfile.js | 3 ++- app.js | 10 ++++++++++ index.html | 3 +++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 85f0b48..a43e8eb 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -24,10 +24,11 @@ module.exports = function(grunt) { }, uglify: { options: { + mangle: false, banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' }, build: { - src: 'src/<%= pkg.name %>.js', + src: 'src/<%= pkg.name %>-all.js', dest: 'build/<%= pkg.name %>.min.js' } }, diff --git a/app.js b/app.js index eb59aae..92e0a9f 100644 --- a/app.js +++ b/app.js @@ -27,6 +27,16 @@ angular.module('examples', ['angular-d3-draw']) $scope.rrr01.x = 90; $scope.rrr01.y = 290; }; + $scope.testNum = 1; + $scope.addZeros = function(lgth){ + // return (lgth === 0)? "":($scope.addZeros(lgth-1) + "0"); + var z=""; + for (var i = 0; i < lgth; i++) { + z = z + "0"; + } + return z; + }; + } ]); diff --git a/index.html b/index.html index 47d6afa..52a2765 100644 --- a/index.html +++ b/index.html @@ -79,6 +79,9 @@ +
+ [ test area:|| ] +