Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ data/repositories.js
data/repositories-in-production.js
data/repositories-not-in-production.js
data/preferences.js
.DS_Store
.DS_Store
.idea
2 changes: 2 additions & 0 deletions bin/backstop.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion bin/backstop/backstop-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = {
"readyEvent": "",
"readySelector": "",
"delay": 3000,
"hideSelectors": [],
"hideSelectors": ['.d-help', '.orejime-Banner'],
"removeSelectors": [],
"hoverSelector": "",
"clickSelector": "",
Expand Down
10 changes: 5 additions & 5 deletions bin/index.js
Original file line number Diff line number Diff line change
@@ -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");
Expand Down Expand Up @@ -129,7 +129,7 @@ const commands = {
"backstop": function(argv) {
const path = argv[3] || ".";
const pages = argv[4] || "";
updateSite(path);
// updateSite(path);
backstop(path, pages);
},
}
Expand Down