1.1.18 • Published 6 years ago

zinnia v1.1.18

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

Live Style Guide

Setup

git clone git@github.com:iunullc/zinnia.git
npm install
npm link

move to your local luna-web directory and run:

npm link zinnia

The above npm-link commands simply generate a symlink in your global node_modules pointing at zinnia and added a pointer in your local luna-web node_modules.

Usage

zinnia is included as a dependency to luna-web and is used like any other package. To use a component from zinnia just import it as named import.

import { Foo } from 'zinnia';

Development

New components

New components should be added in /src/components/<COMPONENT_NAME>/ and should have an associated test and styles file.

/lib
|
+--/src
  |
  +--/components
    |
    +--/<ATOMIC_CATEGORY>   i.e. /molecules
      |
      +--/<ATOMIC_CATEGORY_GROUPING>   i.e. /forms
        |
        +--/<SOME_COMPONENT>   i.e. /search
          |
          +--index.jsx
          |
          +--test.js
          |
          +--styles.scss

Dependencies

Use the -D flag when installing packages/dependencies so they will be added as devDependencies. We do not want to have anything saved to the dependencies block in the package.json as that would duplicate the dep in the app using this library.

If the package you are adding is be used for build tools, like webpack, or is only used in the demo app, like react-syntax-highlighter, then you are done. However if the dep is a requirement for one of the exported components of the lib then that dep also needs to be included in peerDependencies in the package.json to trigger warnings in Luna Web should that dep not already be included.

Building

To see live changes you will need to rebuild after making changes and restart the server:

npm run build
npm start

Deployment

Live Demo

Before you push your changes to github, make sure to build the demo as github pages pulls from /docs/bundle.js.

npm run build:demo

npm Package

Prior to publishing changes to zinnia you will want to makesure to update the version inside of the package.json file according to semver. Once the version has been updated, run the following commands.

npm run build
npm publish

We will need to make sure we have the proper semantic versioning in luna-web.

To-Dos

1.1.18

6 years ago

1.1.16

7 years ago

1.1.15

7 years ago

1.1.14

7 years ago

1.1.12

7 years ago

1.1.11

7 years ago

1.1.10

7 years ago

1.1.9

7 years ago

1.1.8

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago