Giter VIP home page Giter VIP logo

svg-loaders-react's People

Contributors

ajwann avatar dependabot[bot] avatar dev-z avatar jezemery avatar massrain avatar pandasa123 avatar yuri-scarbaci-lenio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

svg-loaders-react's Issues

Latest version of the package not published in npm packages

https://www.npmjs.com/package/svg-loaders-react states latest publish was 2 months ago,

Latest PR ( which includes default classNames PR) was 4 days ago.

npm install results in a version without default classNames, npm update fails to detect a new minor release.

is this due to a missing bump of the package version in the package.json ?

should the test stage check for a change in the package.json version to ensure this won't happen again?

jest specs complain about "Invalid prop 'svg'"

The CI server is passing, but each spec is logging a warning about an invalid prop type. This appears to be a problem with the test suite set-up, and not a poroblem with the actual
props being passed.

The error is

Warning: Failed prop type: Invalid prop `svg` of type `object` supplied to `SVGInline`, expected `string`.
          in SVGInline

Based on this issue from enzyme
it looks like the issue can be fixed by adding the following moduleNameMapper to the
jest.config.js file:

moduleNameMapper: { 
  '\\.svg$': '<rootDir>/assets/mocks/svgMock.js', 
} 

publish 1.0

Before version 1.0 a few things need to happen:

  • basic specs
  • conversion of class components to functional components
  • CI server setup on Travis CI or equivalent

update readme to reflect API changes

Each component no longer wraps an SVGInline component. Thanks to @pandasa123 , each component renders a regular <svg> tag.

That means that each component should be able to accept any/all SVG tag presentation attributes as props.

The section covering SVGInline options in the readme should be replaced with a section that covers and links to the available presentation attributes on MDN.

It would also be really nice to have a "Usage Examples" section that shows users how to make the most common configuration changes to a component, like changing the color, width or height, etc.

Once the readme is updated to show the new API changes, we can release version 2.0.0 (since these are technically breaking API changes).

add linting via eslint

Adding eslint and the linting package from a major React shop would be great.
Here are some example of eslint configuration packages for AirBnB and Facebook. But I'm open to adopting any major React shops eslint rules.

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.