Skip to content

Commit

Permalink
gulp-ng-annotate, valid minified JS, bump version to 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mrzepinski committed Jan 11, 2015
1 parent 2d12c5f commit e91aa1d
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-debug-bar",
"version": "0.2.0",
"version": "0.2.1",
"author": "Maciej Rzepinski",
"description": "AngularJS Debug Bar",
"homepage": "https://github.com/mrzepinski/angular-debug-bar",
Expand Down
4 changes: 2 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<meta charset="utf-8" />

<!-- CSS -->
<link rel="stylesheet" href="../dist/css/angular-debug-bar.css" />
<link rel="stylesheet" href="../dist/css/angular-debug-bar.min.css" />

<!-- JS -->
<script type="text/javascript" src="bower_components/angular/angular.js"></script>
<script type="text/javascript" src="../dist/js/angular-debug-bar.js"></script>
<script type="text/javascript" src="../dist/js/angular-debug-bar.min.js"></script>
</head>
<body ng-app="angular-debug-bar">
<h1>AngularJS Debug Bar</h1>
Expand Down
2 changes: 1 addition & 1 deletion dist/css/angular-debug-bar.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
angular-debug-bar v0.2.0
angular-debug-bar v0.2.1
git://github.com/mrzepinski/angular-debug-bar.git
MIT License - Maciej Rzepinski
*/
Expand Down
6 changes: 3 additions & 3 deletions dist/js/angular-debug-bar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
angular-debug-bar v0.2.0
angular-debug-bar v0.2.1
git://github.com/mrzepinski/angular-debug-bar.git
MIT License - Maciej Rzepinski
*/
Expand Down Expand Up @@ -316,7 +316,7 @@
restrict: 'E',
replace: true,
scope: true,
controller: function ($scope) {
controller: ['$scope', function ($scope) {
var localStorage = window.localStorage,
localStorageKey = 'adb.open',
isLocalStorageAvailable = function () {
Expand All @@ -333,7 +333,7 @@
localStorage.setItem(localStorageKey, $scope.show);
}
};
},
}],
compile: function ($element) {
var template = '<div id="angular-debug-bar" ng-class="{ \'show\': show }">' +
'<button class="adb-icon-cog" ng-click="showHide($event)"></button>' +
Expand Down
2 changes: 1 addition & 1 deletion dist/js/angular-debug-bar.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var gulp = require('gulp'),
bump = require('gulp-bump'),
jshint = require('gulp-jshint'),
concat = require('gulp-concat-util'),
ngAnnotate = require('gulp-ng-annotate'),
uglify = require('gulp-uglify'),
rename = require('gulp-rename'),
sass = require('gulp-sass'),
Expand Down Expand Up @@ -45,6 +46,7 @@ gulp.task('js', ['lint'], function () {
return gulp.src(paths.js)
.pipe(concat.header(description.top))
.pipe(gulp.dest(paths.output.js))
.pipe(ngAnnotate())
.pipe(uglify())
.pipe(rename({suffix: '.min'}))
.pipe(gulp.dest(paths.output.js));
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-debug-bar",
"version": "0.2.0",
"version": "0.2.1",
"title": "AngularJS-Debug-Bar",
"description": "AngularJS Debug Bar",
"license": "MIT",
Expand All @@ -17,6 +17,7 @@
"gulp-concat-util": "^0.5.1",
"gulp-cssmin": "^0.1.6",
"gulp-jshint": "^1.9.0",
"gulp-ng-annotate": "^0.4.3",
"gulp-rename": "^1.2.0",
"gulp-sass": "^1.2.4",
"gulp-uglify": "^1.0.2",
Expand Down
4 changes: 2 additions & 2 deletions src/js/angular-debug-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@
restrict: 'E',
replace: true,
scope: true,
controller: function ($scope) {
controller: ['$scope', function ($scope) {
var localStorage = window.localStorage,
localStorageKey = 'adb.open',
isLocalStorageAvailable = function () {
Expand All @@ -327,7 +327,7 @@
localStorage.setItem(localStorageKey, $scope.show);
}
};
},
}],
compile: function ($element) {
var template = '<div id="angular-debug-bar" ng-class="{ \'show\': show }">' +
'<button class="adb-icon-cog" ng-click="showHide($event)"></button>' +
Expand Down

0 comments on commit e91aa1d

Please sign in to comment.