Skip to content

Commit

Permalink
feat: add minified code
Browse files Browse the repository at this point in the history
Signed-off-by: rvanbaalen <[email protected]>
  • Loading branch information
rvanbaalen committed Dec 2, 2020
1 parent 9949662 commit a497e03
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 9 deletions.
1 change: 1 addition & 0 deletions dist/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.js
5 changes: 0 additions & 5 deletions dist/hashparser.js

This file was deleted.

4 changes: 3 additions & 1 deletion gulpfile.babel.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import gulp from 'gulp';
import babel from 'gulp-babel';
import minify from 'gulp-minify';

exports.default = () => {
return gulp.src('./src/hashparser.js')
.pipe(babel())
.pipe(minify())
.pipe(gulp.dest('./dist'));
};
};
111 changes: 110 additions & 1 deletion package-lock.json

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

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rvanbaalen/hashparser",
"version": "1.0.5",
"version": "1.0.6",
"main": "src/hashparser.js",
"license": "MIT",
"devDependencies": {
Expand All @@ -9,6 +9,7 @@
"@babel/register": "^7.4.4",
"babel-preset-minify": "^0.5.0",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0"
"gulp-babel": "^8.0.0",
"gulp-minify": "^3.1.0"
}
}

0 comments on commit a497e03

Please sign in to comment.