Skip to content

Commit

Permalink
Merge pull request #33 from react-next-boilerplate/public-directory-s…
Browse files Browse the repository at this point in the history
…upport

[core]: Public directory support
  • Loading branch information
wootsbot committed Jan 16, 2020
2 parents e4f4db2 + 9343867 commit f22b789
Show file tree
Hide file tree
Showing 11 changed files with 60 additions and 34 deletions.
5 changes: 0 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,3 @@ jobs:
- yarn lint

after_success: 'yarn coveralls'

branches:
only:
- canary
- master
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"i18next": "^19.0.3",
"invariant": "2.2.4",
"lodash": "^4.17.15",
"next": "9.1.6",
"next-i18next": "^3.0.1",
"next": "^9.2.0",
"next-i18next": "^4.0.0",
"prop-types": "^15.7.2",
"react": "^16.12.0",
"react-dom": "^16.12.0",
Expand Down Expand Up @@ -66,7 +66,7 @@
"babel-jest": "^24.8.0",
"babel-plugin-emotion": "^10.0.21",
"babel-plugin-module-resolver": "^3.2.0",
"coveralls": "^3.0.7",
"coveralls": "^3.0.9",
"eslint": "^6.0.0",
"eslint-config-prettier": "^5.0.0",
"eslint-import-resolver-webpack": "^0.11.1",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ const signale = new Signale(options);
const server = express();

server.use(nextI18NextMiddleware(nextI18next));
server.use('/static', express.static('static'));
server.use('/static', express.static('public/static'));

server.get('*', (req, res) => handle(req, res));

await server.listen(port);
signale.success(`<> Ready on localhost:${port}`);
signale.success(`<> React Next Boilerplate ready on localhost:${port}`);
})();
79 changes: 55 additions & 24 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2491,7 +2491,7 @@ browserify-zlib@^0.2.0:
dependencies:
pako "~1.0.5"

browserslist@^4.5.2, browserslist@^4.6.0, browserslist@^4.6.4, browserslist@^4.8.0, browserslist@^4.8.3:
browserslist@4.8.3, browserslist@^4.5.2, browserslist@^4.6.0, browserslist@^4.6.4, browserslist@^4.8.0, browserslist@^4.8.3:
version "4.8.3"
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.8.3.tgz#65802fcd77177c878e015f0e3189f2c4f627ba44"
integrity sha512-iU43cMMknxG1ClEZ2MDKeonKE1CCrFVkQK2AqO2YWFmvIrx4JWrvQ4w4hQez6EpVI8rHTtqh/ruHHDHSOKxvUg==
Expand All @@ -2512,6 +2512,11 @@ buffer-from@^1.0.0:
resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef"
integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==

buffer-json@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/buffer-json/-/buffer-json-2.0.0.tgz#f73e13b1e42f196fe2fd67d001c7d7107edd7c23"
integrity sha512-+jjPFVqyfF1esi9fvfUs3NqM0pH1ziZ36VP4hmA/y/Ssfo/5w5xHKfTw9BwQjoJ1w/oVtpLomqwUHKdefGyuHw==

buffer-xor@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9"
Expand Down Expand Up @@ -2577,6 +2582,18 @@ cache-base@^1.0.1:
union-value "^1.0.0"
unset-value "^1.0.0"

cache-loader@4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/cache-loader/-/cache-loader-4.1.0.tgz#9948cae353aec0a1fcb1eafda2300816ec85387e"
integrity sha512-ftOayxve0PwKzBF/GLsZNC9fJBXl8lkZE3TOsjkboHfVHVkL39iUEs1FO07A33mizmci5Dudt38UZrrYXDtbhw==
dependencies:
buffer-json "^2.0.0"
find-cache-dir "^3.0.0"
loader-utils "^1.2.3"
mkdirp "^0.5.1"
neo-async "^2.6.1"
schema-utils "^2.0.0"

caller-callsite@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/caller-callsite/-/caller-callsite-2.0.0.tgz#847e0fce0a223750a9a027c54b33731ad3154134"
Expand Down Expand Up @@ -2990,7 +3007,7 @@ cosmiconfig@^6.0.0:
path-type "^4.0.0"
yaml "^1.7.2"

coveralls@^3.0.7:
coveralls@^3.0.9:
version "3.0.9"
resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.9.tgz#8cfc5a5525f84884e2948a0bf0f1c0e90aac0420"
integrity sha512-nNBg3B1+4iDox5A5zqHKzUTiwl2ey4k2o0NEcVZYvl+GOSJdKBj4AJGKLv6h3SvWch7tABHePAQOSZWM9E2hMg==
Expand Down Expand Up @@ -4053,6 +4070,15 @@ find-cache-dir@^2.0.0, find-cache-dir@^2.1.0:
make-dir "^2.0.0"
pkg-dir "^3.0.0"

find-cache-dir@^3.0.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.2.0.tgz#e7fe44c1abc1299f516146e563108fd1006c1874"
integrity sha512-1JKclkYYsf1q9WIJKLZa9S9muC+08RIjzAlLrK4QcYLJMS6mk9yombQ9qf+zJ7H9LS800k0s44L4sDq9VYzqyg==
dependencies:
commondir "^1.0.1"
make-dir "^3.0.0"
pkg-dir "^4.1.0"

find-root@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/find-root/-/find-root-1.1.0.tgz#abcfc8ba76f708c42a97b3d685b7e9450bfb9ce4"
Expand Down Expand Up @@ -4583,13 +4609,6 @@ i18next-xhr-backend@^3.0.0:
dependencies:
"@babel/runtime" "^7.5.5"

i18next@^18.0.1:
version "18.0.1"
resolved "https://registry.yarnpkg.com/i18next/-/i18next-18.0.1.tgz#10841209f6983df4d8e367204da403d8cbc609cf"
integrity sha512-KWd9qMFXw0qjxF7cTAqQselPCYoHfaLvBs8c6JcNzaQKVxbAlE/wv9EZXPy+JlKUcXCT0qgjcmxrJjmbnEp60A==
dependencies:
"@babel/runtime" "^7.3.1"

i18next@^19.0.3:
version "19.0.3"
resolved "https://registry.yarnpkg.com/i18next/-/i18next-19.0.3.tgz#31fd3165762d9802e08a2a86932db4eff5c862e9"
Expand Down Expand Up @@ -5686,7 +5705,7 @@ load-json-file@^4.0.0:
pify "^3.0.0"
strip-bom "^3.0.0"

loader-runner@^2.4.0:
loader-runner@^2.3.1, loader-runner@^2.4.0:
version "2.4.0"
resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.4.0.tgz#ed47066bfe534d7e84c4c7b9998c2a75607d9357"
integrity sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw==
Expand Down Expand Up @@ -6108,10 +6127,10 @@ nanomatch@^1.2.9:
snapdragon "^0.8.1"
to-regex "^3.0.1"

native-url@0.2.3:
version "0.2.3"
resolved "https://registry.yarnpkg.com/native-url/-/native-url-0.2.3.tgz#29dfc0d7b2b396af493872ccc4b7d974e72ecb9a"
integrity sha512-AeSn0qFkS9EVPExWw/mN8le1HUj09LXovYPBTT9rnr9300OTvz+MZoEzIM1F7iPROsT2UNMzM+UsJCTPDqaL1g==
native-url@0.2.4:
version "0.2.4"
resolved "https://registry.yarnpkg.com/native-url/-/native-url-0.2.4.tgz#37623b3db2c7bb6670e50e379634248ba5ca9d90"
integrity sha512-McE+8BrgMw2ANypdYX9s1L+aUkbWDCEtsBGIbs8TfKBfQrFcZ2jMXX9LxGjOIOtoRXkwLTSlz38XHm8J3U6hgQ==
dependencies:
querystring "^0.2.0"

Expand All @@ -6130,15 +6149,15 @@ neo-async@^2.5.0, neo-async@^2.6.0, neo-async@^2.6.1:
resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.1.tgz#ac27ada66167fa8849a6addd837f6b189ad2081c"
integrity sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==

next-i18next@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/next-i18next/-/next-i18next-3.0.1.tgz#596a4d6e1998baf1a027fdcd1caf0df1e923c651"
integrity sha512-YPcbS9U3rkamA3VQOBBRnUHkK7lVWcPqJfm2j3oG8I4qZGxe9rcSEWKUEhsam+9aBpvreB1KI+W+FQy86hZQ8Q==
next-i18next@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/next-i18next/-/next-i18next-4.0.0.tgz#2ef80abf4b91b930733141a3fa4c107a405a3dbe"
integrity sha512-8IW1BeyPbv1xjZqeyrhxatFps0Rq8PPN3wN0RvjmBMv0LH41A6b+xIhOEVU3n5iozLZHoKoZJJtl5NkoSvfOaw==
dependencies:
core-js "^2"
detect-node "^2.0.4"
hoist-non-react-statics "^3.2.0"
i18next "^18.0.1"
i18next "^19.0.3"
i18next-browser-languagedetector "^4.0.0"
i18next-express-middleware "^1.5.0"
i18next-node-fs-backend "^2.1.0"
Expand All @@ -6148,10 +6167,10 @@ next-i18next@^3.0.1:
react-i18next "^11.0.0"
url "^0.11.0"

next@9.1.6:
version "9.1.6"
resolved "https://registry.yarnpkg.com/next/-/next-9.1.6.tgz#b3ede59d9069214807d9bde7d05b42e7fabcae51"
integrity sha512-sqvEZBEirXQhDPOsHTLka0swKjp8KB3PmNnX9iWn5nPdOFw0/CIlfa0hFl6aAQY0bP6ucKRQqtwGY4D8mKtM2g==
next@^9.2.0:
version "9.2.0"
resolved "https://registry.yarnpkg.com/next/-/next-9.2.0.tgz#1adc85ad45143114cd22e6a68337f56319cd59d2"
integrity sha512-c4gyJotZHuvq9dslum+Z2Z21jjb9qWMYybV+IS9yEg7hTjs8OyKU59snyJ1Bi0ul84OdyLOZ4ytjch9zMw9lEQ==
dependencies:
"@ampproject/toolbox-optimizer" "1.1.1"
"@babel/core" "7.7.2"
Expand All @@ -6177,6 +6196,8 @@ next@9.1.6:
babel-plugin-syntax-jsx "6.18.0"
babel-plugin-transform-define "2.0.0"
babel-plugin-transform-react-remove-prop-types "0.4.24"
browserslist "4.8.3"
cache-loader "4.1.0"
chalk "2.4.2"
ci-info "2.0.0"
compression "1.7.4"
Expand All @@ -6203,7 +6224,7 @@ next@9.1.6:
lru-cache "5.1.1"
mini-css-extract-plugin "0.8.0"
mkdirp "0.5.1"
native-url "0.2.3"
native-url "0.2.4"
node-fetch "2.6.0"
object-assign "4.1.1"
ora "3.4.0"
Expand All @@ -6224,6 +6245,7 @@ next@9.1.6:
style-loader "1.0.0"
styled-jsx "3.2.4"
terser "4.4.2"
thread-loader "2.1.3"
unfetch "4.1.0"
url "0.11.0"
url-polyfill "1.1.7"
Expand Down Expand Up @@ -8721,6 +8743,15 @@ text-table@^0.2.0:
resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4"
integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=

thread-loader@2.1.3:
version "2.1.3"
resolved "https://registry.yarnpkg.com/thread-loader/-/thread-loader-2.1.3.tgz#cbd2c139fc2b2de6e9d28f62286ab770c1acbdda"
integrity sha512-wNrVKH2Lcf8ZrWxDF/khdlLlsTMczdcwPA9VEK4c2exlEPynYWxi9op3nPTo5lAnDIkE0rQEB3VBP+4Zncc9Hg==
dependencies:
loader-runner "^2.3.1"
loader-utils "^1.1.0"
neo-async "^2.6.0"

throat@^4.0.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/throat/-/throat-4.1.0.tgz#89037cbc92c56ab18926e6ba4cbb200e15672a6a"
Expand Down

0 comments on commit f22b789

Please sign in to comment.