/
githubmr
/
facebook-react
Обзор
Документация
Войти
/
githubmr
/
facebook-react
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
v17.0.0
scripts/release/theme.js
35 строк
998 B
Brian Vaughn
Publish a local release (canary or stable) to NPM (#14260)
23 ноя 2018, 23:37
Не верифицирован
23 ноя 2018, 23:37
686f106
Код
Авторство
О чём код?
'use strict'; const chalk = require('chalk'); const colors = { blue: '#0091ea', gray: '#78909c', green: '#00c853', red: '#d50000', yellow: '#ffd600', }; const theme = chalk.constructor(); theme.package = theme.hex(colors.green); theme.version = theme.hex(colors.yellow); theme.tag = theme.hex(colors.yellow); theme.build = theme.hex(colors.yellow); theme.error = theme.hex(colors.red).bold; theme.dimmed = theme.hex(colors.gray); theme.caution = theme.hex(colors.red).bold; theme.link = theme.hex(colors.blue).underline.italic; theme.header = theme.hex(colors.green).bold; theme.path = theme.hex(colors.gray).italic; theme.command = theme.hex(colors.gray); theme.quote = theme.italic; theme.diffHeader = theme.hex(colors.gray); theme.diffAdded = theme.hex(colors.green); theme.diffRemoved = theme.hex(colors.red); theme.spinnerInProgress = theme.hex(colors.yellow); theme.spinnerError = theme.hex(colors.red); theme.spinnerSuccess = theme.hex(colors.green); module.exports = theme;