baset-core
Advanced tools
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) |
export declare function test(specs: string[], baselines: string[]): void; | ||
export declare function accept(files: string[]): void; |
@@ -27,2 +27,10 @@ "use strict"; | ||
exports.test = test; | ||
function accept(files) { | ||
files.forEach(file => { | ||
const baseline = fs.readFileSync(file, { encoding: 'utf-8' }); | ||
const filePath = file.replace(/.tmp$/, ''); | ||
fs.writeFile(filePath, baseline, err => console.log(err || `Baseline ${filePath} is written.`)); | ||
}); | ||
} | ||
exports.accept = accept; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "baset-core", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -26,1 +26,12 @@ import * as fs from 'fs'; | ||
} | ||
export function accept(files: string[]) { | ||
files.forEach(file => { | ||
const baseline = fs.readFileSync(file, { encoding: 'utf-8' }); | ||
const filePath = file.replace(/.tmp$/, ''); | ||
fs.writeFile( | ||
filePath, | ||
baseline, | ||
err => console.log(err || `Baseline ${filePath} is written.`)); | ||
}); | ||
} |
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
6142
103