0.3.0 • Published 6 years ago
obby-components v0.3.0
Obby Components
Setup
nvm use 10.12.00
yarn
yarn link
# make sure you have obby lib linked first
yarn link obby-lib
# go to the app
npm link obby-componentsDev
cd src
mkdir <ComponentName>
cd <ComponentName>
touch <ComponentName>.js
touch <component-name>.less
touch stories.js
# export component in src/index.js
yarn run storybookDeploy
yarn build
npm publishDevelopment convetions
- Folder per component
- Components names start with a capital
- Each component is exported seperately in
/src/index.js - We use the
stories.jsthe components folder to build and test it - Include all relevant permutations of a component in its stories file so it is clear what it can do.
- all less variables go in
/styles/variablesand any extra configuration files should go in/styles