@syngrisi/node-resemble.js 2.2.27-alpha.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -6
- package/gulpfile.js +0 -37
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syngrisi/node-resemble.js",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Image analysis and comparison for nodejs",
|
|
5
5
|
"main": "resemble.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test": "
|
|
7
|
+
"test": "jasmine resemble.spec.js",
|
|
8
|
+
"test:auto": "chokidar 'resemble.js' 'resemble.spec.js' -c \"npm test\"",
|
|
8
9
|
"build": "echo build",
|
|
9
10
|
"release": "release-it --github.release",
|
|
10
11
|
"pkglist": "npx npm-packlist # list of files that will be published in syngrisi package, show the files section"
|
|
@@ -35,9 +36,8 @@
|
|
|
35
36
|
"sharp": "^0.33.5"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"gulp-util": "3.0.7"
|
|
39
|
+
"chokidar-cli": "^3.0.0",
|
|
40
|
+
"jasmine": "^5.3.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "b77d354875f86b564d5aebad465187885a040e87"
|
|
43
43
|
}
|
package/gulpfile.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
var gulp = require('gulp');
|
|
2
|
-
var jasmine = require('gulp-jasmine');
|
|
3
|
-
var gutil = require('gulp-util');
|
|
4
|
-
const srcFiles = 'resemble.js';
|
|
5
|
-
var specFiles = 'resemble.spec.js';
|
|
6
|
-
|
|
7
|
-
function runTests(breakOnError) {
|
|
8
|
-
return gulp.src(specFiles)
|
|
9
|
-
.pipe(jasmine({
|
|
10
|
-
includeStackTrace: true
|
|
11
|
-
}))
|
|
12
|
-
.on('error', errorHandler(breakOnError));
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function errorHandler(breakOnError) {
|
|
16
|
-
return function (error) {
|
|
17
|
-
if (breakOnError) {
|
|
18
|
-
throw error;
|
|
19
|
-
} else {
|
|
20
|
-
gutil.log(gutil.colors.red('[Jasmine]'), error.toString());
|
|
21
|
-
this.emit('end');
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
gulp.task('test', function (done) {
|
|
27
|
-
runTests(true);
|
|
28
|
-
done();
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
gulp.task('test:auto', function () {
|
|
32
|
-
runTests(false);
|
|
33
|
-
|
|
34
|
-
return gulp.watch([srcFiles, specFiles], function () {
|
|
35
|
-
runTests(false);
|
|
36
|
-
});
|
|
37
|
-
});
|