Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@
"@rollup/plugin-replace": "^4.0.0",
"@types/he": "^1.1.2",
"@types/node": "^17.0.41",
"chalk": "^4.1.2",
"conventional-changelog-cli": "^2.2.2",
"cross-spawn": "^7.0.3",
"enquirer": "^2.3.6",
Expand All @@ -113,6 +112,7 @@
"lodash": "^4.17.21",
"marked": "^4.0.16",
"minimist": "^1.2.6",
"picocolors": "^1.0.0",
"postcss": "^8.4.14",
"prettier": "^2.6.2",
"puppeteer": "^14.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/server-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
"url": "https://github.com/vuejs/vue/issues"
},
"dependencies": {
"chalk": "^4.1.2",
"hash-sum": "^2.0.0",
"he": "^1.2.0",
"lodash.template": "^4.5.0",
"lodash.uniq": "^4.5.0",
"picocolors": "^1.0.0",
"resolve": "^1.22.0",
"serialize-javascript": "^6.0.0",
"source-map": "0.5.6"
Expand Down
2 changes: 1 addition & 1 deletion packages/server-renderer/src/webpack-plugin/util.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { red, yellow } = require('chalk')
const { red, yellow } = require('picocolors')
const webpack = require('webpack')

const prefix = `[vue-server-renderer-webpack-plugin]`
Expand Down
31 changes: 9 additions & 22 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions scripts/release.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const args = require('minimist')(process.argv.slice(2))
const fs = require('fs')
const path = require('path')
const chalk = require('chalk')
const pc = require('picocolors')
const semver = require('semver')
const currentVersion = require('../package.json').version
const { prompt } = require('enquirer')
Expand Down Expand Up @@ -29,9 +29,9 @@ const inc = i => semver.inc(currentVersion, i, preId)
const run = (bin, args, opts = {}) =>
execa(bin, args, { stdio: 'inherit', ...opts })
const dryRun = (bin, args, opts = {}) =>
console.log(chalk.blue(`[dryrun] ${bin} ${args.join(' ')}`), opts)
console.log(pc.blue(`[dryrun] ${bin} ${args.join(' ')}`), opts)
const runIfNotDry = isDryRun ? dryRun : run
const step = msg => console.log(chalk.cyan(msg))
const step = msg => console.log(pc.cyan(msg))

async function main() {
let targetVersion = args._[0]
Expand Down Expand Up @@ -187,12 +187,10 @@ async function publishPackage(pkgName, version, runIfNotDry) {
stdio: 'pipe'
}
)
console.log(
chalk.green(`Successfully published ${publishedName}@${version}`)
)
console.log(pc.green(`Successfully published ${publishedName}@${version}`))
} catch (e) {
if (e.stderr.match(/previously published/)) {
console.log(chalk.red(`Skipping already published: ${publishedName}`))
console.log(pc.red(`Skipping already published: ${publishedName}`))
} else {
throw e
}
Expand Down
14 changes: 6 additions & 8 deletions scripts/verify-commit-msg.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const chalk = require('chalk')
const pc = require('picocolors')
const msgPath = process.env.GIT_PARAMS
const msg = require('fs').readFileSync(msgPath, 'utf-8').trim()

Expand All @@ -8,17 +8,15 @@ const commitRE =
if (!commitRE.test(msg)) {
console.log()
console.error(
` ${chalk.bgRed.white(' ERROR ')} ${chalk.red(
` ${pc.bgRed.white(' ERROR ')} ${pc.red(
`invalid commit message format.`
)}\n\n` +
chalk.red(
pc.red(
` Proper commit message format is required for automated changelog generation. Examples:\n\n`
) +
` ${chalk.green(`feat(compiler): add 'comments' option`)}\n` +
` ${chalk.green(
`fix(v-model): handle events on blur (close #28)`
)}\n\n` +
chalk.red(` See .github/COMMIT_CONVENTION.md for more details.\n`)
` ${pc.green(`feat(compiler): add 'comments' option`)}\n` +
` ${pc.green(`fix(v-model): handle events on blur (close #28)`)}\n\n` +
pc.red(` See .github/COMMIT_CONVENTION.md for more details.\n`)
)
process.exit(1)
}