Comparing version 0.1.0 to 0.2.0
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="0.2.0"></a> | ||
# [0.2.0](https://github.com/Igmat/baset/compare/v0.1.0...v0.2.0) (2018-01-17) | ||
### Features | ||
* **Core, CLI:** Adding two different commands (test and accept), also introducing yargs to parse ar ([2d98352](https://github.com/Igmat/baset/commit/2d98352)) | ||
<a name="0.1.0"></a> | ||
@@ -8,0 +19,0 @@ # [0.1.0](https://github.com/Igmat/baset/compare/v0.0.1...v0.1.0) (2018-01-17) |
@@ -1,1 +0,3 @@ | ||
export declare function init(): Promise<void>; | ||
/// <reference types="yargs" /> | ||
import * as yargs from 'yargs'; | ||
export declare const cli: yargs.Argv; |
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const baset_core_1 = require("baset-core"); | ||
const glob = require("glob-promise"); | ||
const path = require("path"); | ||
function init() { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const [specs, baselines] = yield Promise.all([glob('**/*.spec.js'), glob('**/*.base')]); | ||
baset_core_1.test(specs.map(spec => path.resolve(spec)), baselines.map(base => path.resolve(base))); | ||
}); | ||
} | ||
exports.init = init; | ||
const yargs = require("yargs"); | ||
exports.cli = yargs | ||
.usage('$0 <command>') | ||
.commandDir('./commands') | ||
.help('h') | ||
.alias('help', 'h') | ||
.epilog('Made by Igmat.'); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "baset-cli", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "", | ||
@@ -18,2 +18,3 @@ "main": "dist/index.js", | ||
"@types/node": "^9.3.0", | ||
"@types/yargs": "^10.0.1", | ||
"tslint": "^5.9.1", | ||
@@ -23,6 +24,7 @@ "typescript": "^2.6.2" | ||
"dependencies": { | ||
"baset-core": "^0.1.0", | ||
"baset-core": "^0.2.0", | ||
"glob": "^7.1.2", | ||
"glob-promise": "^3.3.0" | ||
"glob-promise": "^3.3.0", | ||
"yargs": "^10.1.1" | ||
} | ||
} |
@@ -1,10 +0,8 @@ | ||
import { test } from 'baset-core'; | ||
import * as glob from 'glob-promise'; | ||
import * as path from 'path'; | ||
import * as yargs from 'yargs'; | ||
export async function init() { | ||
const [specs, baselines] = await Promise.all([glob('**/*.spec.js'), glob('**/*.base')]); | ||
test( | ||
specs.map(spec => path.resolve(spec)), | ||
baselines.map(base => path.resolve(base))); | ||
} | ||
export const cli = yargs | ||
.usage('$0 <command>') | ||
.commandDir('./commands') | ||
.help('h') | ||
.alias('help', 'h') | ||
.epilog('Made by Igmat.'); |
Sorry, the diff of this file is not supported yet
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
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
10012
17
191
4
5
+ Addedyargs@^10.1.1
+ Addedansi-regex@2.1.13.0.1(transitive)
+ Addedbaset-core@0.2.2(transitive)
+ Addedcamelcase@4.1.0(transitive)
+ Addedcliui@4.1.0(transitive)
+ Addedcode-point-at@1.1.0(transitive)
+ Addedcross-spawn@5.1.0(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addedexeca@0.7.0(transitive)
+ Addedfind-up@2.1.0(transitive)
+ Addedget-caller-file@1.0.3(transitive)
+ Addedget-stream@3.0.0(transitive)
+ Addedinvert-kv@1.0.0(transitive)
+ Addedis-fullwidth-code-point@1.0.02.0.0(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjson-beautify@1.1.1(transitive)
+ Addedlcid@1.0.0(transitive)
+ Addedlocate-path@2.0.0(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addedmem@1.1.0(transitive)
+ Addedmimic-fn@1.2.0(transitive)
+ Addednpm-run-path@2.0.2(transitive)
+ Addednumber-is-nan@1.0.1(transitive)
+ Addedos-locale@2.1.0(transitive)
+ Addedp-finally@1.0.0(transitive)
+ Addedp-limit@1.3.0(transitive)
+ Addedp-locate@2.0.0(transitive)
+ Addedp-try@1.0.0(transitive)
+ Addedpath-exists@3.0.0(transitive)
+ Addedpath-key@2.0.1(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addedrequire-directory@2.1.1(transitive)
+ Addedrequire-main-filename@1.0.1(transitive)
+ Addedset-blocking@2.0.0(transitive)
+ Addedshebang-command@1.2.0(transitive)
+ Addedshebang-regex@1.0.0(transitive)
+ Addedsignal-exit@3.0.7(transitive)
+ Addedstring-width@1.0.22.1.1(transitive)
+ Addedstrip-ansi@3.0.14.0.0(transitive)
+ Addedstrip-eof@1.0.0(transitive)
+ Addedwhich@1.3.1(transitive)
+ Addedwhich-module@2.0.1(transitive)
+ Addedwrap-ansi@2.1.0(transitive)
+ Addedy18n@3.2.2(transitive)
+ Addedyallist@2.1.2(transitive)
+ Addedyargs@10.1.2(transitive)
+ Addedyargs-parser@8.1.0(transitive)
- Removedbaset-core@0.1.0(transitive)
Updatedbaset-core@^0.2.0