Skip to content

Commit db0dfc1

Browse files
committed
format source
1 parent 2390815 commit db0dfc1

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

gulp.d/tasks/release.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,13 @@ function versionBundle (bundleFile, tagName) {
4040
.src(bundleFile)
4141
.pipe(zip.src().on('error', reject))
4242
.pipe(
43-
map((file, enc, next) => next(null, file), function (done) {
44-
this.push(new File({ path: 'ui.yml', contents: Buffer.from(`version: ${tagName}\n`) }))
45-
done()
46-
})
43+
map(
44+
(file, enc, next) => next(null, file),
45+
function (done) {
46+
this.push(new File({ path: 'ui.yml', contents: Buffer.from(`version: ${tagName}\n`) }))
47+
done()
48+
}
49+
)
4750
)
4851
.pipe(zip.dest(bundleFile))
4952
.on('finish', () => resolve(bundleFile))
@@ -67,9 +70,7 @@ module.exports = (dest, bundleName, owner, repo, token, updateBranch) => async (
6770
const readmeBlob = await octokit.git
6871
.createBlob({ owner, repo, content: readmeContent, encoding: 'utf-8' })
6972
.then((result) => result.data.sha)
70-
let tree = await octokit.git
71-
.getCommit({ owner, repo, commit_sha: commit })
72-
.then((result) => result.data.tree.sha)
73+
let tree = await octokit.git.getCommit({ owner, repo, commit_sha: commit }).then((result) => result.data.tree.sha)
7374
tree = await octokit.git
7475
.createTree({
7576
owner,

gulpfile.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ const formatTask = createTask({
5656
const buildTask = createTask({
5757
name: 'build',
5858
desc: 'Build and stage the UI assets for bundling',
59-
call: task.build(srcDir, destDir, process.argv.slice(2).some((name) => name.startsWith('preview'))),
59+
call: task.build(
60+
srcDir,
61+
destDir,
62+
process.argv.slice(2).some((name) => name.startsWith('preview'))
63+
),
6064
})
6165

6266
const bundleBuildTask = createTask({

0 commit comments

Comments
 (0)