Skip to content

Commit

Permalink
fix(dist): Remove Bulma’s imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikiki committed Feb 11, 2018
1 parent 4c68718 commit 8a3b785
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 24 deletions.
9 changes: 0 additions & 9 deletions dist/bulma-calendar.sass
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
@charset "utf-8"

@import "initial-variables.sass"
@import "functions.sass"
@import "derived-variables.sass"
@import "animations.sass"
@import "mixins.sass"
@import "controls.sass"

$calendar-border: none !default
$calendar-border-radius: $radius-small !default
$calendar-header-background-color: $primary !default
Expand Down
36 changes: 21 additions & 15 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,27 @@ var distJsFile = package.name + '.min.js';
* ----------------------------------------
*/

// Uses Sass compiler to process styles, adds vendor prefixes, minifies, then
// outputs file to the appropriate location.
gulp.task('build:styles', function() {
return gulp.src([paths.bulma + bulmaSassFile, paths.src + mainSassFile])
.pipe(concat(globalSassFile))
.pipe(gulp.dest(paths.dest))
.pipe(sass({
style: 'compressed',
includePaths: [paths.bulma]
}))
.pipe(concat(distCssFile))
.pipe(postcss([autoprefixer({browsers: ['last 2 versions']})]))
.pipe(cleancss())
.pipe(gulp.dest(paths.dest));
});
// Uses Sass compiler to process styles, adds vendor prefixes, minifies, then
// outputs file to the appropriate location.
gulp.task('build:styles', ['build:styles:copy'], function() {
return gulp.src([paths.bulma + bulmaSassFile, paths.src + mainSassFile])
.pipe(concat(globalSassFile))
.pipe(sass({
style: 'compressed',
includePaths: [paths.bulma]
}))
.pipe(concat(distCssFile))
.pipe(postcss([autoprefixer({browsers: ['last 2 versions']})]))
.pipe(cleancss())
.pipe(gulp.dest(paths.dest));
});

// Copy original sass file to dist
gulp.task('build:styles:copy', function() {
return gulp.src(paths.src + mainSassFile)
.pipe(concat(globalSassFile))
.pipe(gulp.dest(paths.dest));
});

gulp.task('clean:styles', function(callback) {
del([
Expand Down

0 comments on commit 8a3b785

Please sign in to comment.