miblanchard on master
Upgraded webpack to version 4 (… (compare)
miblanchard on update-codecov
miblanchard on remove-codevoc
Added wildcat-jest-runner no-op change Merge pull request #247 from ba… and 3 more (compare)
miblanchard on remove-codevoc
Update Makefile testing codecov (compare)
miblanchard on master
Chore: update codecov package Merge pull request #254 from nf… (compare)
miblanchard on update-codecov
Chore: update codecov package (compare)
miblanchard on remove-codecov
Added wildcat-jest-runner no-op change Merge pull request #247 from ba… and 1 more (compare)
const wildcatConfig = {
generalSettings: {
// Grab the config file from package.json
jspmConfigFile: pkg.configFile || (pkg.jspm || {}).configFile || "config.js",
seleniumAddress: process.env.HOST === "localhost" || !process.env.HOST ? null : "http://selenium:4444/wd/hub",
staticUrl: process.env.STATIC_URL || "http://localhost:4000",
// Project name
name: pkg.name,
...
staticUrl
in general settings
staticUrl
(function(process) {
"use strict";
const NOW = Date.now();
const __PROD__ = process.env.NODE_ENV === "production";
module.exports = function defaultTemplate(cfg) {
const data = cfg.data;
const head = cfg.head;
const html = cfg.html;
const wildcatConfig = cfg.wildcatConfig;
....
const generalSettings = wildcatConfig.generalSettings;
...
const staticUrl = generalSettings.staticUrl;
...
return `
<!doctype html>
<html ${head.htmlAttributes.toString()}>
<head>
<link rel="dns-prefetch" href="${staticUrl}" />
<link rel="preconnect" href="${staticUrl}" />
staticServer: {
// An array of domains to allow for cross-origin requests
corsOrigins: [
process.env.STATIC_HOST,
"localhost",
"www.mydomain.dev",
"mydomain.dev"
],
domainAliases
key below line 5 here https://github.com/nfl/react-wildcat/blob/b9357a572f71423eadc8fe0af9c1813b1c257d34/example/src/main.js#L5
domainAliases: {
"localhost": [
"10.0.0.1",
"10.0.0.2",
]
}
- github access token for Docker
- staticUrl in generalSettings in wildcat config
- domainAliases we just discussed
jspm bundle
will bundle everything together which is a good starting point