Skip to content

Commit

Permalink
Added gulpfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pjtatlow committed Jun 23, 2016
1 parent e01bd91 commit c775c11
Show file tree
Hide file tree
Showing 10 changed files with 290 additions and 214 deletions.
24 changes: 24 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "searchy.js",
"description": "JQuery and Lunr.js blog search plugin",
"main": "dist/searchy.min.js",
"authors": [
"PJ Tatlow"
],
"license": "MIT",
"keywords": [
"blog",
"search",
"Searchy",
"McSearchBox"
],
"homepage": "https://github.com/pjtatlow/searchy.js",
"moduleType": [],
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
1 change: 1 addition & 0 deletions dist/searchy.min.css

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

1 change: 1 addition & 0 deletions dist/searchy.min.js

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

1 change: 0 additions & 1 deletion dist/searchyMcSearchBox.min.css

This file was deleted.

27 changes: 0 additions & 27 deletions dist/searchyMcSearchBox.min.js

This file was deleted.

26 changes: 26 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
'use strict';

var gulp = require('gulp'),
rename = require('gulp-rename'),
uglify_js = require('gulp-uglify'),
uglify_css = require('gulp-uglifycss'),
sass = require('gulp-sass');

gulp.task('build',function() {
gulp
.src('src/searchy.js')
.pipe(uglify_js())
.pipe(rename('searchy.min.js'))
.pipe(gulp.dest('dist/'));

gulp
.src('src/searchy.scss')
.pipe(sass())
.pipe(uglify_css())
.pipe(rename('searchy.min.css'))
.pipe(gulp.dest('dist/'));
});


gulp.task('default',['build'])

34 changes: 34 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "searchy.js",
"version": "1.0.0",
"homepage": "https://github.com/pjtatlow/searchy.js",
"authors": [
"PJ Tatlow"
],
"description": "JQuery and Lunr.js blog search plugin",
"main": "dist/searchy.min.js",
"keywords": [
"blog",
"search",
"Searchy McSearchBox"
],
"devDependencies": {
"gulp": "^3.8.10",
"gulp-rename": "^1.2.0",
"gulp-uglify": "^1.1.0",
"gulp-sass": "^2.3.0",
"gulp-uglifycss": "^1.0.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/pjtatlow/searchy.js.git"
},
"author": "PJ Tatlow",
"license": "MIT",
"bugs": {
"url": "https://github.com/pjtatlow/searchy.js/issues"
}
}
Loading

0 comments on commit c775c11

Please sign in to comment.