Skip to content

Commit

Permalink
更新versionControl策略,正式弃用lite通道
Browse files Browse the repository at this point in the history
  • Loading branch information
saqqdy committed Jul 3, 2022
1 parent 5eee3d8 commit efb0c79
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 17 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 更新日志

## 2022.07.03 v3.1.0 更新日志

1. 更新versionControl策略,正式弃用lite通道

## 2022.06.12 v3.0.1 更新日志

1. 优化体验
Expand Down
31 changes: 18 additions & 13 deletions build/gulpfile.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
import { join } from 'path'
import { parallel, series } from 'gulp'
// import { wrapDisplayName } from './utils/gulp'
// import { runSpawnSync } from './utils/exec'
import { wrapDisplayName } from './utils/gulp'
import { runExecSync } from './utils/exec'
import { buildLib } from './tasks/buildLib'
import { buildApp } from './tasks/buildApp'
import { buildDocs, deployDocs } from './tasks/buildDocs'
import { buildDocs, copyMdFile, deployDocs } from './tasks/buildDocs'
import { packages } from './packages'

// export async function clean() {
// const dirs: string[] = [
// OUTPUT_BUNDLE_PATH,
// OUTPUT_CJS_PATH,
// OUTPUT_ESM_PATH
// ]
// await runSpawnSync(`rimraf ${dirs.join(' ')}`)
// await runSpawnSync(`mkdir -p ${dirs.join(' ')}`)
// }
export async function clean() {
let dirs: string[] = ['dist', 'es', 'lib']
packages.forEach(({ name }) => {
dirs = dirs.concat([
join('packages', name, 'dist'),
join('packages', name, 'es'),
join('packages', name, 'lib')
])
})
await runExecSync(`rimraf ${dirs.join(' ')}`)
}
export { default as lib } from './tasks/buildLib'
export { default as app } from './tasks/buildApp'
export { default as docs } from './tasks/buildDocs'
export default series(
// wrapDisplayName('clean:dist,es,lib', clean),
wrapDisplayName('clean:dist,es,lib', clean),
parallel(copyMdFile),
parallel(buildLib),
parallel(buildApp, buildDocs),
parallel(deployDocs)
Expand Down
4 changes: 2 additions & 2 deletions build/tasks/buildDocs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export async function deployDocs() {
await Promise.all(builds)
}

export async function copyFile() {
export async function copyMdFile() {
for (const { name } of pkgs) {
await runSpawnSync(
`rimraf ${resolve(PACKAGE, name)}/changelog.md`,
Expand All @@ -69,7 +69,7 @@ export async function copyFile() {
}

export default series(
parallel(wrapDisplayName('copy:md', copyFile)),
parallel(wrapDisplayName('copy:md', copyMdFile)),
parallel(wrapDisplayName('build:docs', buildDocs)),
parallel(wrapDisplayName('deploy:docs', deployDocs))
)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"typescript": "^4.6.4",
"uglify-js": "^3.15.4",
"unplugin-vue-define-options": "^0.6.1",
"vitepress": "^1.0.0-alpha.1"
"vitepress": "1.0.0-alpha.4"
},
"peerDependencies": {
"eslint": ">=8.0.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 更新日志

## 2022.07.03 v3.1.0 更新日志

1. 更新versionControl策略,正式弃用lite通道

## 2022.06.12 v3.0.1 更新日志

1. 优化体验
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"prettier": "^2.6.2",
"tsnd": "^1.0.2",
"typescript": "^4.6.4",
"vitepress": "1.0.0-alpha.2"
"vitepress": "1.0.0-alpha.4"
},
"sideEffects": false,
"keywords": [
Expand Down

1 comment on commit efb0c79

@vercel
Copy link

@vercel vercel bot commented on efb0c79 Jul 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.