Created
March 26, 2016 16:48
-
-
Save brian-mann/e734fab6366bd783059f to your computer and use it in GitHub Desktop.
fun deprecation warning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| chalk = require("chalk") | |
| asciify = require("asciify") | |
| asteriks = Array(90).join("*") | |
| log = { | |
| newLine: (num = 1) -> | |
| n = Array(num).join("\n") | |
| console.log(n) | |
| } | |
| ["red", "yellow", "cyan", "blue"].forEach (color) -> | |
| log[color] = (msg) -> | |
| console.log chalk[color](msg) | |
| display = (err, res) -> | |
| log.red(asteriks) | |
| log.newLine() | |
| log.red(res) | |
| log.newLine() | |
| log.yellow("This package has been renamed to: #{chalk.cyan("cypress-cli")}") | |
| log.newLine() | |
| log.yellow("Please update your scripts to: #{chalk.cyan("npm install -g cypress-cli")}") | |
| log.newLine(2) | |
| log.yellow("You can read more about this change and the upcoming open source release:") | |
| log.cyan("https://on.cypress.io/warnings#cypress-package-deprecation") | |
| log.newLine() | |
| log.red(asteriks) | |
| log.newLine() | |
| asciify("warning", {font: "starwars"}, display) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment