Comparing version 1.0.4 to 1.0.5
@@ -5,3 +5,2 @@ | ||
var gulp = require('gulp'); | ||
var less = require('gulp-less'); | ||
var rename = require('gulp-rename'); | ||
@@ -11,3 +10,2 @@ var source = require('vinyl-source-stream'); | ||
var babelify = require('babelify'); | ||
var nano = require('gulp-cssnano'); | ||
var replaceName = require('gulp-replace-name'); | ||
@@ -17,28 +15,18 @@ var uglify = require('gulp-uglify'); | ||
gulp.task('default', ['less', 'js', 'watch']); | ||
gulp.task('default', ['js', 'watch']); | ||
gulp.task('less', function() { | ||
return gulp.src('./src/less/*.less') | ||
.pipe(less()) | ||
.pipe(gulp.dest('./dist/css')) | ||
.pipe(nano()) | ||
.pipe(replaceName(/\.css/g, '.min.css')) | ||
.pipe(gulp.dest('./dist/css')); | ||
}); | ||
gulp.task('js', function() { | ||
return browserify('./src/js/browser-main.js') | ||
.transform(babelify, {presets: ['es2015']}) | ||
gulp.task('js', function () { | ||
return browserify('./src/browser-main.js') | ||
.transform(babelify, { presets: ['es2015'] }) | ||
.bundle() | ||
.pipe(source('main.js')) | ||
.pipe(rename('beside.js')) | ||
.pipe(gulp.dest('./dist/js')) | ||
.pipe(gulp.dest('./dist')) | ||
.pipe(streamify(uglify())) | ||
.pipe(streamify(replaceName(/\.js/g, '.min.js'))) | ||
.pipe(gulp.dest('./dist/js')); | ||
.pipe(gulp.dest('./dist')); | ||
}); | ||
gulp.task('watch', function() { | ||
gulp.watch(['./src/less/*.less'], ['less']); | ||
gulp.watch(['./src/js/**/*.js'], ['js']); | ||
gulp.task('watch', function () { | ||
gulp.watch(['./src/**/*.js'], ['js']); | ||
}); |
{ | ||
"name": "beside", | ||
"version": "1.0.4", | ||
"description": "beside me", | ||
"main": "index.js", | ||
"version": "1.0.5", | ||
"description": "A UI library to make an element beside another", | ||
"main": "src/bede.js", | ||
"scripts": { | ||
@@ -14,2 +14,4 @@ "test": "jest" | ||
"keywords": [ | ||
"beside", | ||
"tether", | ||
"popover", | ||
@@ -31,4 +33,2 @@ "tooltip" | ||
"gulp": "^3.9.0", | ||
"gulp-cssnano": "^2.1.0", | ||
"gulp-less": "^3.0.5", | ||
"gulp-rename": "^1.2.2", | ||
@@ -35,0 +35,0 @@ "gulp-replace-name": "^1.0.1", |
@@ -5,9 +5,9 @@ # Beside [![Build Status](https://travis-ci.org/forsigner/beside.svg?branch=master)](https://travis-ci.org/forsigner/beside) [![NPM Version](http://img.shields.io/npm/v/beside.svg?style=flat)](https://www.npmjs.org/package/beside) | ||
# Demo | ||
### Demo | ||
[demo](http://forsigner.com/beside/) | ||
# Install | ||
### Installation | ||
### bower | ||
#### bower | ||
@@ -18,3 +18,3 @@ ```bash | ||
### npm | ||
#### npm | ||
@@ -25,3 +25,3 @@ ```bash | ||
# Usage | ||
### Usage | ||
@@ -44,10 +44,39 @@ ```html | ||
# UI component base on Beside | ||
### Options `where` | ||
- top center | ||
- top left | ||
- top right | ||
- top left diagonal | ||
- top right diagonal | ||
- bottom center | ||
- bottom left | ||
- bottom right | ||
- bottom left diagonal | ||
- bottom right diagonal | ||
- left center | ||
- left top | ||
- left bottom | ||
- right center | ||
- right top | ||
- right bottom | ||
- top left inner | ||
- top center inner | ||
- top right inner | ||
- left center inner | ||
- left center inner | ||
- center center inner | ||
- right center inner | ||
- bottom left inner | ||
- bottom center inner | ||
- bottom right inner | ||
### UI component base on Beside | ||
* [fo-popover](https://github.com/forsigner/fo-popover) A nice popover for Angular. | ||
* [fo-tooltop](https://github.com/forsigner/fo-tooltip) A nice tooltip for Angular. | ||
# Browser compatibility | ||
### Browser compatibility | ||
- IE7+ | ||
- IE7 && IE7+ | ||
- Firefox | ||
@@ -57,1 +86,6 @@ - Chrome | ||
- Opera | ||
### License | ||
[MIT](LICENSE) |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
36292
13
87
27
814
1