Commit b8288d9f authored by Xunnamius (Morty)'s avatar Xunnamius (Morty)

small fixes

parent 078c31a6
[ignore]
.*/node_modules/.*
.*/flow-typed/.*
.*/vendor/.*
[include]
......@@ -10,5 +9,6 @@
[lints]
[options]
suppress_comment= \\(.\\|\n\\)*\\flow-disable-line
[strict]
......@@ -116,6 +116,8 @@ When a `<Link>` is followed (client-side nav), `getInitialProps()` is called cli
## Available NPM Run Scripts
(todo: also, npx gulp --tasks)
<details>
<summary><strong>dev</strong></summary>
......
......@@ -21,6 +21,8 @@ import replaceInFile from 'replace-in-file'
import sh from 'shelljs'
import chalk from 'chalk'
require('dotenv').config();
sh.config.silent = true;
sh.config.fatal = true;
......
......@@ -4,7 +4,9 @@ import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'
import { readdirSync, lstatSync } from 'fs'
import path from 'path'
const { ANALYZE_WEBPACK_BUNDLES } = process.env
require('dotenv').config();
const { ANALYZE_WEBPACK_BUNDLES } = process.env;
const paths = {
components: `${__dirname}/components`,
......
This diff is collapsed.
......@@ -16,6 +16,8 @@ var _path = _interopRequireDefault(require("path"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
require('dotenv').config();
const {
ANALYZE_WEBPACK_BUNDLES
} = process.env;
......@@ -45,4 +47,4 @@ module.exports = (phase, {
publicRuntimeConfig: {}
};
};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbmZpZy9uZXh0LmNvbmZpZy5qcyJdLCJuYW1lcyI6WyJBTkFMWVpFX1dFQlBBQ0tfQlVORExFUyIsInByb2Nlc3MiLCJlbnYiLCJwYXRocyIsImNvbXBvbmVudHMiLCJfX2Rpcm5hbWUiLCJtb2R1bGUiLCJleHBvcnRzIiwicGhhc2UiLCJkZWZhdWx0Q29uZmlnIiwid2VicGFjayIsImNvbmZpZyIsImlzU2VydmVyIiwicGx1Z2lucyIsInB1c2giLCJCdW5kbGVBbmFseXplcl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N0KSA9PiB7XG4gICAgICAgICAgICBpZihBTkFMWVpFX1dFQlBBQ0tfQlVORExFUykge1xuICAgICAgICAgICAgICAgIGNvbmZpZy5wbHVnaW5zLnB1c2gobmV3IEJ1bmRsZUFuYWx5emVyUGx1Z2luKHtcbiAgICAgICAgICAgICAgICAgICAgYW5hbHl6ZXJNb2RlOiAnc2VydmVyJyxcbiAgICAgICAgICAgICAgICAgICAgYW5hbHl6ZXJQb3J0OiBpc1NlcnZlciA/IDg4ODggOiA4ODg5LFxuICAgICAgICAgICAgICAgICAgICBvcGVuQW5hbHl6ZXI6IHRydWVcbiAgICAgICAgICAgICAgICB9KSlcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgLy8gY29uZmlnLmVudHJ5ID0gJy4vc3JjL2luZGV4LmpzJztcbiAgICAgICAgICAgIC8vIGNvbmZpZy5vdXRwdXQgPSB7XG4gICAgICAgICAgICAvLyAgICAgcGF0aDogX19kaXJuYW1lICsgJy9kaXN0JyxcbiAgICAgICAgICAgIC8vICAgICBwdWJsaWNQYXRoOiAnLycsXG4gICAgICAgICAgICAvLyAgICAgZmlsZW5hbWU6ICdidW5kbGUuanMnXG4gICAgICAgICAgICAvLyB9O1xuXG4gICAgICAgICAgICAvLyBjb25maWcuZGV2U2VydmVyID0ge1xuICAgICAgICAgICAgLy8gICAgIGNvbnRlbnRCYXNlOiAnLi9kaXN0J1xuICAgICAgICAgICAgLy8gfTtcblxuICAgICAgICAgICAgLy8gY29uZmlnLm1vZHVsZS5ydWxlcy5wdXNoKHtcbiAgICAgICAgICAgIC8vICAgICB0ZXN0OiAvXFwuanMkLyxcbiAgICAgICAgICAgIC8vICAgICBleGNsdWRlOiAvbm9kZV9tb2R1bGVzLyxcbiAgICAgICAgICAgIC8vICAgICB1c2U6IHtcbiAgICAgICAgICAgIC8vICAgICAgICAgbG9hZGVyOiAnYmFiZWwtbG9hZGVyJ1xuICAgICAgICAgICAgLy8gICAgIH1cbiAgICAgICAgICAgIC8vIH0pO1xuXG4gICAgICAgICAgICByZWFkZGlyU3luYyhwYXRocy5jb21wb25lbnRzKVxuICAgICAgICAgICAgICAgIC5tYXAoZGlyID0+IFsgcGF0aC5yZXNvbHZlKHBhdGhzLmNvbXBvbmVudHMsIGRpciksIGRpciBdKVxuICAgICAgICAgICAgICAgIC5maWx0ZXIoKFsgZGlycGF0aCBdKSA9PiBsc3RhdFN5bmMoZGlycGF0aCkuaXNEaXJlY3RvcnkoKSlcbiAgICAgICAgICAgICAgICAuZm9yRWFjaCgoWyBkaXJwYXRoLCBkaXJuYW1lIF0pID0+IGNvbmZpZy5yZXNvbHZlLmFsaWFzW2Rpcm5hbWVdID0gZGlycGF0aCk7XG5cbiAgICAgICAgICAgIHJldHVybiBjb25maWc7XG4gICAgICAgIH0sXG5cbiAgICAgICAgLy8gPyBXaWxsIG9ubHkgYmUgYXZhaWxhYmxlIG9uIHRoZSBzZXJ2ZXIgc2lkZVxuICAgICAgICBzZXJ2ZXJSdW50aW1lQ29uZmlnOiB7XG4gICAgICAgICAgICAvLyAuLi5cbiAgICAgICAgfSxcblxuICAgICAgICAvLyA/IFdpbGwgYmUgYXZhaWxhYmxlIG9uIGJvdGggc2VydmVyIGFuZCBjbGllbnRcbiAgICAgICAgcHVibGljUnVudGltZUNvbmZpZzoge1xuICAgICAgICAgICAgLy8gLi4uXG4gICAgICAgIH1cbiAgICB9XG59O1xuIl19
\ No newline at end of file
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbmZpZy9uZXh0LmNvbmZpZy5qcyJdLCJuYW1lcyI6WyJyZXF1aXJlIiwiY29uZmlnIiwiQU5BTFlaRV9XRUJQQUNLX0JVTkRMRVMiLCJwcm9jZXNzIiwiZW52IiwicGF0aHMiLCJjb21wb25lbnRzIiwiX19kaXJuYW1lIiwibW9kdWxlIiwiZXhwb3J0cyIsInBoYXNlIiwiZGVmYXVsdENvbmZpZyIsIndlYnBhY2siLCJpc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amVjdCkgPT4geyAvLyBlc2xpbnQtZGlzYWJsZS1saW5lIG5vLXVudXNlZC12YXJzXG4gICAgcmV0dXJuIHtcbiAgICAgICAgd2VicGFjazogKGNvbmZpZzogT2JqZWN0LCB7IGlzU2VydmVyIH06IE9iamVjdCkgPT4ge1xuICAgICAgICAgICAgaWYoQU5BTFlaRV9XRUJQQUNLX0JVTkRMRVMpIHtcbiAgICAgICAgICAgICAgICBjb25maWcucGx1Z2lucy5wdXNoKG5ldyBCdW5kbGVBbmFseXplclBsdWdpbih7XG4gICAgICAgICAgICAgICAgICAgIGFuYWx5emVyTW9kZTogJ3NlcnZlcicsXG4gICAgICAgICAgICAgICAgICAgIGFuYWx5emVyUG9ydDogaXNTZXJ2ZXIgPyA4ODg4IDogODg4OSxcbiAgICAgICAgICAgICAgICAgICAgb3BlbkFuYWx5emVyOiB0cnVlXG4gICAgICAgICAgICAgICAgfSkpXG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIC8vIGNvbmZpZy5lbnRyeSA9ICcuL3NyYy9pbmRleC5qcyc7XG4gICAgICAgICAgICAvLyBjb25maWcub3V0cHV0ID0ge1xuICAgICAgICAgICAgLy8gICAgIHBhdGg6IF9fZGlybmFtZSArICcvZGlzdCcsXG4gICAgICAgICAgICAvLyAgICAgcHVibGljUGF0aDogJy8nLFxuICAgICAgICAgICAgLy8gICAgIGZpbGVuYW1lOiAnYnVuZGxlLmpzJ1xuICAgICAgICAgICAgLy8gfTtcblxuICAgICAgICAgICAgLy8gY29uZmlnLmRldlNlcnZlciA9IHtcbiAgICAgICAgICAgIC8vICAgICBjb250ZW50QmFzZTogJy4vZGlzdCdcbiAgICAgICAgICAgIC8vIH07XG5cbiAgICAgICAgICAgIC8vIGNvbmZpZy5tb2R1bGUucnVsZXMucHVzaCh7XG4gICAgICAgICAgICAvLyAgICAgdGVzdDogL1xcLmpzJC8sXG4gICAgICAgICAgICAvLyAgICAgZXhjbHVkZTogL25vZGVfbW9kdWxlcy8sXG4gICAgICAgICAgICAvLyAgICAgdXNlOiB7XG4gICAgICAgICAgICAvLyAgICAgICAgIGxvYWRlcjogJ2JhYmVsLWxvYWRlcidcbiAgICAgICAgICAgIC8vICAgICB9XG4gICAgICAgICAgICAvLyB9KTtcblxuICAgICAgICAgICAgcmVhZGRpclN5bmMocGF0aHMuY29tcG9uZW50cylcbiAgICAgICAgICAgICAgICAubWFwKGRpciA9PiBbIHBhdGgucmVzb2x2ZShwYXRocy5jb21wb25lbnRzLCBkaXIpLCBkaXIgXSlcbiAgICAgICAgICAgICAgICAuZmlsdGVyKChbIGRpcnBhdGggXSkgPT4gbHN0YXRTeW5jKGRpcnBhdGgpLmlzRGlyZWN0b3J5KCkpXG4gICAgICAgICAgICAgICAgLmZvckVhY2goKFsgZGlycGF0aCwgZGlybmFtZSBdKSA9PiBjb25maWcucmVzb2x2ZS5hbGlhc1tkaXJuYW1lXSA9IGRpcnBhdGgpO1xuXG4gICAgICAgICAgICByZXR1cm4gY29uZmlnO1xuICAgICAgICB9LFxuXG4gICAgICAgIC8vID8gV2lsbCBvbmx5IGJlIGF2YWlsYWJsZSBvbiB0aGUgc2VydmVyIHNpZGVcbiAgICAgICAgc2VydmVyUnVudGltZUNvbmZpZzoge1xuICAgICAgICAgICAgLy8gLi4uXG4gICAgICAgIH0sXG5cbiAgICAgICAgLy8gPyBXaWxsIGJlIGF2YWlsYWJsZSBvbiBib3RoIHNlcnZlciBhbmQgY2xpZW50XG4gICAgICAgIHB1YmxpY1J1bnRpbWVDb25maWc6IHtcbiAgICAgICAgICAgIC8vIC4uLlxuICAgICAgICB9XG4gICAgfVxufTtcbiJdfQ==
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment