Skip to content

Instantly share code, notes, and snippets.

@noahlange
Last active August 16, 2020 19:37
Show Gist options
  • Save noahlange/24fe5e29d48b7eedab82f3a913e54d44 to your computer and use it in GitHub Desktop.
Save noahlange/24fe5e29d48b7eedab82f3a913e54d44 to your computer and use it in GitHub Desktop.
Git + Gridsome
const spawn = require('@ahmadnassri/spawn-promise')
// exec before markdown import
module.exports = api =>
api.loadSource(actions =>
spawn("git", ["clone", process.env.MY_GIT_REPO, "dest"])
);
@noahlange
Copy link
Author

I'd recommend this implementation if if you're feeling less sassy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment