Bento
one lib to rule them all: components, data management, build scripts, example app template.
Detailed documentatin is temporarily hosted here.
Usage
Starting a new project from scratch
Install the create-bento-app
command globally:
yarn global add @buildo/create-bento-app
Create a new app:
create-bento-app my-app
Start development:
cd my-app
yarn start
Adding Bento to an existing project
yarn add @buildo/bento
Components
Bento exports a complete set of basic React components from @buildo/bento/components
. You can import a component like so:
import Badge from '@buildo/bento/components/Badge'
Read more about how to import and customize a Bento components in the detailed documentation.
Go to http://react-components.buildo.io/ to read docs and see a live demo for every React components exported by Bento.
Utils
MobileDetect
Import:
import MobileDetect from '@buildo/bento/utils/mobileDetect';
const md = new MobileDetect()
Please refer to MobileDetect
GitHub repository for documentation and examples.
LocalDate
Import:
import LocalDate from '@buildo/bento/utils/localDate'
Please refer to local-date
GitHub repository for documentation and examples.
Theme
normalize-css
CSS normalizer based on buildo-normalize-css
Usage:
import 'bento/theme/normalize-css'
NOTE: If your app is fullscreen, you need to import the fullscreenApp
module too:
import 'bento/theme/normalize-css'
import 'bento/theme/normalize-css/fullscreenApp'
Bitbucket sync procedure
Assuming two folders inside the same directory, bento
(this repo) and bento-bitbucket
(bitbucket ~mirror)