Giter Club home page Giter Club logo

Comments (4)

alexanderchan avatar alexanderchan commented on May 23, 2024 5

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.

jiawang1 avatar jiawang1 commented on May 23, 2024

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 :

  1. Install Fiori Fundamentals:
    npm install --save fiori-fundamentals
  2. 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.

jbadan avatar jbadan commented on May 23, 2024

@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.

droshev avatar droshev commented on May 23, 2024

@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)

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.