Skip to content

Commit

Permalink
v4.6.0
Browse files Browse the repository at this point in the history
Updated npm deps and removed all unnecessary deps.
  • Loading branch information
cb1kenobi committed Sep 26, 2018
1 parent 2a45e79 commit 1e31c7b
Show file tree
Hide file tree
Showing 7 changed files with 977 additions and 1,018 deletions.
6 changes: 1 addition & 5 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"plugins": [
"transform-class-properties",
"transform-es2015-destructuring",
"transform-es2015-modules-commonjs",
"transform-es2015-parameters",
"transform-object-rest-spread"
"@babel/plugin-transform-modules-commonjs"
]
}
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
.git*
.nyc_output
.travis.yml
benchmark
coverage
docs
gulpfile.js
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# gawk

[![Greenkeeper badge](https://badges.greenkeeper.io/cb1kenobi/gawk.svg)](https://greenkeeper.io/)

[![NPM Version][npm-image]][npm-url]
[![NPM Downloads][downloads-image]][downloads-url]
[![Travis CI Build][travis-image]][travis-url]
[![Test Coverage][coveralls-image]][coveralls-url]
[![Greenkeeper badge][greenkeeper-image]][greenkeeper-url]
[![Deps][david-image]][david-url]
[![Dev Deps][david-dev-image]][david-dev-url]

Expand Down Expand Up @@ -256,6 +255,8 @@ MIT
[travis-url]: https://travis-ci.org/cb1kenobi/gawk
[coveralls-image]: https://img.shields.io/coveralls/cb1kenobi/gawk/master.svg
[coveralls-url]: https://coveralls.io/r/cb1kenobi/gawk
[greenkeeper-image]: https://badges.greenkeeper.io/cb1kenobi/gawk.svg
[greenkeeper-url]: https://greenkeeper.io/
[david-image]: https://img.shields.io/david/cb1kenobi/gawk.svg
[david-url]: https://david-dm.org/cb1kenobi/gawk
[david-dev-image]: https://img.shields.io/david/dev/cb1kenobi/gawk.svg
Expand Down
36 changes: 19 additions & 17 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
'use strict';

const $ = require('gulp-load-plugins')();
const del = require('del');
const fs = require('fs');
const gulp = require('gulp');
const manifest = require('./package.json');
const path = require('path');
const spawnSync = require('child_process').spawnSync;
const $ = require('gulp-load-plugins')();
const ansiColors = require('ansi-colors');
const fs = require('fs-extra');
const gulp = require('gulp');
const log = require('fancy-log');
const manifest = require('./package.json');
const path = require('path');
const spawnSync = require('child_process').spawnSync;

const coverageDir = path.join(__dirname, 'coverage');
const distDir = path.join(__dirname, 'dist');
Expand All @@ -17,11 +18,11 @@ const docsDir = path.join(__dirname, 'docs');
*/
gulp.task('clean', ['clean-coverage', 'clean-dist', 'clean-docs']);

gulp.task('clean-coverage', done => { del([coverageDir]).then(() => done()) });
gulp.task('clean-coverage', cb => fs.remove(coverageDir, cb));

gulp.task('clean-dist', done => { del([distDir]).then(() => done()) });
gulp.task('clean-dist', cb => fs.remove(distDir, cb));

gulp.task('clean-docs', done => { del([docsDir]).then(() => done()) });
gulp.task('clean-docs', cb => fs.remove(docsDir, cb));

/*
* build tasks
Expand Down Expand Up @@ -52,8 +53,8 @@ gulp.task('docs', ['lint-src', 'clean-docs'], () => {
brand: {
title: manifest.name,
description: manifest.description,
respository: 'https://github.com/cb1kenobi/gawk',
site: 'https://github.com/cb1kenobi/gawk'
respository: manifest.repository,
site: manifest.homepage
}
}
},
Expand Down Expand Up @@ -86,10 +87,10 @@ gulp.task('lint-test', () => lint('test/**/test-*.js'));
/*
* test tasks
*/
gulp.task('test', ['build', 'lint-test'], () => runTests());
gulp.task('test-only', ['lint-test'], () => runTests());
gulp.task('coverage', ['clean-coverage', 'lint-src', 'lint-test'], () => runTests(true));
gulp.task('coverage-only', ['clean-coverage', 'lint-test'], () => runTests(true));
gulp.task('test', [ 'build', 'lint-test' ], () => runTests());
gulp.task('test-only', [ 'lint-test' ], () => runTests());
gulp.task('coverage', [ 'clean-coverage', 'lint-src', 'lint-test' ], () => runTests(true));
gulp.task('coverage-only', [ 'clean-coverage', 'lint-test' ], () => runTests(true));

function runTests(cover) {
const args = [];
Expand All @@ -113,6 +114,7 @@ function runTests(cover) {
// https://github.com/istanbuljs/istanbuljs/tree/master/packages/istanbul-reports/lib
'--reporter=html',
'--reporter=json',
'--reporter=lcov',
'--reporter=text',
'--reporter=text-summary',
'--require', path.join(__dirname, 'test', 'transpile.js'),
Expand Down Expand Up @@ -159,7 +161,7 @@ function runTests(cover) {
args.push('test/**/test-*.js');
}

$.util.log('Running: ' + $.util.colors.cyan(execPath + ' ' + args.join(' ')));
log('Running: ' + ansiColors.cyan(execPath + ' ' + args.join(' ')));

// run!
if (spawnSync(execPath, args, { stdio: 'inherit' }).status) {
Expand Down
47 changes: 22 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gawk",
"version": "4.5.0",
"version": "4.6.0",
"description": "Observable JavaScript object model",
"main": "./dist/index.js",
"author": "Chris Barber <[email protected]> (https://github.com/cb1kenobi)",
Expand All @@ -24,45 +24,42 @@
},
"dependencies": {
"fast-deep-equal": "^2.0.1",
"source-map-support": "^0.5.6"
"source-map-support": "^0.5.9"
},
"devDependencies": {
"@babel/core": "latest",
"@babel/register": "latest",
"babel-eslint": "^8.2.3",
"babel-plugin-istanbul": "^4.1.6",
"babel-plugin-transform-class-properties": "next",
"babel-plugin-transform-es2015-destructuring": "next",
"babel-plugin-transform-es2015-modules-commonjs": "next",
"babel-plugin-transform-es2015-parameters": "next",
"babel-plugin-transform-object-rest-spread": "next",
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"coveralls": "^3.0.1",
"del": "^3.0.0",
"@babel/core": "^7.1.0",
"@babel/plugin-transform-modules-commonjs": "^7.1.0",
"@babel/register": "^7.0.0",
"ansi-colors": "^3.0.6",
"babel-eslint": "^10.0.0",
"babel-loader": "^8.0.2",
"babel-plugin-istanbul": "^5.0.1",
"chai": "^4.2.0",
"coveralls": "^3.0.2",
"esdoc": "^1.1.0",
"esdoc-ecmascript-proposal-plugin": "^1.0.0",
"esdoc-standard-plugin": "^1.0.0",
"eslint": "^5.6.0",
"eslint-plugin-mocha": "^5.2.0",
"eslint-plugin-security": "^1.4.0",
"fancy-log": "^1.3.2",
"fs-extra": "^7.0.0",
"gulp": "^3.9.1",
"gulp-babel": "next",
"gulp-debug": "^3.2.0",
"gulp-eslint": "^4.0.2",
"gulp-babel": "^8.0.0",
"gulp-debug": "^4.0.0",
"gulp-eslint": "^5.0.0",
"gulp-load-plugins": "^1.5.0",
"gulp-plumber": "^1.2.0",
"gulp-sourcemaps": "^2.6.4",
"gulp-util": "^3.0.8",
"mocha": "^5.2.0",
"nyc": "^12.0.2",
"sinon": "^6.0.0",
"sinon-chai": "^3.1.0"
"nyc": "^13.0.1",
"sinon": "^6.3.4",
"sinon-chai": "^3.2.0"
},
"homepage": "https://github.com/cb1kenobi/gawk",
"bugs": "https://github.com/cb1kenobi/gawk/issues",
"repository": {
"type": "git",
"url": "git://github.com/cb1kenobi/gawk.git"
},
"repository": "https://github.com/cb1kenobi/gawk",
"engines": {
"node": ">=6.0.0"
}
Expand Down
1 change: 0 additions & 1 deletion test/setup.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
global.chai = require('chai');
global.chai.use(require('chai-as-promised'));
global.chai.use(require('sinon-chai'));
global.expect = global.chai.expect;
global.sinon = require('sinon');
Expand Down
Loading

0 comments on commit 1e31c7b

Please sign in to comment.