Rambler UI Playground creator
npm install --save-dev rambler-ui-playground
Configure playground by creating .playground.json
file in root of the repository:
{
"title": "Rambler UI",
"libName": "rambler-ui",
"branch": "master",
"repo": "git@gitlab.rambler.ru:rambler-ui/rambler-ui",
"repoLink": "https://gitlab.rambler.ru/rambler-ui/rambler-ui/",
"pathPrefix": "/rambler-ui"
}
You also can create more complex configuration to setup playground:
.playground.json
.playground.js
.playground/index.js
Playground expose cli commands to simplify demo creation:
-
playground server
- run webpack dev server -
playground build
- compile latest demo version -
playground pages
- build and publish multi-version demo
Clone this repository to your local device and install deps:
git clone git@gitlab.rambler.ru:rambler-ui/playground.git
cd playground
npm install
We use npm
scripts to run following tasks:
-
npm run dev
- run example playground -
npm test
- run tests -
npm run eslint
- lint code style -
npm version <version>
- bump the package version and publish in CI