jasminabasurita / react-line-overflow Goto Github PK
View Code? Open in Web Editor NEWA multi-line clamping component for react
License: ISC License
A multi-line clamping component for react
License: ISC License
When a user passes a non-hex value to background
or passes a non-string type to ellipsis
a type error should be thrown
IMO, ramda at XYZ version is a hefty dependency to add to a library. I would recommend creating your own helper functions that encapsulate this functionality.
If that's not reasonable, I recommend either including the packages individually or making use of https://www.npmjs.com/package/babel-plugin-transform-imports in order to not include all of ramda here.
But option #1 (own helper functions) is still the recommended one here.
The component should:
I've learned the hard way that this should be done from the start.
jest
enzyme
enzyme-adapter-react-16
enzyme-to-json
eslint-plugin-jest
"test": "jest",
"coverage": "yarn run test -- --coverage --no-cache",
"jest": {
"collectCoverageFrom": [
"<rootDir>/src/**/*.{js,jsx}"
],
}
A user should be able to pass a flag to have the component refactor on window resize
Consider using $ yarn version
when making updates.
https://yarnpkg.com/lang/en/docs/cli/version/
The Flow:
$ git checkout master && git pull
$ yarn version
(follow instructions)$ git push origin master
$ npm publish
You can set the project to have a github page and have it read from the docs/
folder (check out project settings). Example: https://github.com/rpearce/react-medium-image-zoom/tree/master/docs and then the outputted page is at https://rpearce.github.io/react-medium-image-zoom/
No need to commit the build to github โ this is "compiled" code output that probably doesn't need to live here
AUTHORS
file (https://docs.npmjs.com/files/package.json#default-values; example: https://github.com/rpearce/react-medium-image-zoom/blob/master/AUTHORS)CHANGELOG.md
and update from the very startAPI.md
file (or equivalent) from the README.md
where you describe usageCODE_OF_CONDUCT.md
to the packageeslint
CONTRIBUTING.md
file that specifies everything to know about contributing and link to this from READMEpostcss-easing-gradients
is unused.
react-line-overflow/postcss.config.js
Line 7 in 9cddc1d
if text takes up less than what would be considered overflow in height the containing box still takes up the full height
When lines are less than the max num lines the component should only take up as much space as the text
Probably just needs to be switched from height
to max-height
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.