Skip to content

Commit a986bd7

Browse files
committed
stub in support for ui.yml and static files; allow dot files to be bundled
1 parent ea1f513 commit a986bd7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

gulp.d/tasks/build.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ module.exports = (src, dest, preview) => () => {
6161
]
6262

6363
return merge(
64+
vfs.src('ui.yml', { ...opts, allowEmpty: true }),
6465
vfs
6566
.src('js/+([0-9])-*.js', { ...opts, read: false, sourcemaps })
6667
.pipe(bundle(opts))
@@ -100,7 +101,8 @@ module.exports = (src, dest, preview) => () => {
100101
),
101102
vfs.src('helpers/*.js', opts),
102103
vfs.src('layouts/*.hbs', opts),
103-
vfs.src('partials/*.hbs', opts)
104+
vfs.src('partials/*.hbs', opts),
105+
vfs.src('static/**/*[!~]', { ...opts, base: ospath.join(src, 'static'), dot: true })
104106
).pipe(vfs.dest(dest, { sourcemaps: sourcemaps && '.' }))
105107
}
106108

gulp.d/tasks/pack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ const path = require('path')
66

77
module.exports = (src, dest, bundleName, onFinish) => () =>
88
vfs
9-
.src('**/*', { base: src, cwd: src })
9+
.src('**/*', { base: src, cwd: src, dot: true })
1010
.pipe(zip.dest(path.join(dest, `${bundleName}-bundle.zip`)))
1111
.on('finish', () => onFinish && onFinish(path.resolve(dest, `${bundleName}-bundle.zip`)))

0 commit comments

Comments
 (0)