Last active
August 16, 2020 19:37
-
-
Save noahlange/24fe5e29d48b7eedab82f3a913e54d44 to your computer and use it in GitHub Desktop.
Git + Gridsome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"]) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'd recommend this implementation if if you're feeling less sassy.