buildstamp
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -0,1 +1,8 @@ | ||
# buildstamp [1.4.0](https://github.com/qiwi/buildstamp/compare/buildstamp@1.3.0...buildstamp@1.4.0) (2020-11-09) | ||
### Features | ||
* **core:** added no-space json separator option ([#31](https://github.com/qiwi/buildstamp/issues/31)) ([4849ade](https://github.com/qiwi/buildstamp/commit/4849adebe0957bdf9055e519f1086a0bcc6c59b6)) | ||
# buildstamp [1.3.0](https://github.com/qiwi/buildstamp/compare/buildstamp@1.2.3...buildstamp@1.3.0) (2020-11-05) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "buildstamp", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"private": false, | ||
@@ -25,2 +25,3 @@ "publishConfig": { | ||
"build:ts": "mkdirp target/ts && cp -r src/main/ts/ target/ts/", | ||
"build:local": "yarn build:es5 && chmod +x target/es5/cli.js", | ||
"build:libdef": "libdefkit --tsconfig=tsconfig.es5.json --tsconfig=tsconfig.es6.json", | ||
@@ -27,0 +28,0 @@ "test:report": "yarn test && yarn push:report", |
@@ -35,3 +35,3 @@ # buildstamp | ||
| --out.path | path to generated file | output is not written to a file | | ||
| --out.jsonSeparator | one of `tab`, `space`, `double-space` | `tab` | | ||
| --out.jsonSeparator | one of `tab`, `space`, `double-space`, `no-space` | `tab` | | ||
| --git | add git data to output | git data is omitted | | ||
@@ -38,0 +38,0 @@ | --docker.imageTag | docker image tag, will be added to output, if exists | docker info is omitted | |
@@ -7,4 +7,6 @@ "use strict"; | ||
exports.loggerChunk = function (ctx) { | ||
var _a, _b; | ||
if (ctx.stamp) { | ||
console.log(utils_1.formatOutput(ctx.stamp, constants_1.spaceTypes[constants_1.defaultJsonSpace])); | ||
var jsonSpace = (_b = (_a = ctx.options) === null || _a === void 0 ? void 0 : _a.out) === null || _b === void 0 ? void 0 : _b.jsonSeparator; | ||
console.log(utils_1.formatOutput(ctx.stamp, constants_1.spaceTypes[jsonSpace || constants_1.defaultJsonSpace])); | ||
} | ||
@@ -11,0 +13,0 @@ return ctx; |
@@ -12,3 +12,3 @@ "use strict"; | ||
var out = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.options) === null || _a === void 0 ? void 0 : _a.out; | ||
if (out && ctx.stamp) { | ||
if (out && ctx.stamp && out.path) { | ||
var path = out.path, jsonSeparator = out.jsonSeparator; | ||
@@ -15,0 +15,0 @@ var body = utils_1.formatOutput(ctx.stamp, constants_1.spaceTypes[jsonSeparator || constants_1.defaultJsonSpace]); |
@@ -7,2 +7,3 @@ export declare const defaultFilename = "buildstamp.json"; | ||
'double-space': string; | ||
'no-space': string; | ||
}; |
@@ -10,3 +10,4 @@ "use strict"; | ||
'double-space': ' ', | ||
'no-space': '', | ||
}; | ||
//# sourceMappingURL=constants.js.map |
@@ -7,4 +7,6 @@ "use strict"; | ||
exports.loggerChunk = (ctx) => { | ||
var _a, _b; | ||
if (ctx.stamp) { | ||
console.log(utils_1.formatOutput(ctx.stamp, constants_1.spaceTypes[constants_1.defaultJsonSpace])); | ||
const jsonSpace = (_b = (_a = ctx.options) === null || _a === void 0 ? void 0 : _a.out) === null || _b === void 0 ? void 0 : _b.jsonSeparator; | ||
console.log(utils_1.formatOutput(ctx.stamp, constants_1.spaceTypes[jsonSpace || constants_1.defaultJsonSpace])); | ||
} | ||
@@ -11,0 +13,0 @@ return ctx; |
@@ -12,3 +12,3 @@ "use strict"; | ||
const out = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.options) === null || _a === void 0 ? void 0 : _a.out; | ||
if (out && ctx.stamp) { | ||
if (out && ctx.stamp && out.path) { | ||
const { path, jsonSeparator } = out; | ||
@@ -15,0 +15,0 @@ const body = utils_1.formatOutput(ctx.stamp, constants_1.spaceTypes[jsonSeparator || constants_1.defaultJsonSpace]); |
@@ -7,2 +7,3 @@ export declare const defaultFilename = "buildstamp.json"; | ||
'double-space': string; | ||
'no-space': string; | ||
}; |
@@ -10,3 +10,4 @@ "use strict"; | ||
'double-space': ' ', | ||
'no-space': '', | ||
}; | ||
//# sourceMappingURL=constants.js.map |
@@ -7,3 +7,4 @@ import { defaultJsonSpace, spaceTypes } from '../constants' | ||
if (ctx.stamp) { | ||
console.log(formatOutput(ctx.stamp, spaceTypes[defaultJsonSpace])) | ||
const jsonSpace = ctx.options?.out?.jsonSeparator | ||
console.log(formatOutput(ctx.stamp, spaceTypes[jsonSpace || defaultJsonSpace])) | ||
} | ||
@@ -10,0 +11,0 @@ |
@@ -12,3 +12,3 @@ import { writeFileSync } from 'fs' | ||
if (out && ctx.stamp) { | ||
if (out && ctx.stamp && out.path) { | ||
const { path, jsonSeparator } = out | ||
@@ -15,0 +15,0 @@ |
@@ -9,2 +9,3 @@ export const defaultFilename = 'buildstamp.json' | ||
'double-space': ' ', | ||
'no-space': '', | ||
} |
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 not supported yet
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 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
67048
1196