Skip to content

Commit

Permalink
Merge pull request #193 from digitalnsw/feature/brand-documentation-u…
Browse files Browse the repository at this point in the history
…pdate

Feature/brand documentation update
  • Loading branch information
anna-yeshtukova authored Dec 10, 2021
2 parents 49b118d + 2a7019f commit 1a92550
Show file tree
Hide file tree
Showing 41 changed files with 393 additions and 1,092 deletions.
5 changes: 5 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@
"watch": "./src/assets/images/*.*",
"build": "./dist/assets/images/"
},
"brand": {
"src": "./src/assets/brand/*.*",
"watch": "./src/assets/brand/*.*",
"build": "./dist/assets/brand/"
},
"favicon": {
"src": "./src/favicon.ico",
"build": "./dist/"
Expand Down
10 changes: 10 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ function moveImages() {
.pipe(dest(config.images.build))
}

function moveBrand() {
return src(config.brand.src)
.pipe(dest(config.brand.build))
}

function buildStyles() {
return src(config.scss.src)
.pipe(sourcemaps.init())
Expand Down Expand Up @@ -295,6 +300,7 @@ function watchFiles(done) {
watch(config.js.watch, series(javascript, reload))
watch(config.jsDocs.watch, series(javascript, reload))
watch(config.images.watch, series(moveImages, reload))
watch(config.brand.watch, series(moveBrand, reload))
watch(config.metalSmith.watch, series(metalsmithBuild, reload))
done()
}
Expand All @@ -306,6 +312,7 @@ const buildprod = series(
styles,
javascript,
moveImages,
moveBrand,
renamePathForProd,
zipDistFolder,
generateSitemap,
Expand All @@ -318,6 +325,7 @@ const build = series(
styles,
javascript,
moveImages,
moveBrand,
renamePath,
zipDistFolder,
)
Expand All @@ -329,6 +337,7 @@ const dev = series(
styles,
javascript,
moveImages,
moveBrand,
watchFiles,
browserSync,
)
Expand All @@ -343,6 +352,7 @@ exports.scss = buildStyles // gulp sass - compiles the sass
exports.watch = watchFiles // gulp watch - watches the files
exports.lint = lintStyles // gulp lint - lints the sass
exports.images = moveImages // gulp images - moves images
exports.brand = moveBrand // gulp images - moves brand files
exports.buildprod = buildprod // gulp build - builds the files
exports.build = build // gulp build - builds the files
exports.surge = deploy // gulp surge - builds the files and deploys to surge
Expand Down
Loading

0 comments on commit 1a92550

Please sign in to comment.