Skip to content

Commit

Permalink
Bootstrap 4 Beta 3 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtmiller committed Dec 29, 2017
1 parent 46456f5 commit 5488355
Show file tree
Hide file tree
Showing 23 changed files with 15,298 additions and 4,085 deletions.
42 changes: 23 additions & 19 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,40 @@ var gulp = require('gulp');
var browserSync = require('browser-sync').create();
var pkg = require('./package.json');

// Copy vendor files from /node_modules into /vendor
// NOTE: requires `npm install` before running!
gulp.task('copy', function() {
// Copy third party libraries from /node_modules into /vendor
gulp.task('vendor', function() {

// Bootstrap
gulp.src([
'./node_modules/bootstrap/dist/**/*',
'!./node_modules/bootstrap/dist/css/bootstrap-grid*',
'!./node_modules/bootstrap/dist/css/bootstrap-reboot*'
])
.pipe(gulp.dest('./vendor/bootstrap'))

// jQuery
gulp.src([
'node_modules/bootstrap/dist/**/*',
'!**/npm.js',
'!**/bootstrap-theme.*',
'!**/*.map'
'./node_modules/jquery/dist/*',
'!./node_modules/jquery/dist/core.js'
])
.pipe(gulp.dest('vendor/bootstrap'))
.pipe(gulp.dest('./vendor/jquery'))

gulp.src(['node_modules/jquery/dist/jquery.js', 'node_modules/jquery/dist/jquery.min.js'])
.pipe(gulp.dest('vendor/jquery'))
})

// Default task
gulp.task('default', ['copy']);
gulp.task('default', ['vendor']);

// Configure the browserSync task
gulp.task('browserSync', function() {
browserSync.init({
server: {
baseDir: ''
},
})
})
baseDir: "./"
}
});
});

// Dev task with browserSync
// Dev task
gulp.task('dev', ['browserSync'], function() {
// Reloads the browser whenever HTML or CSS files change
gulp.watch('css/*.css', browserSync.reload);
gulp.watch('*.html', browserSync.reload);
gulp.watch('./css/*.css', browserSync.reload);
gulp.watch('./*.html', browserSync.reload);
});
Loading

0 comments on commit 5488355

Please sign in to comment.