aboutsummaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorJorge Bucaran <mail@jorgebucaran.com>2021-03-27 17:46:41 +0900
committerGitHub <noreply@github.com>2021-03-27 19:46:41 +1100
commitb27ad17c593b87708a7c0b72a9c04185852ecf3f (patch)
tree38d59266edc2720719924d6dcb249efa9e5992ee /tasks
parent14b8b24e1415dd6176f18a17d51ba6fe58a1f93f (diff)
downloadplyr-b27ad17c593b87708a7c0b72a9c04185852ecf3f.tar.lz
plyr-b27ad17c593b87708a7c0b72a9c04185852ecf3f.tar.xz
plyr-b27ad17c593b87708a7c0b72a9c04185852ecf3f.zip
Migrate color formatting to colorette (#2124)
Diffstat (limited to 'tasks')
-rw-r--r--tasks/deploy.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/tasks/deploy.js b/tasks/deploy.js
index 42fa14e8..cfe41cf2 100644
--- a/tasks/deploy.js
+++ b/tasks/deploy.js
@@ -10,7 +10,7 @@ const gulp = require('gulp');
const gitbranch = require('git-branch');
const rename = require('gulp-rename');
const replace = require('gulp-replace');
-const ansi = require('ansi-colors');
+const { green, cyan, bold } = require('colorette');
const log = require('fancy-log');
const open = require('gulp-open');
const size = require('gulp-size');
@@ -128,7 +128,7 @@ gulp.task('version', (done) => {
const { domain } = deploy.cdn;
- log(`Updating version in files to ${ansi.green.bold(version)}...`);
+ log(`Updating version in files to ${green(bold(version))}...`);
// Replace versioned URLs in source
const files = ['plyr.js', 'plyr.polyfilled.js', 'config/defaults.js'];
@@ -156,7 +156,7 @@ gulp.task('cdn', (done) => {
throw new Error('No publisher instance. Check AWS configuration.');
}
- log(`Uploading ${ansi.green.bold(pkg.version)} to ${ansi.cyan(domain)}...`);
+ log(`Uploading ${green(bold(pkg.version))} to ${cyan(domain)}...`);
// Upload to CDN
return (
@@ -199,7 +199,7 @@ gulp.task('purge', () => {
const purge = new FastlyPurge(fastly.token);
list.forEach((url) => {
- log(`Purging ${ansi.cyan(url)}...`);
+ log(`Purging ${cyan(url)}...`);
purge.url(url, (error, result) => {
if (error) {
@@ -226,7 +226,7 @@ gulp.task('demo', (done) => {
throw new Error('No publisher instance. Check AWS configuration.');
}
- log(`Uploading ${ansi.green.bold(pkg.version)} to ${ansi.cyan(domain)}...`);
+ log(`Uploading ${green(bold(pkg.version))} to ${cyan(domain)}...`);
// Replace versioned files in README.md
gulp