🐛 fix(gulp): Only check for cert files on macOS
This commit is contained in:
parent
f58cde5916
commit
cbd1c59758
1 changed files with 104 additions and 91 deletions
195
bs-config.js
195
bs-config.js
|
@ -12,102 +12,115 @@
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
const os = require("os");
|
||||||
|
|
||||||
const domain = "saudade.test";
|
const domain = "saudade.test";
|
||||||
const homedir = require("os").homedir();
|
const homedir = os.homedir();
|
||||||
const certdir =
|
const certdir =
|
||||||
homedir + "/Library/Application Support/Herd/config/valet/Certificates/";
|
homedir + "/Library/Application Support/Herd/config/valet/Certificates/";
|
||||||
|
|
||||||
module.exports = {
|
let config;
|
||||||
ui: {
|
|
||||||
port: 3001,
|
if (os.type() !== "Darwin") {
|
||||||
},
|
config = {
|
||||||
watch: true,
|
proxy: "http://" + domain,
|
||||||
ignore: [],
|
host: domain,
|
||||||
single: false,
|
};
|
||||||
watchOptions: {
|
} else {
|
||||||
ignoreInitial: true,
|
config = {
|
||||||
},
|
ui: {
|
||||||
server: false,
|
port: 3001,
|
||||||
proxy: "https://" + domain,
|
|
||||||
port: 3000,
|
|
||||||
middleware: false,
|
|
||||||
serveStatic: [],
|
|
||||||
ghostMode: {
|
|
||||||
clicks: true,
|
|
||||||
scroll: true,
|
|
||||||
location: true,
|
|
||||||
forms: {
|
|
||||||
submit: true,
|
|
||||||
inputs: true,
|
|
||||||
toggles: true,
|
|
||||||
},
|
},
|
||||||
},
|
watch: true,
|
||||||
logLevel: "info",
|
ignore: [],
|
||||||
logPrefix: "Browsersync",
|
single: false,
|
||||||
logConnections: false,
|
watchOptions: {
|
||||||
logFileChanges: true,
|
ignoreInitial: true,
|
||||||
logSnippet: true,
|
|
||||||
rewriteRules: [],
|
|
||||||
open: false,
|
|
||||||
browser: "default",
|
|
||||||
cors: false,
|
|
||||||
xip: false,
|
|
||||||
hostnameSuffix: false,
|
|
||||||
reloadOnRestart: false,
|
|
||||||
notify: false,
|
|
||||||
scrollProportionally: true,
|
|
||||||
scrollThrottle: 0,
|
|
||||||
scrollRestoreTechnique: "window.name",
|
|
||||||
scrollElements: [],
|
|
||||||
scrollElementMapping: [],
|
|
||||||
reloadDelay: 0,
|
|
||||||
reloadDebounce: 500,
|
|
||||||
reloadThrottle: 0,
|
|
||||||
plugins: [],
|
|
||||||
injectChanges: true,
|
|
||||||
startPath: null,
|
|
||||||
minify: true,
|
|
||||||
host: domain,
|
|
||||||
localOnly: false,
|
|
||||||
codeSync: true,
|
|
||||||
timestamps: true,
|
|
||||||
clientEvents: [
|
|
||||||
"scroll",
|
|
||||||
"scroll:element",
|
|
||||||
"input:text",
|
|
||||||
"input:toggles",
|
|
||||||
"form:submit",
|
|
||||||
"form:reset",
|
|
||||||
"click",
|
|
||||||
],
|
|
||||||
socket: {
|
|
||||||
socketIoOptions: {
|
|
||||||
log: false,
|
|
||||||
},
|
},
|
||||||
socketIoClientConfig: {
|
server: false,
|
||||||
reconnectionAttempts: 50,
|
proxy: "https://" + domain,
|
||||||
|
port: 3000,
|
||||||
|
middleware: false,
|
||||||
|
serveStatic: [],
|
||||||
|
ghostMode: {
|
||||||
|
clicks: true,
|
||||||
|
scroll: true,
|
||||||
|
location: true,
|
||||||
|
forms: {
|
||||||
|
submit: true,
|
||||||
|
inputs: true,
|
||||||
|
toggles: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
path: "/browser-sync/socket.io",
|
logLevel: "info",
|
||||||
clientPath: "/browser-sync",
|
logPrefix: "Browsersync",
|
||||||
namespace: "/browser-sync",
|
logConnections: false,
|
||||||
clients: {
|
logFileChanges: true,
|
||||||
heartbeatTimeout: 5000,
|
logSnippet: true,
|
||||||
|
rewriteRules: [],
|
||||||
|
open: false,
|
||||||
|
browser: "default",
|
||||||
|
cors: false,
|
||||||
|
xip: false,
|
||||||
|
hostnameSuffix: false,
|
||||||
|
reloadOnRestart: false,
|
||||||
|
notify: false,
|
||||||
|
scrollProportionally: true,
|
||||||
|
scrollThrottle: 0,
|
||||||
|
scrollRestoreTechnique: "window.name",
|
||||||
|
scrollElements: [],
|
||||||
|
scrollElementMapping: [],
|
||||||
|
reloadDelay: 0,
|
||||||
|
reloadDebounce: 500,
|
||||||
|
reloadThrottle: 0,
|
||||||
|
plugins: [],
|
||||||
|
injectChanges: true,
|
||||||
|
startPath: null,
|
||||||
|
minify: true,
|
||||||
|
host: domain,
|
||||||
|
localOnly: false,
|
||||||
|
codeSync: true,
|
||||||
|
timestamps: true,
|
||||||
|
clientEvents: [
|
||||||
|
"scroll",
|
||||||
|
"scroll:element",
|
||||||
|
"input:text",
|
||||||
|
"input:toggles",
|
||||||
|
"form:submit",
|
||||||
|
"form:reset",
|
||||||
|
"click",
|
||||||
|
],
|
||||||
|
socket: {
|
||||||
|
socketIoOptions: {
|
||||||
|
log: false,
|
||||||
|
},
|
||||||
|
socketIoClientConfig: {
|
||||||
|
reconnectionAttempts: 50,
|
||||||
|
},
|
||||||
|
path: "/browser-sync/socket.io",
|
||||||
|
clientPath: "/browser-sync",
|
||||||
|
namespace: "/browser-sync",
|
||||||
|
clients: {
|
||||||
|
heartbeatTimeout: 5000,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
tagNames: {
|
||||||
tagNames: {
|
less: "link",
|
||||||
less: "link",
|
scss: "link",
|
||||||
scss: "link",
|
css: "link",
|
||||||
css: "link",
|
jpg: "img",
|
||||||
jpg: "img",
|
jpeg: "img",
|
||||||
jpeg: "img",
|
png: "img",
|
||||||
png: "img",
|
svg: "img",
|
||||||
svg: "img",
|
gif: "img",
|
||||||
gif: "img",
|
js: "script",
|
||||||
js: "script",
|
},
|
||||||
},
|
injectNotification: false,
|
||||||
injectNotification: false,
|
https: {
|
||||||
https: {
|
key: certdir + domain + ".key",
|
||||||
key: certdir + domain + ".key",
|
cert: certdir + domain + ".crt",
|
||||||
cert: certdir + domain + ".crt",
|
},
|
||||||
},
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
|
module.exports = config;
|
||||||
|
|
Loading…
Reference in a new issue