0.1.25 • Published 7 years ago

snake-eyes v0.1.25

Weekly downloads
3
License
ISC
Repository
-
Last release
7 years ago

snake-eyes

Snake eyes (also fangs, scales, bones, and other relevant parts).

Standard interface components and styling for CoBrain web apps.

Demo (storybook)

Run:

npm run storybook

It will open server on 9001 port where you can see basic examples of components. Stories in the storybook are work-in-progress.

Using components

if your build system supports jsx as well as handful of other common babel transformations from node_modules (such is the case with create-react-app v2), you may use components from source.

import { Icon } from 'snake-eyes/components';
// or
import Icon from 'snake-eyes/components/Icon';

Otherwise:

import { Icon } from 'snake-eyes/dist/components';
// or
import { Icon } from 'snake-eyes';

Using styles

if your build system supports CSS Modules from node_modules (such is the case with create-react-app v2), you may use styleguide classes from source.

import inputStyles from 'snake-eyes/styleguide/icons.module.css';

Otherwise, use class mappings generated in dist folder:

import inputStyles from 'snake-eyes/styleguide/icons.module.css';
// It's actually `icons.module.css.js`

Development

First of all, as customary, install all dependencies:

npm i

TBD dev server

Build frontend artifacts into ./dist directory:

npm run build

Testing

Test cases: none so far.

Deployment

TBD

0.1.25

7 years ago

0.1.24

7 years ago

0.1.23

7 years ago

0.1.22

7 years ago

0.1.21

7 years ago

0.1.20

7 years ago

0.1.19

7 years ago

0.1.18

7 years ago

0.1.17

7 years ago

0.1.16

7 years ago

0.1.15

7 years ago

0.1.14

7 years ago

0.1.13

7 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago