3.0.0 • Published 4 years ago

mo-display v3.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

mo-display

CircleCI

React Display Library by Team Moda

Contributing Guidelines

  • Write clean code

Getting Started

Making Commits

We are using semantic release for this repo and commitizen to help with formatting commits.

  • Install the commitizen CLI with yarn global add commitizen
  • To run through the CLI: stage your files to commit and run git cz.

Development

Currently this library is exposed in two ways: as a package over NPM and as a static JavaScript file over CDN.

Building

Mojo consumes this package through the CDN — which exposes the library over window.MoDisplay.

yarn build:mojo

Publishing on NPM

Website consumes this package through the actual NPM package; but then declares it as external when it too is built and exposed over the CDN.

Does this make version mismatch bugs likely? Yes. Be careful making breaking changes to anything that is consumed in both repos.

yarn publish

Running locally inside of mojo

  • Start the dev server with yarn mojo:dev
  • Start mojo with these environment variables:
DISPLAY_LIB_CSS_URL=http://localhost:8002/mo-display.css
DISPLAY_LIB_SCRIPT_URL=http://localhost:8002/mo-display.min.js

Storybook

Sometimes it's easier and makes for better code to develop your component in isolation. To help with that we use a tool called storybook.

To create a new story, add a file to the stories/ directory with a *.stories.js extension.

To run storybook you can use yarn start or yarn storybook. Then you can view the storybook at http://localhost:9001

Useful URLs

Production

https://assets10.modaoperandi.com/assets/display-lib/mo-display-production.min.js https://assets10.modaoperandi.com/assets/display-lib/mo-display-production.css

Staging

https://assets10.modaoperandi.com/assets/display-lib/mo-display-staging.min.js https://assets10.modaoperandi.com/assets/display-lib/mo-display-staging.css

Master ("Integration")

https://assets10.modaoperandi.com/assets/display-lib/mo-display-master.min.js https://assets10.modaoperandi.com/assets/display-lib/mo-display-master.css

3.0.0

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.11.3

4 years ago

1.11.2

4 years ago

1.11.1

4 years ago

1.11.0

4 years ago

1.10.0

4 years ago

1.9.2

5 years ago

1.9.1

5 years ago

1.9.0

5 years ago

1.8.5

5 years ago

1.8.4

5 years ago

1.8.3

5 years ago

1.8.2

5 years ago

1.8.1

5 years ago

1.8.0

5 years ago

1.7.7

5 years ago

1.7.6

5 years ago

1.7.5

5 years ago

1.7.4

5 years ago

1.7.3

5 years ago

1.7.2

5 years ago

1.7.1

5 years ago

1.7.0

5 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.0

5 years ago

1.4.3

5 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15-beta.2

5 years ago

0.0.15-beta.1

5 years ago

0.0.15-beta.0

5 years ago

0.0.14

5 years ago

0.0.13-beta.6

5 years ago

0.0.13-beta.5

5 years ago

0.0.13-beta.4

5 years ago

0.0.13-beta.3

5 years ago

0.0.13-beta.2

5 years ago

0.0.13-beta

5 years ago

0.0.12

5 years ago

0.0.1-2.beta

5 years ago

0.0.11

5 years ago

0.0.10-beta.12

5 years ago

0.0.10-beta.11

5 years ago

0.0.10-beta.10

5 years ago

0.0.10-beta.9

5 years ago

0.0.10-beta.8

5 years ago

0.0.10-beta.7

5 years ago

0.0.10-beta.6

5 years ago

0.0.10-beta.5

5 years ago

0.0.10-beta.3

5 years ago

0.0.10-beta.2

5 years ago

0.0.10-beta.1

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago