From 485705a99e34a96f463ac8b814cb4867005468a8 Mon Sep 17 00:00:00 2001 From: David Michael Gang Date: Thu, 26 Feb 2015 12:56:40 +0200 Subject: [PATCH 1/4] wrap the unminified javascript in function. This is important because if we concatenate multiple javascripts, we can create a source map and debug teh code more easy --- Gruntfile.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 8e07718..964dea9 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -31,7 +31,11 @@ module.exports = function (grunt) { './src/angular-aop.js', './src/aspects/jointpoints/*.js' ] - } + }, + options: { + banner: "(function(){ \n ", + footer: "\n})();" + } } }, karma: { From a3f6368b62fc879006deb0775165b3a118076bba Mon Sep 17 00:00:00 2001 From: David Michael Gang Date: Thu, 26 Feb 2015 13:05:34 +0200 Subject: [PATCH 2/4] wrap the unminified javascript in function. This is important because if we concatenate multiple javascripts, we can create a source map and debug teh code more easy --- bower.json | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bower.json b/bower.json index 1695c8a..d5a76f4 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "angular-aop", - "main": "./build/angular-aop.js", + "main": "index.js", "version": "0.3.1", "homepage": "https://github.com/mgechev/angular-aop", "authors": [ @@ -22,11 +22,8 @@ "test", "tests" ], - "dependencies": { - "angular": ">=1.2.0" - }, "devDependencies": { "angular-mocks": "~1.2.0", "jasmine": "~2.2.1" } -} +} \ No newline at end of file From 17174b5bedd6b4cc1a03b68349634a520abec861 Mon Sep 17 00:00:00 2001 From: David Michael Gang Date: Thu, 26 Feb 2015 13:07:49 +0200 Subject: [PATCH 3/4] wrap the unminified javascript in function. This is important because if we concatenate multiple javascripts, we can create a source map and debug teh code more easy --- bower.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bower.json b/bower.json index d5a76f4..0824333 100644 --- a/bower.json +++ b/bower.json @@ -26,4 +26,4 @@ "angular-mocks": "~1.2.0", "jasmine": "~2.2.1" } -} \ No newline at end of file +} From 1c4089492dc81c49564adad337bb392bf0ae8557 Mon Sep 17 00:00:00 2001 From: David Gang Date: Thu, 26 Feb 2015 22:55:51 +0200 Subject: [PATCH 4/4] Update bower.json --- bower.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bower.json b/bower.json index 0824333..1695c8a 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "angular-aop", - "main": "index.js", + "main": "./build/angular-aop.js", "version": "0.3.1", "homepage": "https://github.com/mgechev/angular-aop", "authors": [ @@ -22,6 +22,9 @@ "test", "tests" ], + "dependencies": { + "angular": ">=1.2.0" + }, "devDependencies": { "angular-mocks": "~1.2.0", "jasmine": "~2.2.1"