diff --git a/build/build.js b/build/build.js index 34c71a55..b14ca102 100644 --- a/build/build.js +++ b/build/build.js @@ -4,7 +4,6 @@ require('./check-versions')() const ora = require('ora') const rm = require('rimraf') const path = require('path') -const chalk = require('chalk') const webpack = require('webpack') const config = require('../config') const webpackConfig = require('./webpack.prod.conf') @@ -32,16 +31,14 @@ rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => { ) if (stats.hasErrors()) { - console.log(chalk.red(' Build failed with errors.\n')) + console.log(' Build failed with errors.\n') process.exit(1) } - console.log(chalk.cyan(' Build complete.\n')) + console.log(' Build complete.\n') console.log( - chalk.yellow( ' Tip: built files are meant to be served over an HTTP server.\n' + " Opening index.html over file:// won't work.\n" - ) ) if (process.env.npm_config_preview) { @@ -58,9 +55,7 @@ rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => { ) app.listen(port, function() { - console.log( - chalk.green(`> Listening at http://localhost:${port}${basePath}`) - ) + console.log(`> Listening at http://localhost:${port}${basePath}`) }) } }) diff --git a/build/check-versions.js b/build/check-versions.js index c5c29e90..56dbdccc 100644 --- a/build/check-versions.js +++ b/build/check-versions.js @@ -1,5 +1,4 @@ 'use strict' -const chalk = require('chalk') const semver = require('semver') const packageConfig = require('../package.json') const shell = require('shelljs') @@ -34,23 +33,13 @@ module.exports = function() { const mod = versionRequirements[i] if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) { - warnings.push( - mod.name + - ': ' + - chalk.red(mod.currentVersion) + - ' should be ' + - chalk.green(mod.versionRequirement) - ) + warnings.push(mod.name + ': ' + mod.currentVersion + ' should be ' + mod.versionRequirement) } } if (warnings.length) { console.log('') - console.log( - chalk.yellow( - 'To use this template, you must update following to modules:' - ) - ) + console.log('To use this template, you must update following to modules:') console.log() for (let i = 0; i < warnings.length; i++) { diff --git a/package.json b/package.json index 571350cd..4a597a8b 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,6 @@ "babel-loader": "8.2.5", "babel-plugin-dynamic-import-node-babel-7": "2.0.7", "babel-plugin-transform-es2015-modules-commonjs": "6.26.2", - "chalk": "2.4.2", "compression-webpack-plugin": "2.0.0", "connect": "3.7.0", "copy-webpack-plugin": "4.6.0", diff --git a/yarn.lock b/yarn.lock index b3e87433..144cf129 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2788,15 +2788,6 @@ caseless@~0.12.0: resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" integrity sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw== -chalk@2.4.2, chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.3.1, chalk@^2.4.1, chalk@^2.4.2: - version "2.4.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" - integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - chalk@^1.0.0, chalk@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" @@ -2808,6 +2799,15 @@ chalk@^1.0.0, chalk@^1.1.3: strip-ansi "^3.0.0" supports-color "^2.0.0" +chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.3.1, chalk@^2.4.1, chalk@^2.4.2: + version "2.4.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" + integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + chalk@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4"