Skip to content
This repository has been archived by the owner on May 4, 2020. It is now read-only.

Commit

Permalink
Added gulp and co
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-winterle committed Dec 22, 2016
1 parent f5dd612 commit 824b470
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
1 change: 1 addition & 0 deletions dist/lg-autoupdate.js

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

19 changes: 19 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
var gulp = require('gulp');
var uglify = require('gulp-uglify');

gulp.task("uglify-js", function() {
return gulp.src("src/*.js")
.pipe(uglify({
compress: {
hoist_funs: true,
hoist_vars: false,
warnings: false,
drop_console: false,
keep_fnames: false,
passes: 1
}
}))
.pipe(gulp.dest("dist/"));
});

gulp.task("default", ["uglify-js"]);
27 changes: 27 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "lg-autoupdate",
"version": "1.0.0",
"description": "Adds the possiblity to lightgallery to update the gallery after new images are added to the gallery",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hummal/lg-autoupdate.git"
},
"keywords": [
"lightgallery",
"autoupdate"
],
"author": "Philipp Winterle",
"license": "ISC",
"bugs": {
"url": "https://github.com/hummal/lg-autoupdate/issues"
},
"homepage": "https://github.com/hummal/lg-autoupdate#readme",
"dependencies": {
"gulp": "^3.9.1",
"gulp-uglify": "^2.0.0"
}
}

0 comments on commit 824b470

Please sign in to comment.