-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementazione React dei design-web-toolkit #4
Conversation
Fix prettier plugin with eslint
aggiunta dipendenza classnames
editorconfig con fine linea LF per non aver problemi win/linux/osx
Add basic Navscroll
Fix case insensitive branch problem
This contribution is amazing! Thank you so much for it, merging! 😄 🥇 I also invited you to become part of the italia organization, so that you can display this contribution on your profile. 🎉 I am also granting you admin access to this repository, so that you can keep improving this code as you wish! Great job! 😄 If you wish to display your belonging pubicly, don't forget to change the visibility (you can do so here) after you accept the invitation! |
Great news, good for the guys at RomaJS. @ruphy does this mean that anyone else (like me) interested in building a react toolkit here should start from their codebase instead of working independently? I had already forked the repo some weeks ago. Suggestions? |
hi @matteobelfiore, yes! |
I will get in touch with them for sure, I was already planning to do that anyway ;) thanks for the Slack tip I'll join now, and will consider PRs on their code ✌️ |
Riferimento issue: #1
Di seguito le istruzioni della challenge completata riguardo l'implementazione del design-web-toolkit.
La Pull Request presentata include:
Nota
Il foglio di style originario utilizzato e stato copiato staticamente dal repository originario.
Sono stati provati vari fix come l'uso del modulo
npm
e il repository su Github ma entrambi presentavano dei problemi (il primo ha un problema di sintassi mentre il il filebuild.css
costruito nel repository quando scaricato neinode_modules
ha un problema con la palette). La copia statica è stato l'unico approccio che garantiva una qualità adeguata.design-react
A React toolkit that implements the Italia design system
An easy-to-use showcase tool called Storybook is available to browse the library and view the components in action.
Requirements
Getting started
Just clone the repo and run
npm install
to install dependencies andnpm run storybook
to run the server.The Storybook is then available at http://localhost:8010
A public version of Storybook is available here.
How to create a new component
This section will guide you to the creation of a new component in the repository.
All the components live in the components folder: each component has its own folder with all the content it needs to work, the test files and the storybook story to publish.
As example the Button component lives in the components/Button folder and structure is the following:
Some basic rules to follow when structuring the component:
design-web-toolkit
repository and it has been built from thereOnce created a new component and started Storybook check that the new component has been added properly and it renders as it should.
Storybook
Storybook has been enriched with few addons to make the debug experience easier: if any validation or runtime errors are met the error will be printed in the page console.
In the component page it is also possible to access directly to the source code of the page, making Storybook a source of documentation.
Publishing
Storybook
There's a command to build a static version of the Storybook catalog so that it can be deployed anywere without any need of a webserver.
The static pages of the building process are stored in the
out
folder.Known issues (open pull requests)
Module
To use the React UIKit as module in the app you can install it directly from npm:
Then start to use the components in your app:
You can find an example of this in this repository.
Preprocessors
If you're using preprocessors as SASS or Less you can import the CSS directly into your
main
file:Continuous Integration
There's a TravisCI instance configured to run on this repository every time the
master
branch is updated. Currently only the Storybook build is deployed to thegh-pages
branch and it is publicly visible athttps://<user>.github.io/design-react
- you need to configure Travis for your repo.