Giter Site home page Giter Site logo

Comments (6)

alansouzati avatar alansouzati commented on July 30, 2024

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.

maysst avatar maysst commented on July 30, 2024

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.

alansouzati avatar alansouzati commented on July 30, 2024

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.

maysst avatar maysst commented on July 30, 2024

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.

alansouzati avatar alansouzati commented on July 30, 2024

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.

alansouzati avatar alansouzati commented on July 30, 2024

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:

https://vimeo.com/199912095

from grommet-toolbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.