Skip to content

Commit

Permalink
Merge pull request #1 from haasted/use-gulp
Browse files Browse the repository at this point in the history
Use gulp
  • Loading branch information
haasted authored Jan 29, 2017
2 parents 2db3f5b + 36399d1 commit cb8ded9
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/dist/
/node_modules/
1 change: 0 additions & 1 deletion bookmarklet.min.js

This file was deleted.

24 changes: 24 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
var gulp = require('gulp'),
minify = require('gulp-minify'),
del = require('del'),
stripDebug = require('gulp-strip-debug');

gulp.task('default', ['clean', 'minify']);

gulp.task('minify', function() {
gulp.src('src/jdocenhance.js')
.pipe(stripDebug())
.pipe(minify({}))
.pipe(gulp.dest('dist'));

gulp.src('src/bookmarklet.js')
.pipe(stripDebug())
.pipe(minify({}))
.pipe(gulp.dest('dist'));
});

gulp.task('clean', function() {
return del(
['dist/*']
);
});
1 change: 0 additions & 1 deletion jdocenhance.min.js

This file was deleted.

30 changes: 30 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "javadoc-enhancer",
"version": "1.0.0",
"description": "Javadoc-Enhander adds a powerful search-field to the class list of Javadoc page. The search field allows the use of wildcards and mimics the camel-case notation used for navigating classes in tools such as IntelliJ IDEA and Eclipse.",
"main": "gulpfile.js",
"scripts": {
"test": "test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/haasted/Javadoc-Enhancer.git"
},
"keywords": [
"java",
"javadoc",
"bookmarklet"
],
"author": "Henrik Aasted Sørensen <henrik@aasted.dk>",
"license": "MIT",
"bugs": {
"url": "https://github.com/haasted/Javadoc-Enhancer/issues"
},
"homepage": "https://github.com/haasted/Javadoc-Enhancer#readme",
"devDependencies": {
"del": "^2.2.2",
"gulp": "^3.9.1",
"gulp-minify": "0.0.14",
"gulp-strip-debug" : "1.1.0"
}
}
File renamed without changes.
File renamed without changes.

0 comments on commit cb8ded9

Please sign in to comment.