chore(): update deps

This commit is contained in:
Manu Mtz.-Almeida
2018-07-29 01:44:45 +02:00
parent 7813acc86f
commit b69098a77d
7 changed files with 40 additions and 45 deletions

View File

@@ -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)
});
}

View File

@@ -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();

View File

@@ -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 })
},
{

View File

@@ -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"
}
}

View File

@@ -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",

View File

@@ -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);

View File

@@ -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"