Comments (6)
This is definitely a good idea, but there are cases where people are using Grommet App with other frameworks and this approach would not work.
I believe for now it is better to leave this to the caller so that he/she can decide where is the best place to apply hot reloading.
from grommet-toolbox.
Hi Alan,
I can see your reasoning, but the grommet-toolbox CLI allows creation of a "new" app from a template. Shouldn't the resulting "app" be able to be compiled and run straight away fresh out of the box? i.e. gulp dev
and away we go?
Without reading the notes on the above, I'm not sure that everyone would know that <AppContainer/>
would be even be required?
from grommet-toolbox.
Definitely yes! I thought I added it to the template.
https://github.com/grommet/grommet-cli/blob/master/templates/full/src/js/index.js
I'm probably missing something though.
Did you use the full option?
from grommet-toolbox.
Ahhhh.....now that could be the answer! I used:
grommet~$ new app --theme hpe --type empty
Using --type full
does indeed put the <AppContainer/>
around the <Main/>
component...
So, for reference (perhaps in the grommet-cli docs) could you clarify what the 3 "types" of app are?
:-)
from grommet-toolbox.
I will make sure to add the hot reloading in the empty as well. As you said, it is important to use whatever template and work properly.
The different templates are described in the grommet-cli
project itself
you can run grommet new --help
and get the documentation regarding the options.
from grommet-toolbox.
We have updated the CLI and hot reloading are made available without the AppContainer which is pretty cool. We are using babel-preset-react-hmre
.
Check this video out where I go over the capabilities of the new CLI:
from grommet-toolbox.
Related Issues (20)
- URLs with dot are rewritten when using webpack-dev-server
- Debugging (source maps) does not work as expected HOT 2
- Cannot set extension resolution for jsx files HOT 3
- We need a option to disable jsLint HOT 1
- Avoid use of cache mechanism HOT 4
- Scsslint default option is wrong HOT 1
- Deprecate scssLint option HOT 1
- Grommet-toolbox references outdated gulp-eslint which results in eslint issues with flow type HOT 5
- setupJsDom breaks other node plugins. HOT 1
- Improvement: Create an option to do not minify the code for debugging HOT 1
- Allow running a specific unit test. HOT 1
- Not able set many of the webpack config. HOT 10
- Support for destructured imports HOT 3
- localization encoding HOT 1
- Make Grommet-Toolbox a generator app? HOT 12
- eslint failAfterError very disruptive HOT 4
- Any option to remove comments in compressed index.js after run 'gulp dist'? HOT 3
- Running gulp test normal globbing will run the entire test suite once for every file in the glob HOT 5
- Trying to load current options causes errors with FS HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grommet-toolbox.