Reference-following
srph opened this issue · comments
Hey, does this gulp plugin support ng-annotate's recent update for reference following?
Sure.
Just make sure you have ng-annotate 0.9.11 as a dependency for gulp-ng-annotate.
npm uninstall gulp-ng-annotate
npm install gulp-ng-annotate
npm list ng-annotate # Should be 0.9.11
Thanks 👍
Weird, because there were no changes. Anyway, here's a snippet of my gulpfile
and my package.json
_gulpfile_
// Bundle scripts
gulp.task('bundle-app', function() {
return gulp.src([
_client + 'app.js',
_client + 'bootstrap.js',
_client + 'components/**/*.js',
_client + 'services/**/*.js',
_client + 'directives/**/*.js',
_client + 'utils/**/*.js'
])
.pipe(concat('build.js'))
.pipe(annotate())
.pipe(gulp.dest(_js));
});
_package.json_
{
"devDependencies": {
"gulp": "^3.8.5",
"gulp-autoprefixer": "0.0.7",
"gulp-concat": "^2.2.0",
"gulp-imagemin": "^0.6.1",
"gulp-install": "^0.1.8",
"gulp-minify-css": "^0.3.6",
"gulp-ng-annotate": "^0.3.0",
"gulp-rename": "^1.2.0",
"gulp-ruby-sass": "^0.5.0",
"gulp-uglify": "^0.3.1",
"karma": "^0.12.23",
"karma-chrome-launcher": "^0.1.4",
"karma-jasmine": "^0.1.5",
"ng-annotate": "^0.9.11"
}
}
Hmm. is there anything I've missed or done poorly? I have no idea.
Could you please provide output for npm list ng-annotate
from the directory with the gulpfile?