Comments (4)
Hi guys, love what you're doing here and I'm really hoping this entire project moves forward. I did notice that this is based off of create-react-app and it might be worth considering how other libraries are packaged as I am sure they have evolved to use best practices over the years.
You could in fact take their build pipeline and adapt it instead of using create-react-app which I believe is more intended for actual applications and not ui libraries.
Here's some ideas to get you started:
https://github.com/reactstrap/reactstrap
https://github.com/atlassian/react-beautiful-dnd
https://github.com/palantir/blueprint
https://github.com/ReactTraining/react-router
https://github.com/mobxjs/mobx
come to mind as large well maintained libraries but there are no shortages out there. I would hope to include sap/fundamental-react in my list one day and the way to hop to the front is by basing it off of the shoulders of giants.
My guess is we're going to have to eject from create-react-app but the good news is we can use other people's knowledge to get to an even better build system for libraries.
from fundamental-react.
hi
I have created a folk repo and separated components library and example project. You can check my repo here https://github.com/jiawang1/fundamental-react/tree/master , (master branch) I changed project to monorepo and utilize lerna to help manage library version number and internal dependency. One subproject is fundamental-react, this is pure library for components, this project could be built to esm and umd, and published to npm. Another subproject is example.
You still can run example when develop new component, it could reflect you latest code change in fundamental-react.
You also can download library @jay.wang/fundamental-react from NPM. I have removed some unnecessary stuff from the module.
And follow steps :
- Install Fiori Fundamentals:
npm install --save fiori-fundamentals - Include the Fiori Fundamentals CSS in your React application. In your App.css or App.scss file include the following lines:
$fd-icons-path: "~fiori-fundamentals/scss/icons/";
$fd-fonts-path: "~fiori-fundamentals/scss/fonts/";
@import '../node_modules/fiori-fundamentals/scss/all.scss';
You can import component from ‘@jay.wang/fundamental-react’ in your project.
This is just POC, I do not have enough time to improve every points, so I did not create PR. If you interested in this, let know, I can explain details or create separate commits to merge back.
I hope fundamental-react get matured someday can be applied into my projects to replace UI5.
from fundamental-react.
@droshev I believe this is complete, but we should find a way of saving @jiawang1 's comment for when we switch to Lerna eventually.
from fundamental-react.
@jbadan yes, we did it but I agree with you. Maybe we can keep the issue so we can track @jiawang1 's comments
from fundamental-react.
Related Issues (20)
- ComboboxInput with pre-selected key hides all remaining entries that is confusing for the user HOT 1
- Buttons show warnings in the dev tools on each render
- Select doesn't pass the ref to the input
- Can you support white list node as a new property of Dialog and pass it form dialog to this Focus Lock components
- RadioItem not applying defaultChecked prop HOT 1
- Module not found: Can't resolve 'fundamental-react/Panel' HOT 1
- No bold on matching combobox substring HOT 2
- Combobox autocompletion too agressive HOT 1
- Bug: In CheckBox aria-checked didn't update to true when I use props: checked to update the status to true
- Is fundamental-react going to support accessibility like SAP UI5 web components In the Roadmap ?
- Shellbar: popOverPropsFor and ariaLabel Console Errors HOT 1
- TimePicker(12 hour) not behaving correctly if we do not pass seconds.
- Don't scroll down when opening a dialog HOT 1
- Popper: modifier "computeStyle" provided an invalid "enabled" property, expected "boolean" but got "undefined" HOT 1
- Type definition Issue: Correct the type for dialog's header; Layout Panel Header's Title, let them also can be React Node
- Security - update moment.js dependency HOT 1
- standard-version is deprecated HOT 1
- Support React 18 HOT 1
- FormRadioItem - defaultChecked has no function
- Bump NodeJS to v16 HOT 1
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 fundamental-react.