README
hilfling-gui
This project is Fotogjenens own custom gui library. It is exported as an NPM library, and can be downloaded and used in other frontend projects.
This project uses React Typescript to write components and Storybook as component documentation.
Important file extenstion naming
- css modules MUST be named
<component-name>.module.css
- The projects src/ folder CANNOT contain ANY .js files
Local setup
- Clone reposetory
npm install
npm run storybook
Useage in other projects
npm i hilfling-gui
- import as
import {Component} from 'hilfling-gui/lib'
Use as any other npm component library
Publish NPM package
- Write your new component - figure out how from our wiki
- Export the component in the index.ts file inside the src folder
npm login
med fotogjengen-web brukernpm version patch
ellernpm version <version number>
, sistnevnte for breaking changesnpm publish