Browse Source

add empty manifest.json so Hugo doesn't fail when it isn't populated yet

pull/454/head
Jake Jarvis 4 months ago
parent
commit
b61ffd3629
Signed by: jake GPG Key ID: 2B0C9CF251E69A39
  1. 3
      data/manifest.json
  2. 6
      gulpfile.js
  3. 2
      package.json
  4. 2
      yarn.lock

3
data/manifest.json

@ -0,0 +1,3 @@
{
"//": "This file will be overwritten by Webpack, but Hugo will fail to wait for that to happen if it doesn't exist at first."
}

6
gulpfile.js

@ -76,15 +76,13 @@ function clean() {
"builds/",
"_vendor/",
"static/assets/",
"data/manifest.json",
"api/**/*.js*",
]);
}
// run a locally installed (i.e. ./node_modules/.bin/foo) binary, similar to a package.json script
function npx(bin, options) {
function npx(bin, args) {
// WARNING: MAJOR HACKS AHEAD:
const cmd = `${bin} ${options ? options.join(" ") : ""}`.trim();
const cmd = `${bin} ${args ? args.join(" ") : ""}`.trim();
return execa(cmd, {
preferLocal: true,
shell: true,

2
package.json

@ -61,7 +61,7 @@
"@types/numeral": "^2.0.1",
"@types/pluralize": "^0.0.29",
"@types/twemoji": "^12.1.1",
"@types/xml2js": "^0.4.8",
"@types/xml2js": "^0.4.9",
"@typescript-eslint/eslint-plugin": "^4.28.1",
"@typescript-eslint/parser": "^4.28.1",
"@vercel/node": "^1.11.1",

2
yarn.lock

@ -1268,7 +1268,7 @@
resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.4.tgz#453e27c6930d66380b4c121e7d5e361c5c2d921b"
integrity sha512-zfyYsDTK1HTGYXU3fTiM76+om93HcFtsZd2M0bO/CL4DiETV7mSa/pIVN/6+G3esOqEMdg2An5cHHbK5t+9w+A==
"@types/xml2js@^0.4.8":
"@types/xml2js@^0.4.9":
version "0.4.9"
resolved "https://registry.yarnpkg.com/@types/xml2js/-/xml2js-0.4.9.tgz#a38267d8c2fe121c96922b12ee3bd89a58a6e20e"
integrity sha512-CHiCKIihl1pychwR2RNX5mAYmJDACgFVCMT5OArMaO3erzwXVcBqPcusr+Vl8yeeXukxZqtF8mZioqX+mpjjdw==

Loading…
Cancel
Save