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 { | |
getContentfulAssetsById, | |
getContentfulTagsById, | |
getEntryTags, | |
getExistingArticleIdBySlug, | |
getAssetFileName, | |
getContentfulNode | |
} = require('./migrate.utils'); | |
const currentContentfulData = require("./contentful-export.json"); | |
const inputChunks = []; |
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 { exec } = require("child_process"); | |
const inputChunks = []; | |
process.stdin.resume(); | |
process.stdin.setEncoding("utf8"); | |
process.stdin.on("data", (chunk) => inputChunks.push(chunk)); | |
process.stdin.on("end", function () { | |
const inputJSON = inputChunks.join(""); | |
const prismicData = JSON.parse(inputJSON); | |
const curlCommand = getCurlToDownloadAllImages(prismicData); |
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
/* | |
Some Gulp.js which reworks a tad of BEM CSS so you can use multiple Modifiers in a single BEM class | |
Some BEM CSS like this: | |
.__block{display: block;} | |
.__block__element{display: inline-block;} | |
.__block__element_color-1{color: yellow;} | |
.__block__element_background-2{background: Green;} | |
.__block__element_font-3{font-family: Arial;} | |