Bryan Housel
2022-01-10 23:52:29 -05:00
parent dacecbfb94
commit 97ed56bc3a
5 changed files with 12 additions and 12 deletions

View File

@@ -85,7 +85,7 @@
"chai": "^4.3.4",
"cldr-core": "37.0.0",
"cldr-localenames-full": "37.0.0",
"colors": "^1.1.2",
"chalk": "^4.1.2",
"concat-files": "^0.1.1",
"d3": "~6.6.0",
"editor-layer-index": "github:osmlab/editor-layer-index#gh-pages",
@@ -132,4 +132,4 @@
"browserslist": [
"> 0.2%, last 6 major versions, Firefox ESR, IE 11, maintained node versions"
]
}
}

View File

@@ -1,5 +1,5 @@
/* eslint-disable no-console */
const colors = require('colors/safe');
const chalk = require('chalk');
const concat = require('concat-files');
const glob = require('glob');
const fs = require('fs');
@@ -20,8 +20,8 @@ if (process.argv[1].indexOf('build_css.js') > -1) {
function buildCSS() {
if (_currBuild) return _currBuild;
const START = '🏗 ' + colors.yellow('Building css...');
const END = '👍 ' + colors.green('css built');
const START = '🏗 ' + chalk.yellow('Building css...');
const END = '👍 ' + chalk.green('css built');
console.log('');
console.log(START);

View File

@@ -1,5 +1,5 @@
/* eslint-disable no-console */
const colors = require('colors/safe');
const chalk = require('chalk');
const fs = require('fs');
const prettyStringify = require('json-stringify-pretty-compact');
const shell = require('shelljs');
@@ -29,8 +29,8 @@ if (process.argv[1].indexOf('build_data.js') > -1) {
function buildData() {
if (_currBuild) return _currBuild;
const START = '🏗 ' + colors.yellow('Building data...');
const END = '👍 ' + colors.green('data built');
const START = '🏗 ' + chalk.yellow('Building data...');
const END = '👍 ' + chalk.green('data built');
console.log('');
console.log(START);

View File

@@ -1,5 +1,5 @@
/* eslint-disable no-console */
const colors = require('colors/safe');
const chalk = require('chalk');
const gaze = require('gaze');
const StaticServer = require('static-server');
@@ -12,5 +12,5 @@ gaze(['css/**/*.css'], (err, watcher) => {
const server = new StaticServer({ rootPath: process.cwd(), port: 8080, followSymlink: true });
server.start(() => {
console.log(colors.yellow(`Listening on ${server.port}`));
console.log(chalk.yellow(`Listening on ${server.port}`));
});

View File

@@ -1,10 +1,10 @@
/* eslint-disable no-console */
/* Downloads the latest translations from Transifex */
const chalk = require('chalk');
const fs = require('fs');
const fetch = require('node-fetch');
const btoa = require('btoa');
const YAML = require('js-yaml');
const colors = require('colors/safe');
const resourceIds = ['core', 'imagery', 'community'];
const reviewedOnlyLangs = ['vi'];
@@ -331,7 +331,7 @@ function checkForDuplicateShortcuts(code, coreStrings) {
let shortcut = modifier + rep;
if (usedShortcuts[shortcut] && usedShortcuts[shortcut] !== shortcutPathString) {
let message = code + ': duplicate shortcut "' + shortcut + '" for "' + usedShortcuts[shortcut] + '" and "' + shortcutPathString + '"';
console.warn(colors.yellow(message));
console.warn(chalk.yellow(message));
} else {
usedShortcuts[shortcut] = shortcutPathString;
}