Giter Site home page Giter Site logo

Please, test generator-arc about arc HOT 12 CLOSED

diegohaz avatar diegohaz commented on May 1, 2024
Please, test generator-arc

from arc.

Comments (12)

hefox avatar hefox commented on May 1, 2024 1

Just did "yo arc" then used yo arc:component generate a component and looks to be working fine, will update if not.

(I'm fairly new to react and totally new to arc, but not to using yeoman.)

from arc.

kybarg avatar kybarg commented on May 1, 2024 1

Works for me as well

from arc.

0xsven avatar 0xsven commented on May 1, 2024

yo arc:store produces normalizr schema and middleware files? I was expecting the standard arc store from the docs :)

from arc.

protoEvangelion avatar protoEvangelion commented on May 1, 2024

@diegohaz WOW! This is a super cool utility and is looking great so far. However, I am struggling to get storybook to work.

I chose the universal-redux branch and when I do npm run storybook the UI shows up properly on port 9001 but does not show any components. I am running Windows 10 on Chrome. Here is what it looks like:

Capture.png

I think the problem may be in the generated config file in the .storybook folder. In config.js this statement is throwing an eslint error on the import theme statement:

import configureStore from 'store/configure'
import theme from 'components/themes/default'

In the components folder under the src directory, no themes folder was generated.

Do you think I am on the right track or am I missing something?

from arc.

diegohaz avatar diegohaz commented on May 1, 2024

@protoEvangelion Thank you for the feedback.

We need to copy src/components/App.js and src/components/themes to the src-clean folder.

Do you want to send a PR against the master branch with that change?

from arc.

diegohaz avatar diegohaz commented on May 1, 2024

@0xsven It just copies the current store folders on the boilerplate or on your code. Wasn't this what you expected?

from arc.

protoEvangelion avatar protoEvangelion commented on May 1, 2024

@diegohaz Sure thing! Just made the PR. By the way, I met Michael Jackson yesterday the creator of React Router and he said they are releasing React Router 4 before React Conf on Monday. When you want to make the switch from version 3 to 4 I would be happy to help :)

from arc.

diegohaz avatar diegohaz commented on May 1, 2024

@protoEvangelion Wow! Good to know that.

ARc had RR4 on the early versions (see v0.2.1 and the v0.3.0 patch notes to understand the reason we downgraded).

Well, since #92 we don't need the scroll management anymore. We could already add RR4 on master today. But for the redux branch, we need to wait for react-router-redux to support RR4 or use another equivalent solution.

On universal-redux and fullstack we need to make sure that RR4 works well with SSR and our fetchData approach (otherwise we should change that approach).

That said, the project was designed this way (separated in branches) so we can handle better this situation. If RR4 works on master, let's do that asap, we can upgrade other branches later (see #112 (comment) where I talk exactly about it).

Your help is very welcome.

from arc.

diegohaz avatar diegohaz commented on May 1, 2024

Just created an issue for RR4 upgrade: #161

from arc.

protoEvangelion avatar protoEvangelion commented on May 1, 2024

@diegohaz Just an idea, is there any way to make searching case insensitive? For instance, if I search for hero after running yo arc:component nothing will show up. I have to search for Hero for it to show up. Not a big deal but would be cool 👍

from arc.

diegohaz avatar diegohaz commented on May 1, 2024

@protoEvangelion We are using inquirer-autocomplete-prompt here to find components: https://github.com/diegohaz/arc/blob/generator-arc/src/component/index.js#L42-L48

I'm not sure if it has case option though.

EDIT: Ah, actually, we can. We just need to update the .filter logic (probably lowercasing everything).

Something like

choices.filter(choice => choice.name.toLowerCase().indexOf(input.toLowerCase()) >= 0)

should work, but I'm not sure.

from arc.

protoEvangelion avatar protoEvangelion commented on May 1, 2024

@diegohaz I would be happy to test this, but am unsure how to make that happen in a yeoman enviroment.

from arc.

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.