Skip to content

Commit

Permalink
2.5.9 fix bug #91
Browse files Browse the repository at this point in the history
  • Loading branch information
why520crazy committed Feb 26, 2018
1 parent 8b17640 commit c4f376c
Show file tree
Hide file tree
Showing 8 changed files with 3,871 additions and 203 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ node_modules
bower_components
example/css/*.css
.vscode
.DS_Store
157 changes: 0 additions & 157 deletions Gruntfile.js

This file was deleted.

43 changes: 43 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
const gulp = require('gulp');
const concat = require('gulp-concat');
const uglify = require('gulp-uglify');
const gulpCopy = require('gulp-copy');
const header = require('gulp-header');
const less = require('gulp-less');
const package = require('./package.json');

gulp.task('concat', function () {
return gulp.src(['./src/w5cValidator.js', './src/directive.js'])
.pipe(concat('w5cValidator.js'))
.pipe(header('/*! <%= pkg.name %> v<%= pkg.version %> <%= date %> */\n', {pkg: package, date: new Date()}))
.pipe(gulp.dest('./'))
.pipe(uglify({}))
.pipe(concat('w5cValidator.min.js'))
.pipe(gulp.dest('./'));
});

gulp.task('less', function () {
return gulp.src('./src/style.less')
.pipe(less({
// paths: [path.join(__dirname, 'less', 'includes')]
}))
.pipe(gulp.dest('./'));
});

gulp.task('copy', function () {
return gulp
.src('./src/style.less')
.pipe(gulpCopy('./', {prefix: 1}));
});

gulp.task('example', function () {
return gulp
.src('./example/css/css.less')
.pipe(less({
// paths: [path.join(__dirname, 'less', 'includes')]
}))
.pipe(gulp.dest('./example/css'));
});

gulp.task('default', ['copy', 'less', 'concat']);
gulp.task('build', ['default']);
Loading

0 comments on commit c4f376c

Please sign in to comment.