adding copycats task
This commit is contained in:
parent
6d2e92f613
commit
c97a54c55a
|
@ -37,19 +37,18 @@ gulp.task('cleancss', function() {
|
||||||
.pipe(rimraf());
|
.pipe(rimraf());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
// Copy all js files from bower_component assets to themes /js folder. Run this task after bower install or bower update
|
||||||
gulp.task('copy-assets', function() {
|
gulp.task('copy-assets', function() {
|
||||||
gulp.src('./bower_components/bootstrap-sass/assets/javascripts/*.js')
|
gulp.src('./bower_components/bootstrap-sass/assets/javascripts/*.js')
|
||||||
.pipe(gulp.dest('./js'));
|
.pipe(gulp.dest('./js'));
|
||||||
gulp.src('./bower_components/bootstrap-sass/assets/stylesheets/*.scss')
|
|
||||||
.pipe(gulp.dest('./sass/bootstrap'));
|
|
||||||
gulp.src('./bower_components/bootstrap-sass/assets/fonts/bootstrap/*.{ttf,woff,eof,svg}')
|
gulp.src('./bower_components/bootstrap-sass/assets/fonts/bootstrap/*.{ttf,woff,eof,svg}')
|
||||||
.pipe(gulp.dest('./fonts'));
|
.pipe(gulp.dest('./fonts'));
|
||||||
gulp.src('./bower_components/font-awesome/fonts/**/*.{ttf,woff,eof,svg}')
|
gulp.src('./bower_components/fontawesome/fonts/**/*.{ttf,woff,eof,svg}')
|
||||||
.pipe(gulp.dest('./fonts'));
|
.pipe(gulp.dest('./fonts'));
|
||||||
gulp.src('./bower_components/jquery/dist/*.js')
|
gulp.src('./bower_components/jquery/dist/*.js')
|
||||||
.pipe(gulp.dest('./js'));
|
.pipe(gulp.dest('./js'));
|
||||||
gulp.src('./bower_components/_s/js/*.js')
|
gulp.src('./bower_components/_s/js/*.js')
|
||||||
.pipe(gulp.dest('./js'));
|
.pipe(gulp.dest('./js'));
|
||||||
gulp.src('./bower_components/_s/sass/**/*.scss')
|
|
||||||
.pipe(gulp.dest('./sass/underscores'));
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -29,11 +29,11 @@ Import all needed 3rd party sass files plus your own style and variables
|
||||||
***************************************************************** */
|
***************************************************************** */
|
||||||
|
|
||||||
@import "../bower_components/_s/sass/style";
|
@import "../bower_components/_s/sass/style";
|
||||||
@import "theme/theme_variables";
|
@import "theme/theme_variables"; // <--------- Add your variables into this file. Also add variables to overwrite Bootstrap variables here
|
||||||
@import "../bower_components/bootstrap-sass/assets/stylesheets/bootstrap";
|
@import "../bower_components/bootstrap-sass/assets/stylesheets/bootstrap";
|
||||||
@import "understrap/understrap";
|
@import "understrap/understrap";
|
||||||
@import "../bower_components/fontawesome/scss/font-awesome";
|
@import "../bower_components/fontawesome/scss/font-awesome";
|
||||||
|
|
||||||
|
|
||||||
// Any additional imported files //
|
// Any additional imported files //
|
||||||
@import "theme/theme";
|
@import "theme/theme"; // <--------- Add your styles into this file
|
Reference in New Issue