added build process (gulp)

This commit is contained in:
Geoff Doty 2018-04-07 04:03:46 -04:00
parent e4d1db0cfd
commit f4bcad2396
3 changed files with 3195 additions and 20 deletions

10
gulpfile.js Normal file
View File

@ -0,0 +1,10 @@
const gulp = require("gulp");
const minify = require('gulp-minify');
const strip = require("gulp-strip-comments");
gulp.task("default", function() {
gulp.src("./src/testit.js")
.pipe(strip({safe: true}))
.pipe(minify({ext: {min: ".min.js"}}))
.pipe(gulp.dest("dist"))
});

3189
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,15 +1,19 @@
{
"name": "testit",
"version": "0.5.2",
"version": "0.6.1",
"description": "a minimalistic testing library",
"main": "src/testit.js",
"directories": {
"test": "test"
},
"devDependencies": {
"gulp": "^3.9.1",
"gulp-minify": "^2.1.0",
"gulp-strip-comments": "^2.5.2",
"jshint": "^2.9.5"
},
"scripts": {
"build": "node_modules/.bin/gulp",
"test": "node_modules/.bin/jshint src/testit.js"
},
"repository": {