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
|
6 | Run:
|
7 | ```
|
8 | script/bootstrap
|
9 | ```
|
10 |
|
11 | To watch for files:
|
12 | ```
|
13 | yarn serve
|
14 | ```
|
15 |
|
16 | Before committing changes, compile the dist:
|
17 | ```
|
18 | yarn dist
|
19 | ```
|
20 |
|
21 | ## Installation in consumer app
|
22 | `yarn add shibori` or `npm install shibori`
|
23 |
|
24 | see also: [the operations doc section on Rails](/docs/operations.md#npm-and-rails)
|
25 |
|
26 |
|
27 | ## Development alongside Rails
|
28 | The Rails app must be [npm-able](/docs/operations.md#npm-and-rails). You can
|
29 | link to the local repo of shibori using the file designation in your
|
30 | `package.json`, e.g. `"shibori": "file:../shibori"`.
|
31 |
|
32 | see also: [the operations doc](/docs/operations.md)
|
33 |
|
34 |
|
35 | ## Pattern lab docs
|
36 | Shibori uses the [node version](https://github.com/pattern-lab/patternlab-node)
|
37 | of [Pattern Lab](http://patternlab.io/). You can find documentation in this
|
38 | repo'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 |
|
50 | You can then document the release [via the tags list](https://github.com/heroku/shibori/tags).
|
51 |
|
52 | ## License
|
53 | Copyright Heroku 2017. All rights reserved.
|