Skip to content
프로젝트

baoagency/polaris_view_components

GitHub에서 보기

소개

ViewComponents for Polaris Design System

디자인 및 미디어

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
-1
in 7 days
-1
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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

Upgrade

Check out UPGRADING.md for upgrade instructions.

Development

To get started:

  1. Run: bundle install
  2. Run: pnpm install --frozen-lockfile
  3. Run: bin/dev

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

To run tests:

rake

Releases

The library follows semantic versioning. See GitHub Releases for release notes.

To draft a new release you need to run bin/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:

pnpm release

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

Deploy

Before deploying make sure to:

  1. Copy demo/config/master.key from 1Password
  2. Set KAMAL_REGISTRY_PASSWORD in .env

Then run:

kamal deploy

License

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

관련 프로젝트 살펴보기

불러오는 중…