(cherry picked from commit c145a33b95
)
This commit is contained in:
parent
975aee9d98
commit
7ee0d60e6e
|
@ -12,7 +12,6 @@ const gulp = require('gulp');
|
|||
const mocha = require('gulp-mocha');
|
||||
const multiProcess = require('gulp-multi-process');
|
||||
const fancyLog = require('fancy-log');
|
||||
const ansiColors = require('ansi-colors');
|
||||
const pkg = require('./package.json');
|
||||
|
||||
const buildDir = path.resolve(__dirname, 'build');
|
||||
|
@ -23,7 +22,6 @@ const coverageDir = path.resolve(__dirname, 'coverage');
|
|||
const gulpHelpers = {
|
||||
buildDir,
|
||||
buildTarget,
|
||||
colors: ansiColors,
|
||||
coverageDir,
|
||||
log: fancyLog,
|
||||
mocha,
|
||||
|
|
|
@ -103,7 +103,6 @@
|
|||
"@types/tinycolor2": "^1.4.1",
|
||||
"@types/uuid": "^3.4.4",
|
||||
"abab": "^1.0.4",
|
||||
"ansi-colors": "^3.0.5",
|
||||
"ansicolors": "0.3.2",
|
||||
"axios": "^0.19.0",
|
||||
"babel-jest": "^24.9.0",
|
||||
|
|
|
@ -6,15 +6,16 @@
|
|||
|
||||
import buildVersion from './helpers/build_version';
|
||||
import gitInfo from './helpers/git_info';
|
||||
import chalk from 'chalk';
|
||||
|
||||
export default (gulp, { log, colors, pkg }) => {
|
||||
export default (gulp, { log, pkg }) => {
|
||||
gulp.task('report', () => {
|
||||
return gitInfo()
|
||||
.then(function (info) {
|
||||
log('Package Name', colors.yellow(pkg.name));
|
||||
log('Version', colors.yellow(buildVersion(pkg)));
|
||||
log('Build Number', colors.yellow(info.number));
|
||||
log('Build SHA', colors.yellow(info.sha));
|
||||
log('Package Name', chalk.yellow(pkg.name));
|
||||
log('Version', chalk.yellow(buildVersion(pkg)));
|
||||
log('Build Number', chalk.yellow(info.number));
|
||||
log('Build SHA', chalk.yellow(info.sha));
|
||||
});
|
||||
});
|
||||
};
|
||||
|
|
|
@ -4811,11 +4811,6 @@ ansi-colors@^3.0.0:
|
|||
resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-3.2.1.tgz#9638047e4213f3428a11944a7d4b31cba0a3ff95"
|
||||
integrity sha512-Xt+zb6nqgvV9SWAVp0EG3lRsHcbq5DDgqjPPz6pwgtj6RKz65zGXMNa82oJfOSBA/to6GmRP7Dr+6o+kbApTzQ==
|
||||
|
||||
ansi-colors@^3.0.5:
|
||||
version "3.0.5"
|
||||
resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-3.0.5.tgz#cb9dc64993b64fd6945485f797fc3853137d9a7b"
|
||||
integrity sha512-VVjWpkfaphxUBFarydrQ3n26zX5nIK7hcbT3/ielrvwDDyBBjuh2vuSw1P9zkPq0cfqvdw7lkYHnu+OLSfIBsg==
|
||||
|
||||
ansi-cyan@^0.1.1:
|
||||
version "0.1.1"
|
||||
resolved "https://registry.yarnpkg.com/ansi-cyan/-/ansi-cyan-0.1.1.tgz#538ae528af8982f28ae30d86f2f17456d2609873"
|
||||
|
|
Loading…
Reference in a new issue