@junto-foundation/junto-elements
TypeScript icon, indicating that this package has built-in type declarations

0.5.5 • Public • Published

Flux Elements

Flux Elements provides front-end developers & engineers a collection of reusable web components to build Flux applications. Adopting the library enables developers to use consistent markup, styles, and behavior in prototype and production work.

📚 Flux Elements documentation is available here

tl;dr

npm install
npm run start

📚 Documentation

Guidelines

  • All components should do one thing, and do that thing well.
  • Don't use Objects or Arrays as props for Web Components. Try to rethink the issue and see if you can make two elements like select and option. Read more about best practises here
  • New functionality should be reviewed by at least one other person before going into Flux Elements.

Contributing

Development

To develop on the project, please first read our guidelines and the contributing section above.

To add a new feature:

  • Create a new branch (git checkout -b feature/branchname)
  • Work on your feature, and commit your changes
  • Update the version number in the package.json file. You can read more about versioning below
  • Create a pull request into the development branch and ask for a review

To modify an existing feature follow the same process, but also remember the versioning system. If there is a breaking change, or if this might impact existing sites using Flux Elements, update the version number. See below for details.

Versioning

Flux Elements uses semantic versioning to make sure once a site starts using it, web components won't suddenly change and break the site. The version number is located in package.json

When a breaking change is added, a new major version is required.

Publishing a new version on NPM

The development branch works as our beta branch, so we can try out new features before we roll them out into production.

To publish a beta version:

  • Checkout to development
  • Bump the package.json for example from 0.6.10-beta.9 to 0.6.10-beta.10
  • Run npm publish --tag beta

master is used as our production branch, so when publishing a new version, make sure you have tested all the new features, and taken into account breaking changes etc.

To publish to production:

  • Checkout to master
  • Bump the package.json for example from 0.6.9 to 0.6.10 depending on the types of changes
  • Run npm publish

🔨 Hosting

The documentation is hosted on Netlify. Each time code is pushed to the master branch, a new build of the documentation will be deployed. Netlify also creates a unique build per pull request so it's easy for other people to review and see the changes live.

Flux Elements is published on NPM and can be installed simply by running npm install --save @junto-foundation/junto-elements. If you want to use a CDN, we reccommend that you use JSDeliver.

Adding icons

🌐 Browser support

📂 Application structure

Found a bug?

  • If you've found a bug, you can create a new issue via github.
  • If you want to fix this issue yourself, do so and then follow the development guide above.

📦 Dependencies

We try to have as few dependencies as possible in Flux Elements. This makes it easier to maintain in the long run, and it makes it more secure as we are not using some unkown third party code in our projects.

  • LitElement - A small web component library
  • Popper - Library for tooltip positioning

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.00undefined
0.5.5171latest

Version History

VersionDownloads (Last 7 Days)Published
0.5.5171
0.4.50
0.4.41
0.4.31
0.4.21
0.4.11
0.4.00
0.3.120
0.3.110
0.3.100
0.3.90
0.3.81
0.3.70
0.3.60
0.3.50
0.3.40
0.3.30
0.3.20
0.3.10
0.3.01
0.2.140
0.2.131
0.2.120
0.2.110
0.2.100
0.2.90
0.2.80
0.2.71
0.2.60
0.2.50
0.2.41
0.2.30
0.2.20
0.2.10
0.2.00
0.1.20
0.1.10
0.1.00
0.0.300
0.0.290
0.0.280
0.0.270
0.0.262
0.0.250
0.0.240
0.0.231
0.0.222
0.0.212
0.0.202
0.0.191
0.0.181
0.0.171
0.0.161
0.0.151
0.0.142
0.0.132
0.0.122
0.0.112
0.0.101
0.0.90
0.0.80
0.0.70
0.0.61
0.0.50
0.0.41
0.0.30

Package Sidebar

Install

npm i @junto-foundation/junto-elements

Weekly Downloads

205

Version

0.5.5

License

ISC

Unpacked Size

558 kB

Total Files

7

Last publish

Collaborators

  • fayeed
  • jdeepee
  • leifriksheim