Skip to content

Commit eaf1a3a

Browse files
author
Sebastian Henneberg
committed
renamed vendor* tasks to bower*, closes #15
1 parent d378c9b commit eaf1a3a

8 files changed

+15
-15
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@ Detailed documentation of our best practice workflow and the config object will
2828
- `clean` removes the distribution folder with all its content.
2929
- `statics` copies static files to a particular distribution folder.
3030
- `fonts` copies local fonts to a particular distribution folder.
31-
- `vendorFonts` copies fonts defined in the bower dependencies to a particular distribution folder.
31+
- `bowerFonts` copies fonts defined in the bower dependencies to a particular distribution folder.
3232

3333
## Stylesheets
3434
- `compass` compiles scss files to CSS files using [compass](https://github.com/Compass/compass).
3535
- `sass` compiles scss files to CSS using [gulp-sass](https://github.com/dlmanning/gulp-sass).
36-
- `vendorStyles` concats all styles from the bower dependencies and stores the file to a particular distribution folder.
36+
- `bowerStyles` concats all styles from the bower dependencies and stores the file to a particular distribution folder.
3737

3838
## AngularJS & JavaScript
3939
- `configScripts` creates a dedicated Angular module to provide a environment specific app configuration.
4040
- `karma` runs the karma test runner.
4141
- `protractor` runs protractor end-to-end tests.
4242
- `partials` collects all partials and combines them in a Angular module.
4343
- `scripts` connect all scripts, annotates, orders, concats and stores a the result to a file in a particular distribution folder.
44-
- `vendorScripts` concats all scripts from the bower dependencies and stores the file to a particular distribution folder.
44+
- `bowerScripts` concats all scripts from the bower dependencies and stores the file to a particular distribution folder.
4545

4646
## Local Server
4747
- `connect` provides a small HTTP server for local testing. It serves the requested file if available, the `index.html` otherwise (to support Angular HTML5 mode)

index.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,16 @@ module.exports = function(gulp, tasks, config) {
8383
require('./tasks/statics')(gulp, config.app.statics, config.bases.dist);
8484
}
8585

86-
if (tasks.indexOf('vendorFonts') !== -1) {
87-
require('./tasks/vendorFonts')(gulp, tasks, config.debug, config.dist.fonts, config.env.rev);
86+
if (tasks.indexOf('bowerFonts') !== -1) {
87+
require('./tasks/bowerFonts')(gulp, tasks, config.debug, config.dist.fonts, config.env.rev);
8888
}
8989

90-
if (tasks.indexOf('vendorScripts') !== -1) {
91-
require('./tasks/vendorScripts')(gulp, tasks, config.dist.js, config.sourceMapsPath, config.debug, config.env.rev);
90+
if (tasks.indexOf('bowerScripts') !== -1) {
91+
require('./tasks/bowerScripts')(gulp, tasks, config.dist.js, config.sourceMapsPath, config.debug, config.env.rev);
9292
}
9393

94-
if (tasks.indexOf('vendorStyles') !== -1) {
95-
require('./tasks/vendorStyles')(gulp, tasks, config.dist.css, config.sourceMapsPath, config.debug, config.env.rev);
94+
if (tasks.indexOf('bowerStyles') !== -1) {
95+
require('./tasks/bowerStyles')(gulp, tasks, config.dist.css, config.sourceMapsPath, config.debug, config.env.rev);
9696
}
9797

9898
if (tasks.indexOf('watch') !== -1) {

tasks/vendorFonts.js tasks/bowerFonts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var fontsFilter = {
1212

1313
module.exports = function(gulp, tasks, debugFlag, dest, revFlag) {
1414
var mergedTasks = _.intersection(tasks, ['bower:install', 'bower:prune']);
15-
gulp.task('vendorFonts', mergedTasks, function() {
15+
gulp.task('bowerFonts', mergedTasks, function() {
1616
return gulp.src(bowerFiles(fontsFilter))
1717
.pipe(gulpif(debugFlag, debug()))
1818
.pipe(gulpif(revFlag, rev()))

tasks/vendorScripts.js tasks/bowerScripts.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var jsFilter = {
1919

2020
module.exports = function(gulp, tasks, dest, sourceMapPath, debugFlag, revFlag) {
2121
var mergedTasks = _.intersection(tasks, ['bower:install', 'bower:prune']);
22-
gulp.task('vendorScripts', mergedTasks, function() {
22+
gulp.task('bowerScripts', mergedTasks, function() {
2323
var result = gulp.src(bowerFiles(jsFilter))
2424
.pipe(gulpif(debugFlag, debug()))
2525
.pipe(sourceMaps.init())

tasks/vendorStyles.js tasks/bowerStyles.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var cssFilter = {
1919

2020
module.exports = function(gulp, tasks, dest, sourceMapsPath, debugFlag, revFlag) {
2121
var mergedTasks = _.intersection(tasks, ['bower:install', 'bower:prune']);
22-
gulp.task('vendorStyles', mergedTasks, function(done) {
22+
gulp.task('bowerStyles', mergedTasks, function(done) {
2323
gulp.src(bowerFiles(cssFilter))
2424
.pipe(gulpif(debugFlag, debug()))
2525
.pipe(sourceMaps.init())

tasks/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ module.exports = function(gulp, tasks, dest, index, appName) {
4545
gulp.task('justIndex', injectIndex);
4646

4747
// use this initial building
48-
var mergedTasks = _.intersection(tasks, ['partials', 'configScripts', 'scripts', 'vendorScripts', 'styles', 'vendorStyles']);
48+
var mergedTasks = _.intersection(tasks, ['partials', 'configScripts', 'scripts', 'bowerScripts', 'styles', 'bowerStyles']);
4949
gulp.task('index', mergedTasks, injectIndex);
5050
};

tasks/karma.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = function(gulp, tasks, config) {
3838
});
3939
});
4040

41-
var mergedTasks = _.intersection(tasks, ['config', 'partials', 'vendorScripts']);
41+
var mergedTasks = _.intersection(tasks, ['config', 'partials', 'bowerScripts']);
4242

4343
gulp.task('test', function() {
4444
runSequence(mergedTasks, 'karma');

tasks/watch.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = function(gulp, tasks, config) {
2121

2222
gulp.watch(config.app.scssAll, ['styles']);
2323
gulp.watch(config.app.js, ['scripts']);
24-
gulp.watch(config.bowerjson, ['vendorScripts', 'vendorStyles', 'vendorFonts']);
24+
gulp.watch(config.bowerjson, ['bowerScripts', 'bowerStyles', 'bowerFonts']);
2525
// watch any change in dist folder; reload immediately in case of detected change
2626
gulp.watch(config.bases.dist + '**', ['reload']);
2727
});

0 commit comments

Comments
 (0)