From fabf082949ebd7c479160feaea0c8ee4ddce42e9 Mon Sep 17 00:00:00 2001 From: Gleb Bahmutov Date: Wed, 21 Jun 2017 22:49:29 -0400 Subject: [PATCH] fix(git): latest pre-git version with simple commit message --- package.json | 8 +- .../node_modules/check-types/.travis.yml | 3 +- .../node_modules/check-types/COPYING | 2 +- .../node_modules/check-types/Jakefile.js | 59 - .../node_modules/check-types/README.md | 712 +++++- .../node_modules/check-types/component.json | 26 +- .../check-types/config/jshint.json | 67 - .../check-types/src/check-types.js | 952 +++++--- .../check-types/src/check-types.min.js | 2 +- .../check-types/test/check-types-browser.js | 928 -------- .../check-types/test/check-types.html | 2 +- .../check-types/test/check-types.js | 1935 ++++++++++++----- 12 files changed, 2705 insertions(+), 1991 deletions(-) delete mode 100644 test/test-next-updater/node_modules/check-types/Jakefile.js delete mode 100644 test/test-next-updater/node_modules/check-types/config/jshint.json delete mode 100644 test/test-next-updater/node_modules/check-types/test/check-types-browser.js diff --git a/package.json b/package.json index 8c85262..aed4471 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "config": { "pre-git": { - "commit-msg": "validate-commit-msg", + "commit-msg": "simple", "pre-commit": [ "npm run build", "npm test" @@ -66,9 +66,10 @@ "matchdep": "1.0.1", "mocha": "3.0.2", "mockery": "1.7.0", - "pre-git": "1.4.0", + "pre-git": "3.15.0", "publish": "0.6.0", "semantic-release": "4.3.5", + "simple-commit-message": "3.0.2", "stop-build": "1.0.1", "time-grunt": "1.4.0" }, @@ -99,7 +100,8 @@ "verifyConditions": { "path": "condition-node-version", "node": "4" - } + }, + "analyzeCommits": "simple-commit-message" }, "repository": { "type": "git", diff --git a/test/test-next-updater/node_modules/check-types/.travis.yml b/test/test-next-updater/node_modules/check-types/.travis.yml index d15ad89..5c8c10c 100644 --- a/test/test-next-updater/node_modules/check-types/.travis.yml +++ b/test/test-next-updater/node_modules/check-types/.travis.yml @@ -1,7 +1,8 @@ language: node_js node_js: + - "iojs" + - "0.12" - "0.10" - - "0.8" branches: only: - master diff --git a/test/test-next-updater/node_modules/check-types/COPYING b/test/test-next-updater/node_modules/check-types/COPYING index 59934f8..405b4f3 100644 --- a/test/test-next-updater/node_modules/check-types/COPYING +++ b/test/test-next-updater/node_modules/check-types/COPYING @@ -1,4 +1,4 @@ -Copyright © 2012 Phil Booth +Copyright © 2012, 2013, 2014, 2015 Phil Booth Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/test/test-next-updater/node_modules/check-types/Jakefile.js b/test/test-next-updater/node_modules/check-types/Jakefile.js deleted file mode 100644 index 6381d5d..0000000 --- a/test/test-next-updater/node_modules/check-types/Jakefile.js +++ /dev/null @@ -1,59 +0,0 @@ -/*jshint nomen:false */ -/*globals require, console, complete, __dirname, process */ - -'use strict'; - -var exec = require('child_process').exec, - -commands = { - minify: './node_modules/.bin/uglifyjs ./src/check-types.js --compress --mangle --output ./src/check-types.min.js', - test: './node_modules/.bin/mocha --ui tdd --reporter spec --colors ./test/check-types.js', - lint: './node_modules/.bin/jshint ./src/check-types.js --config config/jshint.json', - prepare: 'npm install' -}; - -desc('Minify the source code for deployment.'); -task('minify', function () { - runTask('minify', 'Minifying...'); -}, { - async: true -}); - -desc('Run the unit tests.'); -task('test', function () { - runTask('test', 'Testing...'); -}, { - async: true -}); - -desc('Lint the source code.'); -task('lint', function () { - runTask('lint', 'Linting...'); -}, { - async: true -}); - -desc('Install dependencies.'); -task('prepare', function () { - runTask('prepare', 'Preparing the build environment...'); -}, { - async: true -}); - -function runTask (command, message) { - console.log(message); - runCommand(command); -} - -function runCommand (command) { - exec(commands[command], { cwd: __dirname }, function (error, stdout, stderr) { - console.log(stdout); - console.log(stderr); - if (typeof error === 'object' && error !== null) { - console.log(error.message); - process.exit(1); - } - complete(); - }); -} - diff --git a/test/test-next-updater/node_modules/check-types/README.md b/test/test-next-updater/node_modules/check-types/README.md index f917ba1..93933b8 100644 --- a/test/test-next-updater/node_modules/check-types/README.md +++ b/test/test-next-updater/node_modules/check-types/README.md @@ -2,16 +2,41 @@ [![Build status][ci-image]][ci-status] -A tiny JavaScript library -for checking types -and throwing exceptions. - -## Why would I want such a thing? +A little JavaScript library +for asserting types +and values. + +* [Why would I want that?](#why-would-i-want-that) +* [How little is it?](#how-little-is-it) +* [How do I install it?](#how-do-i-install-it) +* [How do I use it?](#how-do-i-use-it) + * [Loading the library](#loading-the-library) + * [Calling the exported functions](#calling-the-exported-functions) + * [String predicates](#string-predicates) + * [Number predicates](#number-predicates) + * [Boolean predicates](#boolean-predicates) + * [Array predicates](#array-predicates) + * [Object predicates](#object-predicates) + * [Date predicates](#date-predicates) + * [Error predicates](#error-predicates) + * [Function predicates](#function-predicates) + * [Other predicates](#other-predicates) + * [Modifiers](#modifiers) + * [Batch operations](#batch-operations) + * [Some examples](#some-examples) +* [Where can I use it?](#where-can-i-use-it) +* [What changed from 2.x to 3.x?](#what-changed-from-2x-to-3x) +* [What changed from 1.x to 2.x?](#what-changed-from-1x-to-2x) +* [What changed from 0.x to 1.x?](#what-changed-from-0x-to-1x) +* [How do I set up the build environment?](#how-do-i-set-up-the-build-environment) +* [What license is it released under?](#what-license-is-it-released-under) + +## Why would I want that? Writing explicit conditions in your functions -for checking arguments -and throwing exceptions +to check arguments +and throw exceptions is a task that swiftly becomes tiresome and adds complexity @@ -20,37 +45,43 @@ to your codebase. The purpose of check-types.js is to remove this burden from JavaScript application developers -in an efficient and robust manner. +in an efficient and robust manner, +abstracted by a simple API. -## How tiny is it? +## How little is it? -14.3 kb unminified with comments, 2.2 kb minified, 0.8 kb minified + gzipped. +22 kb unminified with comments, 5.8 kb minified, 2 kb minified + gzipped. ## How do I install it? -Any of the following will do: +If you're using npm: ``` -npm install check-types - -jam install check-types - -bower install check-types +npm install check-types --save +``` -component install philbooth/check-types.js +Or if you just want the git repo: +``` git clone git@github.com:philbooth/check-types.js.git ``` +If you're into +other package managers, +it is also available +from Bower, Component and Jam. + ## How do I use it? +### Loading the library + If you are running in -[Node.js][node], -[Browserify] +Node.js, +Browserify or another CommonJS-style environment, you can `require` -check-types.js like so: +check-types like so: ```javascript var check = require('check-types'); @@ -58,157 +89,600 @@ var check = require('check-types'); It also the supports the AMD-style format -preferred by [Require.js][require]: - -```javascript -require.config({ - paths: { - check: 'check-types.js/src/check-types' - } -}); - -require([ 'check' ], function (check) { -}); -``` +preferred by Require.js. If you are including check-types.js with an HTML ` - +