-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New: Add hot module reloading for theme and styles (#1489)
* make theme hmr loadable * try making a theme hmr tool * add an example for it * add styles in the mix * fix example * fix typings * fix modulenamemapper fo jest tests * update snapshots * Add tests for the new behavior * prevent eslint from being mean to jest mock * remove rsg styles type * reorder imports * make better tests * make example filenames more explicit * remove eslint exception in example * fix webpack and add comments * update snapshots * add tests for make webpack config * augment coverage over make-webpack-config * remove useless ependency * document styles and themes hmr * fix typings * remove eslintrc changes * fix resolving of path from configDir * update docs and example * remove compile change * make better style file path * cookbook clarification * fix typings * fix typo in docs Co-Authored-By: Artem Sapegin <artem@sapegin.ru> * Update case in the note docs Co-Authored-By: Artem Sapegin <artem@sapegin.ru> * remove added chevrons in cookbook * update examples package and lock * remove modifications from webpack config * clean eslint changes * simplify themed example * fix redme for left button * update themed * improve types * use the styleguide-loader instead * remove all chanegs from make webpack config * make the HMR of theme work * optimize performance when not using style files * rollback unwanted changes to eslint * update whitespace * replace tabs with spaces * fix es5 export of styles and themes * update createssheet tests * remove unwanted changes * fix optimization * add various comments * add tests on styleguide-loader * more code coverage * replace RE by regExp in tests Co-Authored-By: Artem Sapegin <artem@sapegin.ru> * complete the test clarification * remove custom state documentation * move all changes to styleguide-loader * avoid compiling test files * add comments regarding optimization * fix tests and styleguide loader * can't deal with default this way... * resolve es6 in loader side * ue has-sum intead of custom md5 * better case conventions for constants * rename resolve esmodule * fix typings * rename es6 test file * use destructured theme and styles * fix test name * fix types * remove hmrStyles * update comments of styleguide-loader * add comments and test * update comments Co-authored-by: Artem Sapegin <artem@sapegin.ru>
- Loading branch information
Showing
35 changed files
with
9,628 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# React Styleguidist themed example style guide | ||
|
||
How to start locally: | ||
|
||
``` | ||
git clone https://github.com/styleguidist/react-styleguidist.git | ||
cd react-styleguidist/examples/themed | ||
npm install | ||
npx styleguidist server | ||
``` | ||
|
||
Then open [http://localhost:6060](http://localhost:6060) in your browser. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module.exports = { | ||
presets: [ | ||
[ | ||
'@babel/env', | ||
{ | ||
modules: false, | ||
useBuiltIns: 'usage', | ||
corejs: 3, | ||
}, | ||
], | ||
'@babel/react', | ||
], | ||
plugins: ['@babel/plugin-proposal-class-properties'], | ||
}; |
Oops, something went wrong.