Comments (12)
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.
Works for me as well
from arc.
yo arc:store
produces normalizr schema and middleware files? I was expecting the standard arc store from the docs :)
from arc.
@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:
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.
@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.
@0xsven It just copies the current store folders on the boilerplate or on your code. Wasn't this what you expected?
from arc.
@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.
@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.
Just created an issue for RR4 upgrade: #161
from arc.
@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.
@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.
@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)
- Running from dist HOT 1
- A lot of packages is out of date HOT 2
- Arc ssr (server side) CSS can not loaded. HOT 1
- r
- Error with import components HOT 6
- Looking for a Typescript version of components/index.js HOT 1
- Question about how 'components' is exported in the example project HOT 1
- GraphQl Branch HOT 3
- Updating to webpack 4
- Updating the SSR version to webpack 4 : new webpack config HOT 1
- Implement React Portals HOT 4
- Non root path build
- crashes on heroku, but not locally.
- injectGlobal is not supported
- `process.env` Object in config.js empty on Browser
- change crlf to lf
- Molecule inside molecule
- Discussion: are people still using Atomic design in 2021? HOT 2
- eslint bug
- Mui
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 arc.