UNPKG

1.69 kBMarkdownView Raw
1![shibori-hero](https://cloud.githubusercontent.com/assets/51578/22348697/b9929036-e3da-11e6-9863-10c734b5cf2b.png)
2
3[Shibori](https://en.wikipedia.org/wiki/Shibori) is an HTML/CSS library used across Heroku marketing and web properties such as WWW and Elements Marketplace. View the library at [shibori.herokuapp.com](http://shibori.herokuapp.com)
4
5## Local setup
6Run:
7```
8script/bootstrap
9```
10
11To watch for files:
12```
13yarn serve
14```
15
16Before committing changes, compile the dist:
17```
18yarn dist
19```
20
21## Installation in consumer app
22`yarn add shibori` or `npm install shibori`
23
24see also: [the operations doc section on Rails](/docs/operations.md#npm-and-rails)
25
26
27## Development alongside Rails
28The Rails app must be [npm-able](/docs/operations.md#npm-and-rails). You can
29link to the local repo of shibori using the file designation in your
30`package.json`, e.g. `"shibori": "file:../shibori"`.
31
32see also: [the operations doc](/docs/operations.md)
33
34
35## Pattern lab docs
36Shibori uses the [node version](https://github.com/pattern-lab/patternlab-node)
37of [Pattern Lab](http://patternlab.io/). You can find documentation in this
38repo's [`docs`](/docs) directory.
39
40
41## Release new version
42
43* note there is more than one way to do this, just please make sure tags are
44 created in git and pushed to GitHub
45
46- Run `npm version <type>` where type is `major` (X.0.0), `minor` (0.X.0), or `patch` (0.0.X).
47- Run `npm publish` (you must be an collaborator of [Shibori on npmjs.com](https://www.npmjs.com/package/shibori)
48- Run `git push --follow-tags`
49
50You can then document the release [via the tags list](https://github.com/heroku/shibori/tags).
51
52## License
53Copyright Heroku 2017. All rights reserved.