1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 01:36:55 +01:00

auto-zipping of media kit package

This commit is contained in:
Matthias Kretschmann 2017-08-22 13:54:40 +02:00
parent 0a9c805853
commit 783f08e27a
Signed by: m
GPG Key ID: 606EEEF3C479A91F
6 changed files with 26 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -242,7 +242,18 @@ export const fonts = () => src(SRC + '_assets/fonts/**/*')
//
// Copy brand assets
//
export const brand = () => src(SRC + '_assets/brand/**/*')
export const brand = () => src(SRC + '_assets/brand/*')
.pipe(dest(DIST + 'assets/brand/'))
//
// Zip up media kit
//
export const mediakit = () => src([
SRC + '_assets/brand/mediakit-bigchaindb/**/*'],
{ base: SRC + '_assets/brand/' }
)
.pipe($.zip('mediakit-bigchaindb.zip'))
.pipe(dest(DIST + 'assets/brand/'))
@ -342,7 +353,7 @@ const deployBanner = (done) => {
// `gulp build` is the development build
// `gulp build --production` is the production build
//
export const build = series(buildBanner, clean, jekyll, parallel(html, css, js, images, fonts, svg, brand), rev, revReplace, criticalCss)
export const build = series(buildBanner, clean, jekyll, parallel(html, css, js, images, fonts, svg, brand, mediakit), rev, revReplace, criticalCss)
//
// Build site, run server, and watch for file changes

View File

@ -69,6 +69,7 @@
"gulp-svg-sprite": "^1.3.7",
"gulp-uglify": "^3.0.0",
"gulp-util": "^3.0.6",
"gulp-zip": "^4.0.0",
"js-yaml": "^3.9.1",
"request": "^2.81.0",
"stylelint": "^8.0.0",