Skip to content

Commit

Permalink
- add actual code in minimized version
Browse files Browse the repository at this point in the history
  • Loading branch information
nmartynenko committed Jul 23, 2014
1 parent 8219269 commit aee3f5f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
10 changes: 6 additions & 4 deletions gulpfile.js
Expand Up @@ -4,16 +4,18 @@ var gulp = require('gulp'),
jasmine = require('gulp-jasmine'),
qunit = require('gulp-qunit');

gulp.task('scripts', function() {
gulp.task('minimize', function() {
// Minify and copy all JavaScript (except vendor scripts)
gulp.src('./jquery.search.js')
.pipe(uglify())
.pipe(gulp.dest('build'));
.pipe(gulp.dest('./build'));
});

gulp.task('scripts', ['minimize'], function() {
//concat JS files with Copyright file
gulp.src([
'Copyright',
"./build/*.js"
'./Copyright',
'./build/jquery.search.js'
])
.pipe(concat("jquery.search.min.js", {newLine:""}))
.pipe(gulp.dest('.'))
Expand Down
1 change: 1 addition & 0 deletions jquery.search.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -23,7 +23,7 @@
"devDependencies": {
"gulp": "~3.8.6",
"gulp-uglify": "~0.3.1",
"gulp-concat": "~2.3.3",
"gulp-concat": "~2.3.4",
"gulp-jasmine": "~0.2.0",
"gulp-qunit": "~0.3.3",
"jsdom": "~0.11.1",
Expand Down
3 changes: 2 additions & 1 deletion todo.md
Expand Up @@ -2,4 +2,5 @@

- Support both: chaining and legacy "searcher" object
- Cover with tests for all major version of jQuery since 1.4.2
- Cover with tests all method of plugin (PhantomJS?)
- Cover with tests all method of plugin (PhantomJS?)
- Review gulp-concat issue

0 comments on commit aee3f5f

Please sign in to comment.