Skip to content
This repository has been archived by the owner on Mar 22, 2020. 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 2f4baa6 commit 3a22cb6
Show file tree
Hide file tree
Showing 7 changed files with 55 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.

5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<a name="1.0.0"></a>
# [1.0.0](https://github.com/Wikiki/bulma-tooltip/compare/0.1.7...1.0.0) (2018-02-10)



<a name="0.1.7"></a>
## [0.1.7](https://github.com/Wikiki/bulma-tooltip/compare/0.1.6...0.1.7) (2018-02-10)

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bulma-tooltip",
"description": "Display a tooltip attached to any kind of element, in different position.",
"version": "0.1.5",
"version": "1.0.0",
"main": "tooltip.sass",
"version": "0.1.3",
"authors": [
Expand Down
9 changes: 9 additions & 0 deletions dist/bulma-tooltip.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"

$tooltip-background-color: $grey-dark !default
$tooltip-max-width: 24rem !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-tooltip",
"version": "0.1.7",
"version": "1.0.0",
"description": "Display a tooltip attached to any kind of element, in different position.",
"main": "dist/bulma-tooltip.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 3a22cb6

Please sign in to comment.