Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d0808d0

Browse files
committed
Merge pull request angular-ui#61 from jbroquist/minfix
chore(ngmin): replace deprectated ngmin lib with ngannotate
2 parents b21dac6 + 0c78fb8 commit d0808d0

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

gulpfile.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,13 @@ gulp.task('clean:dist', function () {
9797
});
9898

9999
gulp.task('ngmin', function () {
100+
var options = {
101+
remove: true,
102+
add: true,
103+
single_quotes: true
104+
};
100105
return gulp.src('*.js', { cwd: './src' })
101-
.pipe($.ngmin())
106+
.pipe($.ngAnnotate(options))
102107
.pipe(gulp.dest('./dist'));
103108
});
104109

package.json

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,27 @@
33
"version": "1.0.2",
44
"description": "This directive allows you to split !",
55
"devDependencies": {
6+
"angular-ui-publisher": "~1.2",
67
"gulp": "^3",
7-
"gulp-util": "^2",
8+
"gulp-jshint": "^1",
89
"gulp-load-plugins": "^0",
10+
"gulp-ng-annotate": "^0.4.0",
11+
"gulp-plumber": "^0",
912
"gulp-rename": "^0",
1013
"gulp-rimraf": "^0",
11-
1214
"gulp-ruby-sass": "^0",
13-
"gulp-plumber": "^0",
14-
15-
"gulp-jshint": "^1",
16-
"jshint-stylish": "^0",
17-
1815
"gulp-uglify": "^0",
19-
"gulp-ngmin": "^0",
20-
16+
"gulp-util": "^2",
17+
"jshint-stylish": "^0",
2118
"karma": "^0",
22-
"karma-jasmine": "^0.2",
19+
"karma-chrome-launcher": "^0",
2320
"karma-coverage": "^0",
2421
"karma-firefox-launcher": "^0",
25-
"karma-chrome-launcher": "^0",
22+
"karma-jasmine": "^0.2",
2623
"karma-phantomjs-launcher": "^0",
27-
28-
"node-karma-wrapper": "^0",
29-
"lodash.assign": "^2",
3024
"lodash.after": "^2",
31-
"angular-ui-publisher": "~1.2"
25+
"lodash.assign": "^2",
26+
"node-karma-wrapper": "^0"
3227
},
3328
"main": "ui-layout.js",
3429
"repository": {

0 commit comments

Comments
 (0)