mirror of https://github.com/n2geoff/testit.git
added build process (gulp)
This commit is contained in:
parent
e4d1db0cfd
commit
f4bcad2396
|
@ -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"))
|
||||||
|
});
|
File diff suppressed because it is too large
Load Diff
|
@ -1,15 +1,19 @@
|
||||||
{
|
{
|
||||||
"name": "testit",
|
"name": "testit",
|
||||||
"version": "0.5.2",
|
"version": "0.6.1",
|
||||||
"description": "a minimalistic testing library",
|
"description": "a minimalistic testing library",
|
||||||
"main": "src/testit.js",
|
"main": "src/testit.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
"test": "test"
|
"test": "test"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"gulp": "^3.9.1",
|
||||||
|
"gulp-minify": "^2.1.0",
|
||||||
|
"gulp-strip-comments": "^2.5.2",
|
||||||
"jshint": "^2.9.5"
|
"jshint": "^2.9.5"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"build": "node_modules/.bin/gulp",
|
||||||
"test": "node_modules/.bin/jshint src/testit.js"
|
"test": "node_modules/.bin/jshint src/testit.js"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
Loading…
Reference in New Issue