Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
fix(gulp): Use UMD modules style
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikiki committed Feb 10, 2018
1 parent b9050d8 commit 8ba9964
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ var paths = {
bulma: 'node_modules/bulma/sass/utilities/',
jsPattern: '**/*.js'
}
var globalSassFile = package.name + '.sass';
var globalJsFile = package.name + '.sass';
var bulmaSassFile = '_all.sass';
var globalSassFile = package.name + '.sass';
var globalJsFile = package.name + '.js';
var mainSassFile = 'extension.sass';
var distCssFile = package.name + '.min.css';
var mainJsFile = 'extension.js';
var distCssFile = package.name + '.min.css';
var distJsFile = package.name + '.min.js';

/**
Expand Down Expand Up @@ -89,6 +89,7 @@ gulp.task('build:scripts', ['build:scripts:copy'], function() {
.pipe(babel({
"presets": [
["@babel/preset-env", {
"modules": "umd",
"targets": {
"browsers": ["last 2 versions"]
}
Expand All @@ -114,8 +115,11 @@ gulp.task('clean:scripts', function(callback) {
callback();
});

// Deletes the entire _site directory.
gulp.task('clean', ['clean:scripts', 'clean:styles']);
// Deletes the entire dist directory.
gulp.task('clean', ['clean:scripts', 'clean:styles'], function(callback) {
del(paths.dest);
callback();
});

/**
* ----------------------------------------
Expand Down

0 comments on commit 8ba9964

Please sign in to comment.