0.3.0 • Published 4 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-components
Dev
cd src
mkdir <ComponentName>
cd <ComponentName>
touch <ComponentName>.js
touch <component-name>.less
touch stories.js
# export component in src/index.js
yarn run storybook
Deploy
yarn build
npm publish
Development convetions
- Folder per component
- Components names start with a capital
- Each component is exported seperately in
/src/index.js
- We use the
stories.js
the 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/variables
and any extra configuration files should go in/styles