Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
feat(gulp): initial work on compat build
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Sep 23, 2015
1 parent 8c5bc42 commit 7776d8c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,24 @@ gulp.task('pages', gulp.series('ng:pages', function afterPages(done) {
.pipe(gulp.dest(paths.dest));
}));

var ngAnnotate = require('gulp-ng-annotate');
var rename = require('gulp-rename');
gulp.task('compat', function() {
var paths = config.paths;
return gulp.src(paths.dest + '/angular-strap.js')
.pipe(ngAnnotate({
add: true,
remove: true,
rename: [
{from: '$tooltip', to: '$bsTooltip'},
{from: '$button', to: '$bsButton'},
{from: '$modal', to: '$bsModal'}
]
}))
.pipe(rename('angular-strap.compat.js'))
.pipe(gulp.dest(paths.dest))
})

//
// Tests

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
"factory-angular-channels": "^0.8.2",
"gulp": "gulpjs/gulp#4.0",
"gulp-jshint": "^1.11.2",
"gulp-ng-annotate": "^1.1.0",
"gulp-rename": "^1.2.2",
"gulp-util": "^3.0.6",
"jasmine-core": "^2.3.4",
"jshint-stylish": "^2.0.1",
Expand Down

0 comments on commit 7776d8c

Please sign in to comment.