From 1961cb19303bcc3146390c524ede8cab65a4b007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismael=20Mart=C3=ADnez?= Date: Wed, 16 Oct 2019 09:46:49 -0300 Subject: [PATCH] Update with-react-toolbox example to use /public --- examples/with-react-toolbox/README.md | 2 +- examples/with-react-toolbox/package.json | 3 ++- examples/with-react-toolbox/pages/index.js | 4 ++-- examples/with-react-toolbox/{static => public}/theme.css | 0 examples/with-react-toolbox/{static => }/theme.js | 0 5 files changed, 5 insertions(+), 4 deletions(-) rename examples/with-react-toolbox/{static => public}/theme.css (100%) rename examples/with-react-toolbox/{static => }/theme.js (100%) diff --git a/examples/with-react-toolbox/README.md b/examples/with-react-toolbox/README.md index e8dad71fe798f..4bc1b0c67ca7d 100644 --- a/examples/with-react-toolbox/README.md +++ b/examples/with-react-toolbox/README.md @@ -31,7 +31,7 @@ yarn yarn dev ``` -Notice that `yarn toolbox` (or `npm run toolbox`) should be rerun every time the `"reactToolbox"` configuration in `package.json` is changed, in order to update `static/theme.js` and `static/theme.css`. The `"reactToolbox"` configuration includes styling, and the list of react-toolbox components to include. +Notice that `yarn toolbox` (or `npm run toolbox`) should be rerun every time the `"reactToolbox"` configuration in `package.json` is changed, in order to update `/theme.js` and `public/theme.css`. The `"reactToolbox"` configuration includes styling, and the list of react-toolbox components to include. ## The idea behind the example diff --git a/examples/with-react-toolbox/package.json b/examples/with-react-toolbox/package.json index 5412b3156972d..229a0a7f2e4cf 100644 --- a/examples/with-react-toolbox/package.json +++ b/examples/with-react-toolbox/package.json @@ -30,6 +30,7 @@ "color-primary-contrast": "var(--color-dark-contrast)", "color-accent-contrast": "var(--color-dark-contrast)" }, - "output": "static" + "output": "public", + "javascript": "./theme.js" } } diff --git a/examples/with-react-toolbox/pages/index.js b/examples/with-react-toolbox/pages/index.js index a2b3945220c2e..e432a7915133f 100644 --- a/examples/with-react-toolbox/pages/index.js +++ b/examples/with-react-toolbox/pages/index.js @@ -1,5 +1,5 @@ import ThemeProvider from 'react-toolbox/lib/ThemeProvider' -import theme from '../static/theme' +import theme from '../theme' import Head from 'next/head' import Button from 'react-toolbox/lib/button/Button' @@ -7,7 +7,7 @@ import Button from 'react-toolbox/lib/button/Button' export default () => (
- +