baoagency / polaris_view_components

ViewComponents for Polaris Design System

Home Page:https://polarisviewcomponents.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Polaris ViewComponents

Polaris ViewComponents is an implementation of the Polaris Design System using ViewComponent.

Polaris ViewComponents

Preview

https://polarisviewcomponents.org

Usage

Render Polaris ViewComponents:

<%= polaris_card(title: "Title") do %>
  <p>Card example</p>
<% end %>

Dependencies

Installation

Add polaris_view_components to your Gemfile:

bundle add polaris_view_components

Run installer:

bin/rails polaris_view_components:install

Development

To get started:

  1. Run: bundle install
  2. Run: yarn install
  3. Run: bin/dev

It will open demo app with component previews on localhost:4000. You can change components and they will be updated on page reload. Component previews located in demo/test/components/previews.

To run tests:

rake

Releases

The library follows semantic versioning. To draft a new release you need to run script/release with a new version number:

bin/release VERSION

Where the VERSION is the version number you want to release. This script will update the version in the gem and push it to GitHub and Rubygems automatically.

To release a new version of npm package update the package.json file with the new version number and run:

npm run release

After that make sure to commit changes in package.json.

License

The gem is available as open source under the terms of the MIT License.

About

ViewComponents for Polaris Design System

https://polarisviewcomponents.org

License:MIT License


Languages

Language:Ruby 61.9%Language:JavaScript 23.1%Language:HTML 12.7%Language:CSS 1.8%Language:Dockerfile 0.4%Language:Shell 0.2%Language:Procfile 0.0%