From b69098a77d8cb45e2cccc1dc6626dbe6272c648e Mon Sep 17 00:00:00 2001 From: "Manu Mtz.-Almeida" Date: Sun, 29 Jul 2018 01:44:45 +0200 Subject: [PATCH] chore(): update deps --- .scripts/common.js | 4 ++-- .scripts/prepare.js | 18 +++++++++--------- .scripts/release.js | 6 +++--- angular/package.json | 29 ++++++++++++----------------- core/package.json | 15 +++++++-------- core/scripts/update-readme.js | 3 ++- package.json | 10 +++++----- 7 files changed, 40 insertions(+), 45 deletions(-) diff --git a/.scripts/common.js b/.scripts/common.js index 6ea894f95f..87d900797b 100644 --- a/.scripts/common.js +++ b/.scripts/common.js @@ -3,7 +3,7 @@ const path = require('path'); const execa = require('execa'); const Listr = require('listr'); const semver = require('semver'); -const chalk = require('chalk'); +const tc = require('turbocolor'); const rootDir = path.join(__dirname, '../'); @@ -132,7 +132,7 @@ function preparePackage(tasks, package, version) { // Add project tasks tasks.push({ - title: `Prepare ${chalk.bold(pkg.name)}`, + title: `Prepare ${tc.bold(pkg.name)}`, task: () => new Listr(projectTasks) }); } diff --git a/.scripts/prepare.js b/.scripts/prepare.js index da4cf64f37..32adac9b8f 100644 --- a/.scripts/prepare.js +++ b/.scripts/prepare.js @@ -2,7 +2,7 @@ * Deploy script adopted from https://github.com/sindresorhus/np * MIT License (c) Sindre Sorhus (sindresorhus.com) */ -const chalk = require('chalk'); +const tc = require('turbocolor'); const execa = require('execa'); const inquirer = require('inquirer'); const Listr = require('listr'); @@ -30,7 +30,7 @@ async function main() { console.log(` npm run release\n`); } catch(err) { - console.log('\n', chalk.red(err), '\n'); + console.log('\n', tc.red(err), '\n'); process.exit(1); } } @@ -80,7 +80,7 @@ async function askVersion() { type: 'confirm', name: 'confirm', message: answers => { - return `Will bump from ${chalk.cyan(oldVersion)} to ${chalk.cyan(answers.version)}. Continue?`; + return `Will bump from ${tc.cyan(oldVersion)} to ${tc.cyan(answers.version)}. Continue?`; } } ]; @@ -125,7 +125,7 @@ async function preparePackages(packages, version) { function validateGit(tasks, version) { tasks.push( { - title: `Validate git tag ${chalk.dim(`(v${version})`)}`, + title: `Validate git tag ${tc.dim(`(v${version})`)}`, task: () => execa('git', ['fetch']) .then(() => { return execa.stdout('npm', ['config', 'get', 'tag-version-prefix']); @@ -161,7 +161,7 @@ function updatePackageVersion(tasks, package, version) { tasks.push( { - title: `${pkg.name}: update package.json ${chalk.dim(`(${version})`)}`, + title: `${pkg.name}: update package.json ${tc.dim(`(${version})`)}`, task: async () => { await execa('npm', ['version', version], { cwd: projectRoot }); } @@ -207,17 +207,17 @@ function prettyVersionDiff(oldVersion, inc) { for (let i = 0; i < newVersion.length; i++) { if ((newVersion[i] !== oldVersion[i] && !firstVersionChange)) { - output.push(`${chalk.dim.cyan(newVersion[i])}`); + output.push(`${tc.dim.cyan(newVersion[i])}`); firstVersionChange = true; } else if (newVersion[i].indexOf('-') >= 1) { let preVersion = []; preVersion = newVersion[i].split('-'); - output.push(`${chalk.dim.cyan(`${preVersion[0]}-${preVersion[1]}`)}`); + output.push(`${tc.dim.cyan(`${preVersion[0]}-${preVersion[1]}`)}`); } else { - output.push(chalk.reset.dim(newVersion[i])); + output.push(tc.reset.dim(newVersion[i])); } } - return output.join(chalk.reset.dim('.')); + return output.join(tc.reset.dim('.')); } main(); diff --git a/.scripts/release.js b/.scripts/release.js index fb59348d82..dd750aa6f1 100644 --- a/.scripts/release.js +++ b/.scripts/release.js @@ -2,7 +2,7 @@ * Deploy script adopted from https://github.com/sindresorhus/np * MIT License (c) Sindre Sorhus (sindresorhus.com) */ -const chalk = require('chalk'); +const tc = require('turbocolor'); const execa = require('execa'); const Listr = require('listr'); const octokit = require('@octokit/rest')() @@ -34,7 +34,7 @@ async function main() { console.log(`\nionic ${version} published!! 🎉\n`); } catch (err) { - console.log('\n', chalk.red(err), '\n'); + console.log('\n', tc.red(err), '\n'); process.exit(1); } } @@ -75,7 +75,7 @@ function publishGit(tasks, version, changelog) { tasks.push( { - title: `Tag latest commit ${chalk.dim(`(${tag})`)}`, + title: `Tag latest commit ${tc.dim(`(${tag})`)}`, task: () => execa('git', ['tag', `${tag}`], { cwd: common.rootDir }) }, { diff --git a/angular/package.json b/angular/package.json index 8cc1732306..60139c1109 100644 --- a/angular/package.json +++ b/angular/package.json @@ -44,25 +44,20 @@ "@ionic/core": "4.0.0-beta.0" }, "devDependencies": { - "@angular/common": "^6.0.9", - "@angular/compiler": "^6.0.9", - "@angular/compiler-cli": "^6.0.9", - "@angular/core": "^6.0.9", - "@angular/forms": "^6.0.9", - "@angular/platform-browser": "^6.0.9", - "@angular/platform-browser-dynamic": "^6.0.9", - "@angular/router": "^6.0.9", - "chalk": "^2.4.1", - "execa": "^0.10.0", - "fs-extra": "^5.0.0", - "glob": "7.1.2", - "inquirer": "^5.2.0", - "listr": "^0.14.1", + "@angular/common": "^6.1.0", + "@angular/compiler": "^6.1.0", + "@angular/compiler-cli": "^6.1.0", + "@angular/core": "^6.1.0", + "@angular/forms": "^6.1.0", + "@angular/platform-browser": "^6.1.0", + "@angular/platform-browser-dynamic": "^6.1.0", + "@angular/router": "^6.1.0", + "fs-extra": "^7.0.0", + "glob": "^7.1.2", "rxjs": "^6.2.0", - "semver": "^5.5.0", "tslint": "^5.10.0", - "tslint-ionic-rules": "0.0.14", - "typescript": "2.7.2", + "tslint-ionic-rules": "0.0.17", + "typescript": "2.9.2", "zone.js": "^0.8.26" } } diff --git a/core/package.json b/core/package.json index 12087ba9a3..aeff103d85 100644 --- a/core/package.json +++ b/core/package.json @@ -27,24 +27,23 @@ "ionicons": "4.2.5" }, "devDependencies": { - "@stencil/core": "0.10.9", + "@stencil/core": "0.10.10", "@stencil/dev-server": "latest", "@stencil/sass": "latest", "@stencil/utils": "latest", - "@types/jest": "^22.2.3", - "chai": "^4.1.2", + "@types/jest": "^23.3.1", "chromedriver": "^2.38.3", "clean-css-cli": "^4.1.11", - "jest": "^23.1.0", + "jest": "^23.4.2", "mocha": "^4.0.1", - "np": "^2.17.0", + "np": "^3.0.4", "selenium-webdriver": "^3.6.0", - "stylelint": "^9.3.0", + "stylelint": "^9.4.0", "stylelint-order": "^0.8.1", "tslint": "^5.10.0", - "tslint-ionic-rules": "0.0.14", + "tslint-ionic-rules": "0.0.17", "typescript": "^2.9.2", - "yargs": "^10.0.3" + "yargs": "^12.0.1" }, "scripts": { "build": "npm run clean && npm run build.css && stencil build --docs", diff --git a/core/scripts/update-readme.js b/core/scripts/update-readme.js index 14f3442cb6..219e9aeb52 100644 --- a/core/scripts/update-readme.js +++ b/core/scripts/update-readme.js @@ -3,7 +3,7 @@ // so this script is to keep the link updated // with the latest -const fs = require('fs-extra'); +const fs = require('fs'); const path = require('path'); const version = process.argv[2]; @@ -22,4 +22,5 @@ readmeContent = readmeContent.replace( 'https://unpkg.com/@ionic/core@' + version + '/dist/ionic.js' ); +fs fs.writeFileSync(readmePath, readmeContent); diff --git a/package.json b/package.json index 52e2cf428a..f52509bff0 100644 --- a/package.json +++ b/package.json @@ -11,13 +11,13 @@ }, "devDependencies": { "@octokit/rest": "^15.2.6", - "chalk": "^2.3.2", - "conventional-changelog-cli": "^1.3.16", + "conventional-changelog-cli": "^2.0.1", "execa": "^0.10.0", - "fs-extra": "^5.0.0", - "inquirer": "^5.1.0", + "fs-extra": "^7.0.0", + "inquirer": "^6.0.0", "listr": "^0.14.0", - "semver": "^5.5.0" + "semver": "^5.5.0", + "turbocolor": "^2.4.1" }, "dependencies": { "node-sass": "^4.9.0"