Comparing version 1.25.1 to 1.25.2
// grab our gulp packages | ||
const gulp = require('gulp'); | ||
const gutil = require('gulp-util'); | ||
const PluginError = require('plugin-error'); | ||
const { execSync } = require('child_process'); | ||
const del = require('del'); | ||
@@ -11,3 +12,3 @@ function runCmd(taskName, cmd) { | ||
catch (error) { | ||
throw new gutil.PluginError({ | ||
throw new PluginError({ | ||
plugin: taskName, | ||
@@ -19,2 +20,7 @@ message: error.message | ||
gulp.task('clean', function(done) { | ||
del.sync(['./build', './docs']); | ||
done(); | ||
}); | ||
gulp.task('eslint', function eslintTask(done) { | ||
@@ -30,3 +36,8 @@ runCmd('eslint', 'npm run eslint-fix'); | ||
gulp.task('esdoc', gulp.series('dev-test', function esdocTask(done) { | ||
gulp.task('analyze-tests', gulp.series('dev-test', function devTestTask(done) { | ||
runCmd('analyze-tests', 'npm run analyze-tests'); | ||
done(); | ||
})); | ||
gulp.task('esdoc', gulp.series('analyze-tests', function esdocTask(done) { | ||
runCmd('esdoc', 'npm run esdoc'); | ||
@@ -52,3 +63,2 @@ done(); | ||
gulp.task('build', gulp.series('web-test', function buildTask(done) { | ||
gutil.log('Build is complete.'); | ||
done(); | ||
@@ -63,4 +73,3 @@ })); | ||
gulp.task('default', gulp.series('build', 'watch', function defaultTask(done) { | ||
gutil.log('Default task is complete.'); | ||
done(); | ||
})); |
{ | ||
"name": "jstreemap", | ||
"version": "1.25.1", | ||
"version": "1.25.2", | ||
"description": "Library of associative containers; it implements TreeMap, TreeSet, TreeMultiMap and TreeMultiSet classes", | ||
"main": "jstreemap.js", | ||
"scripts": { | ||
"analyze-tests": "node ./tools/analyze-tests.js dev-tests.xml", | ||
"esdoc": "esdoc -c ./esdoc.json", | ||
"eslint-fix": "eslint --config=./config/eslint.config.json --fix src/**/*.js test/**/*.js gulpfile.js", | ||
"eslint-watch": "esw --config=./config/eslint.config.json -w --fix src/**/*.js test/**/*.js gulpfile.js", | ||
"test-watch": "mocha --reporter spec -w --recursive test/specs/*.spec.js", | ||
"dev-test": "cross-env DEV_TEST=true nyc --reporter=html --reporter=text --report-dir=./build/coverage --check-coverage --lines 100 --functions 100 --branches 100 mocha --reporter spec test/specs/*.spec.js", | ||
"test": "cross-env DEV_TEST=true nyc --reporter=html --reporter=text --report-dir=./build/coverage mocha --reporter spec test/specs/*.spec.js", | ||
"prod-test": "nyc --reporter=html --reporter=text --report-dir=./build/postbuild-coverage mocha --reporter spec test/specs/*.spec.js", | ||
"test-watch": "cross-env DEV_TEST=true mocha --reporter spec -w --recursive test/specs/*.spec.js", | ||
"dev-test": "cross-env DEV_TEST=true nyc --reporter=html --reporter=text --report-dir=./build/coverage --check-coverage --lines 100 --functions 100 --branches 100 mocha --reporter mocha-multi-reporters --reporter-options configFile=./config/mocha-reporters.json test/specs/*.spec.js", | ||
"prod-test": "mocha --reporter spec test/specs/*.spec.js", | ||
"web-test": "mocha --reporter spec test/browser/*.spec.js", | ||
@@ -60,7 +60,7 @@ "webpack": "webpack --config ./config/webpack.config.js" | ||
"homepage": "https://github.com/kirusi/jstreemap#readme", | ||
"dependencies": { | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"coveralls": "^3.0.0", | ||
"cross-env": "^5.2.0", | ||
"del": "^3.0.0", | ||
"esdoc": "^1.0.4", | ||
@@ -71,7 +71,11 @@ "esdoc-node": "^1.0.2", | ||
"eslint-watch": "^3.1.3", | ||
"gh-badges": "^2.1.0", | ||
"gulp": "^4.0.0", | ||
"gulp-util": "^3.0.8", | ||
"libxmljs": "^0.19.5", | ||
"mocha": "^4.1.0", | ||
"mocha-junit-reporter": "^1.18.0", | ||
"mocha-lcov-reporter": "^1.3.0", | ||
"mocha-multi-reporters": "^1.1.7", | ||
"nyc": "^11.4.1", | ||
"plugin-error": "^1.0.1", | ||
"selenium-webdriver": "^4.0.0-alpha.1", | ||
@@ -78,0 +82,0 @@ "should": "^13.1.3", |
@@ -5,2 +5,3 @@ # jstreemap | ||
[![ESDoc coverage badge](https://doc.esdoc.org/github.com/Kirusi/jstreemap/badge.svg)](https://doc.esdoc.org/github.com/Kirusi/jstreemap/) | ||
[![Number of tests](https://raw.githubusercontent.com/Kirusi/jstreemap/master/tools/test-badge.svg?sanitize=true)](https://travis-ci.org/Kirusi/jstreemap) | ||
[![Codacy code quality badge](https://api.codacy.com/project/badge/Grade/9f1cd5c4a06b46379f3123be48c65abe)](https://www.codacy.com/app/Kirusi/jstreemap?utm_source=github.com&utm_medium=referral&utm_content=Kirusi/jstreemap&utm_campaign=Badge_Grade) | ||
@@ -7,0 +8,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12962549
101
250916
131
20
10