diff --git a/.gitignore b/.gitignore index 57fbce3..a3c0d38 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ data/repositories.js data/repositories-in-production.js data/repositories-not-in-production.js data/preferences.js -.DS_Store \ No newline at end of file +.DS_Store +.idea diff --git a/bin/backstop.js b/bin/backstop.js index 1429977..6487eb8 100644 --- a/bin/backstop.js +++ b/bin/backstop.js @@ -54,6 +54,8 @@ module.exports = async function (path, paths = "") { shell.cd(path); let productionUrl = shell.exec("yq '.baseURL' config/production/config.yaml", { silent: true }).stdout; productionUrl = productionUrl.replace('\n', ''); + productionUrl = productionUrl.replace('"', ''); + productionUrl = productionUrl.replace('"', ''); config.scenarios.forEach(scenario => { scenario.url = scenario.url.replace('PORT', HUGO_SERVER_PORT); diff --git a/bin/backstop/backstop-config.js b/bin/backstop/backstop-config.js index 45d9a42..2ebdaae 100644 --- a/bin/backstop/backstop-config.js +++ b/bin/backstop/backstop-config.js @@ -20,7 +20,7 @@ module.exports = { "readyEvent": "", "readySelector": "", "delay": 3000, - "hideSelectors": [], + "hideSelectors": ['.d-help', '.orejime-Banner'], "removeSelectors": [], "hoverSelector": "", "clickSelector": "", diff --git a/bin/index.js b/bin/index.js index ecb1939..b6080b8 100755 --- a/bin/index.js +++ b/bin/index.js @@ -1,10 +1,10 @@ #!/usr/bin/env node const shell = require("shelljs"); -const repositories = require("../data/repositories"); -const repositoriesNotInProduction = require("../data/repositories-not-in-production"); -const repositoriesInProduction = require("../data/repositories-in-production"); -const preferences = require("../data/preferences"); +const repositories = []; +const repositoriesNotInProduction = []; +const repositoriesInProduction = []; +const preferences = []; const os = require('os'); const updateSite = require("./update"); const migrateSite = require("./update"); @@ -129,7 +129,7 @@ const commands = { "backstop": function(argv) { const path = argv[3] || "."; const pages = argv[4] || ""; - updateSite(path); + // updateSite(path); backstop(path, pages); }, }