Skip to content

Commit

Permalink
fix: style
Browse files Browse the repository at this point in the history
  • Loading branch information
luthfimasruri committed Mar 29, 2021
1 parent b9b750c commit ba5870d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion packages/vue-quill/src/assets/snow.styl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ backgroundColor = #fff
inactiveColor = #4B5563
shadowColor = #D1D5DB
textColor = #4B5563
// Additional color
// Additional colors
backgroundHoverColor = #F3F4F6
backgroundActiveColor = #DBEAFE

Expand Down
86 changes: 43 additions & 43 deletions scripts/release.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(async () => {
const chalk = require('chalk')
const execa = require('execa')
// const chalk = require('chalk')
// const execa = require('execa')
const path = require('path')
const semanticRelease = require('semantic-release')
// const { WritableStreamBuffer } = require('stream-buffers');
Expand Down Expand Up @@ -46,23 +46,23 @@
await run()

async function run() {
const nextVersion = await getNextVersion()
console.log(nextVersion)
await prepare(target)
// const nextVersion = await getNextVersion()
// console.log(nextVersion)
// await prepare(target)
await release()
}

async function prepare(target: string/*, nextVersion: string*/) {
try {
// const buildScript = path.resolve(__dirname, 'build.ts')
// console.log(chalk.bgCyan("Build package"))
// execa.sync('npx', ['ts-node', buildScript, '--nextVersion', nextVersion])
console.log(chalk.bgCyan("Zipping distribution file"))
execa.sync('zip', ['-r', `${target}-dist.zip`, '.', '-i', 'dist'])
} catch (err) {
console.log(`>>>>>>>>>>>>> ${err}`)
}
}
// async function prepare(target: string/*, nextVersion: string*/) {
// try {
// // const buildScript = path.resolve(__dirname, 'build.ts')
// // console.log(chalk.bgCyan("Build package"))
// // execa.sync('npx', ['ts-node', buildScript, '--nextVersion', nextVersion])
// console.log(chalk.bgCyan("Zipping distribution file"))
// execa.sync('zip', ['-r', `${target}-dist.zip`, '.', '-i', 'dist'])
// } catch (err) {
// console.log(`>>>>>>>>>>>>> ${err}`)
// }
// }

async function release() {
const rootDir = path.resolve(__dirname, '..')
Expand Down Expand Up @@ -110,31 +110,31 @@
}
}

async function getNextVersion(): Promise<string> {
try {
const { nextRelease } = await semanticRelease({
branches: releaserc.branches,
repositoryUrl: pkg.repository.url,
dryRun: true,
ci: false,
plugins: [
'@semantic-release/commit-analyzer',
[
"@semantic-release/exec",
{
prepareCmd: "npx ts-node ../../scripts/build.ts --nextVersion ${nextRelease.version}"
}
]
]
}, {
cwd: '../../',
env: { ...process.env }
})
if (nextRelease) return nextRelease.version
else console.log('No release will bepublished')
} catch (err) {
console.error('Failed to retrieve next version with %O', err)
}
return pkg.version
}
// async function getNextVersion(): Promise<string> {
// try {
// const { nextRelease } = await semanticRelease({
// branches: releaserc.branches,
// repositoryUrl: pkg.repository.url,
// dryRun: true,
// ci: false,
// plugins: [
// '@semantic-release/commit-analyzer',
// [
// "@semantic-release/exec",
// {
// prepareCmd: "npx ts-node ../../scripts/build.ts --nextVersion ${nextRelease.version}"
// }
// ]
// ]
// }, {
// cwd: '../../',
// env: { ...process.env }
// })
// if (nextRelease) return nextRelease.version
// else console.log('No release will bepublished')
// } catch (err) {
// console.error('Failed to retrieve next version with %O', err)
// }
// return pkg.version
// }
})()

0 comments on commit ba5870d

Please sign in to comment.