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

Commit

Permalink
[Prerelease] Bumped version number
Browse files Browse the repository at this point in the history
  • Loading branch information
Wikiki committed Feb 10, 2018
1 parent 7e07e2d commit ede7535
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 85 deletions.
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .travis/sass-compile-tester.sh

This file was deleted.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "bulma-timeline",
"description": "Display a vertical timeline, in different colors, sizes, and states",
"main": "timeline.sass",
"version": "1.1.13",
"version": "2.0.0",
"authors": [
"Wikiki <[email protected]> (https://wikiki.github.io/bulma-extensions/overview)"
],
Expand Down
9 changes: 9 additions & 0 deletions dist/bulma-timeline.sass
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
@charset "utf-8"

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

$timeline-marker-size: .8em !default
$timeline-marker-color: $grey-lighter !default
$timeline-marker-icon-size: 1.5em !default
Expand Down
61 changes: 34 additions & 27 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ var gulp = require('gulp');
var autoprefixer = require('autoprefixer');
var babel = require('gulp-babel');
var bump = require('gulp-bump');
var camelCase = require('camelcase');
var cleancss = require('gulp-clean-css');
var concat = require('gulp-concat');
var conventionalChangelog = require('gulp-conventional-changelog');
Expand All @@ -14,10 +15,12 @@ var fs = require('fs');
var git = require('gulp-git');
var gutil = require('gulp-util');
var postcss = require('gulp-postcss');
var rollup = require('gulp-better-rollup');
var runSequence = require('run-sequence');
var sass = require('gulp-sass');
var sourcemaps = require('gulp-sourcemaps');
var spawn = require('child_process').spawn;
var uglify = require('gulp-uglify');
var minify = require('gulp-babel-minify');

/**
* ----------------------------------------
Expand Down Expand Up @@ -46,9 +49,10 @@ 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', ['build:styles:copy'], function() {
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]
Expand All @@ -59,13 +63,6 @@ gulp.task('build:styles', ['build:styles:copy'], function() {
.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([
paths.dest + mainSassFile,
Expand All @@ -82,28 +79,38 @@ gulp.task('clean:styles', function(callback) {

// Concatenates and uglifies global JS files and outputs result to the
// appropriate location.
gulp.task('build:scripts', ['build:scripts:copy'], function() {
gulp.task('build:scripts', function() {
return gulp
.src([paths.src + paths.jsPattern])
.pipe(concat(distJsFile))
.pipe(babel({
"presets": [
["@babel/preset-env", {
"modules": "umd",
"targets": {
"browsers": ["last 2 versions"]
}
}]
]
.pipe(sourcemaps.init({
loadMaps: true
}))
.pipe(uglify())
.pipe(gulp.dest(paths.dest));
});

// Copy original sripts file to dist
gulp.task('build:scripts:copy', function() {
return gulp.src(paths.src + mainJsFile)
.pipe(rollup({
plugins: [babel({
babelrc: false,
sourceMaps: true,
exclude: 'node_modules/**',
presets: [
["@babel/preset-env", {
"modules": false,
"targets": {
"browsers": gutil.env.babelTarget ? gutil.env.babelTarget : ["last 2 versions"]
}
}]
]
})]
}, {
format: gutil.env.jsFormat ? gutil.env.jsFormat : 'iife',
name: camelCase(package.name)
}
))
.pipe(concat(globalJsFile))
.pipe(gulp.dest(paths.dest))
.pipe(concat(distJsFile))
.pipe(minify().on('error', function(err) {
gutil.log(gutil.colors.red('[Error]'), err.toString())
}))
.pipe(sourcemaps.write())
.pipe(gulp.dest(paths.dest));
});

Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bulma-timeline",
"version": "1.1.13",
"version": "2.0.0",
"description": "Display a vertical timeline, in different colors, sizes, and states ",
"main": "dist/bulma-timeline.sass",
"scripts": {
Expand Down Expand Up @@ -31,20 +31,25 @@
"@babel/preset-env": "^7.0.0-beta.39",
"babel-core": "^7.0.0-beta.3",
"bulma": "^0.6.2",
"camelcase": "^4.1.0",
"conventional-github-releaser": "^2.0.0",
"del": "^3.0.0",
"gulp": "^3.9.1",
"gulp-autoprefixer": "^4.1.0",
"gulp-babel": "^7.0.1",
"gulp-babel-minify": "^0.3.0",
"gulp-better-rollup": "^3.0.0",
"gulp-bump": "^3.1.0",
"gulp-clean-css": "^3.9.2",
"gulp-concat": "^2.6.1",
"gulp-conventional-changelog": "^1.1.11",
"gulp-git": "^2.5.1",
"gulp-postcss": "^7.0.1",
"gulp-sass": "^3.1.0",
"gulp-sourcemaps": "^2.6.4",
"gulp-uglify": "^3.0.0",
"gulp-util": "^3.0.8",
"rollup-plugin-babel": "^3.0.3",
"run-sequence": "^2.2.1"
},
"files": [
Expand Down

0 comments on commit ede7535

Please sign in to comment.