diff --git a/next.config.js b/next.config.js index d03999d..83d2ac9 100644 --- a/next.config.js +++ b/next.config.js @@ -2,7 +2,6 @@ const webpack = require("webpack"); const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer"); const { ANALYZE } = process.env; const glob = require("glob"); -const SWPrecacheWebpackPlugin = require("sw-precache-webpack-plugin"); const LodashModuleReplacementPlugin = require("lodash-webpack-plugin"); module.exports = { @@ -61,11 +60,15 @@ module.exports = { exportPathMap() { const pathMap = {}; - glob.sync("pages/**/*.js", { ignore: "pages/_document.js" }).forEach(s => { - const path = s.split(/(pages|\.)/)[2].replace(/^\/index$/, "/"); - console.log(path); - pathMap[path] = { page: path }; - }); + glob + .sync("pages/**/*.js", { + ignore: ["pages/_document.js", "pages/_app.js"] + }) + .forEach(s => { + const path = s.split(/(pages|\.)/)[2].replace(/^\/index$/, "/"); + console.log(path); + pathMap[path] = { page: path }; + }); return pathMap; } }; diff --git a/package.json b/package.json index 6aa46dd..96d805f 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "json2yaml": "^1.1.0", "jsx-to-json": "^0.2.3", "lodash": "^4.17.4", - "next": "6.0.0-canary.4", + "next": "6.0.0-canary.6", "nprogress": "^0.2.0", "promise-worker": "^1.1.1", "prop-types": "^15.6.0", diff --git a/utils/routes.js b/utils/routes.js index a249bc7..6a82a84 100644 --- a/utils/routes.js +++ b/utils/routes.js @@ -97,17 +97,13 @@ export const categorizedRoutes = [ { label: "JSON to Flow Types", path: "/json-to-flow-types", - desc: "An online REPL for converting JSON to generate Flow Types.", - packageName: "json-ts", - packageUrl: "https://github.com/shakyShane/json-ts" + desc: "An online REPL for converting JSON to generate Flow Types." }, { label: "JSON to Typescript Interface", path: "/json-to-ts-interface", desc: - "An online REPL for converting JSON to generate TypeScript Interface.", - packageName: "json-ts", - packageUrl: "https://github.com/shakyShane/json-ts" + "An online REPL for converting JSON to generate TypeScript Interface." }, { label: "JSON to MobX-State-Tree Model", diff --git a/yarn.lock b/yarn.lock index bd677c1..ae8404b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -639,14 +639,6 @@ react-dom "~15.4.1" warning "^3.0.0" -"@zeit/check-updates@1.1.1": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@zeit/check-updates/-/check-updates-1.1.1.tgz#1bee858fd3f9b8633b0fc23dff53cb17343331c0" - dependencies: - chalk "2.3.2" - ms "2.1.1" - update-notifier "2.3.0" - abab@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/abab/-/abab-1.0.4.tgz#5faad9c2c07f60dd76770f71cf025b62a63cfd4e" @@ -2123,14 +2115,6 @@ center-align@^0.1.1: align-text "^0.1.3" lazy-cache "^1.0.3" -chalk@2.3.2, chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.3.1, chalk@^2.3.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.2.tgz#250dc96b07491bfd601e648d66ddf5f60c7a5c65" - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" @@ -2141,6 +2125,14 @@ chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3: strip-ansi "^3.0.0" supports-color "^2.0.0" +chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.0, chalk@^2.3.1, chalk@^2.3.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.2.tgz#250dc96b07491bfd601e648d66ddf5f60c7a5c65" + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + change-case@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/change-case/-/change-case-3.0.1.tgz#ee5f5ad0415ad1ad9e8072cf49cd4cfa7660a554" @@ -5444,10 +5436,6 @@ ms@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" -ms@2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.1.tgz#30a5864eb3ebb0a66f2ebe6d727af06a09d86e0a" - mute-stream@0.0.7: version "0.0.7" resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" @@ -5497,9 +5485,9 @@ next-tick@1: version "1.0.0" resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c" -next@6.0.0-canary.4: - version "6.0.0-canary.4" - resolved "https://registry.yarnpkg.com/next/-/next-6.0.0-canary.4.tgz#9f6980541f2d1b6686ab9f7a6c3df8593ca44c55" +next@6.0.0-canary.6: + version "6.0.0-canary.6" + resolved "https://registry.yarnpkg.com/next/-/next-6.0.0-canary.6.tgz#e37df6c6365413673c619e3c10c41295ad554ff4" dependencies: "@babel/core" "7.0.0-beta.42" "@babel/plugin-proposal-class-properties" "7.0.0-beta.42" @@ -5511,7 +5499,6 @@ next@6.0.0-canary.4: "@babel/preset-react" "7.0.0-beta.42" "@babel/runtime" "7.0.0-beta.42" "@babel/template" "7.0.0-beta.42" - "@zeit/check-updates" "1.1.1" ansi-html "0.0.7" babel-core "7.0.0-bridge.0" babel-loader "8.0.0-beta.2" @@ -5536,7 +5523,7 @@ next@6.0.0-canary.4: path-to-regexp "2.1.0" prop-types "15.6.0" prop-types-exact "1.1.1" - react-hot-loader "4.0.1" + react-hot-loader "4.1.1" recursive-copy "2.0.6" resolve "1.5.0" send "0.16.1" @@ -5545,6 +5532,7 @@ next@6.0.0-canary.4: touch "3.1.0" uglifyjs-webpack-plugin "1.1.6" unfetch "3.0.0" + update-check "1.3.2" url "0.11.0" uuid "3.1.0" walk "2.3.9" @@ -6630,16 +6618,21 @@ react-github-corner@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/react-github-corner/-/react-github-corner-2.3.0.tgz#73ab17324b670c9cd955567b09663d385cfb05ef" -react-hot-loader@4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/react-hot-loader/-/react-hot-loader-4.0.1.tgz#48284350ae5d7ba07dac872bd5bbc6e477352593" +react-hot-loader@4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/react-hot-loader/-/react-hot-loader-4.1.1.tgz#693499a6414b6dc6880287e254322a9d3155e944" dependencies: fast-levenshtein "^2.0.6" global "^4.3.0" hoist-non-react-statics "^2.5.0" prop-types "^15.6.1" + react-lifecycles-compat "^2.0.0" shallowequal "^1.0.2" +react-lifecycles-compat@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-2.0.2.tgz#00a23160eec17a43b94dd74f95d44a1a2c3c5ec1" + react@16.2.0: version "16.2.0" resolved "https://registry.yarnpkg.com/react/-/react-16.2.0.tgz#a31bd2dab89bff65d42134fa187f24d054c273ba" @@ -6832,14 +6825,14 @@ regexpu-core@^4.1.3: unicode-match-property-ecmascript "^1.0.3" unicode-match-property-value-ecmascript "^1.0.1" -registry-auth-token@^3.0.1: +registry-auth-token@3.3.2, registry-auth-token@^3.0.1: version "3.3.2" resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-3.3.2.tgz#851fd49038eecb586911115af845260eec983f20" dependencies: rc "^1.1.6" safe-buffer "^5.0.1" -registry-url@^3.0.3: +registry-url@3.1.0, registry-url@^3.0.3: version "3.1.0" resolved "https://registry.yarnpkg.com/registry-url/-/registry-url-3.1.0.tgz#3d4ef870f73dde1d77f0cf9a381432444e174942" dependencies: @@ -8073,19 +8066,12 @@ unzip-response@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/unzip-response/-/unzip-response-2.0.1.tgz#d2f0f737d16b0615e72a6935ed04214572d56f97" -update-notifier@2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-2.3.0.tgz#4e8827a6bb915140ab093559d7014e3ebb837451" +update-check@1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/update-check/-/update-check-1.3.2.tgz#460f9e9ab24820367f3edbeb4d4142d9936ff171" dependencies: - boxen "^1.2.1" - chalk "^2.0.1" - configstore "^3.0.0" - import-lazy "^2.1.0" - is-installed-globally "^0.1.0" - is-npm "^1.0.0" - latest-version "^3.0.0" - semver-diff "^2.0.0" - xdg-basedir "^3.0.0" + registry-auth-token "3.3.2" + registry-url "3.1.0" update-notifier@^2.3.0: version "2.4.0"