name | menu |
---|---|
Start Here |
Getting Started |
Repo: https://github.com/versionone/component-library
Please ensure you have the following installed:
- yarn@^1.3.2
yarn -v
to check - nodejs ^10.0.0
node -v
to check, run multiple versions of node via nvm (windows, OSX/Linux) - git
- VS Code MDX extension (if using VS Code)
- Sublime MDX extension (if using Sublime Text)
Clone the repo and cd
into the repo's directory.
yarn && yarn bootstrap
yarn start
- Navigate to http://localhost:3000
If new to the code base, please fully read the recommended reading either locally or on the deployed site before beginning.
In some cases we need to enhance the component library and receive quick feedback of the changes in a consuming applicaiton like VersionOne or Continuum.
Here is a small snippet that can be added to your ~/.bash_profile
that provides aliases for linking the component library:
DEV_HOME="C:/development"
CORE_DIR="$DEV_HOME/core"
CL_DIR="$DEV_HOME/component-library"
function link() {
cd "$CL_DIR/packages/components"
yarn link
cd "$CORE_DIR/VersionOne.Web"
yarn link "@versionone/components"
cd $CL_DIR
yarn build
cd $CORE_DIR
./gulp watch
}
function buildLink() {
cd $CL_DIR
yarn build
cd $CORE_DIR
./gulp watch
}
alias blink="buildLink"
alias link="link"