hof 23.0.0-frontend-v4-beta.8 → 23.0.0-frontend-v4-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,10 +12,14 @@ module.exports = config => {
12
12
  }
13
13
  const srcs = Array.isArray(config.images.src) ? config.images.src : [config.images.src];
14
14
 
15
- return Promise.all(srcs.map(src =>
16
- mkdir(config.images.out)
17
- .then(() => spawn('rsync', ['-a', `${src}/.`, config.images.out]))
18
- ))
15
+ return Promise.all(srcs.map(src => {
16
+ if (!fs.existsSync(src)) {
17
+ console.log(`${chalk.yellow('warning')}: Skipping missing images folder: ${src}`);
18
+ return Promise.resolve();
19
+ }
20
+ return mkdir(config.images.out)
21
+ .then(() => spawn('rsync', ['-a', `${src}/.`, config.images.out]));
22
+ }))
19
23
  .catch(e => {
20
24
  if (e.code !== 'ENOENT') {
21
25
  throw e;
@@ -27,7 +27,7 @@ module.exports = {
27
27
  match: 'apps/**/translations/src/**/*.json',
28
28
  shared: 'apps/common/translations/src'
29
29
  },
30
- images: {
30
+ images: {
31
31
  src: ['assets/rebrand/images', toolkitImages],
32
32
  out: 'public/images',
33
33
  match: ['assets/rebrand/images/**/*', `${toolkitImages}/**/*`],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hof",
3
3
  "description": "A bootstrap for HOF projects",
4
- "version": "23.0.0-frontend-v4-beta.8",
4
+ "version": "23.0.0-frontend-v4-beta.9",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
7
7
  "author": "HomeOffice",