This is a template for building REI components using @vue/cli
with the legacy init command.
$ npm install -g @vue/cli @vue/cli-init
$ vue init rei/component your-component-name
$ cd your-component-name
$ npm install
$ npm run dev
options | description |
---|---|
name |
Component name - write in kebab-case, used throughout project, so choose wisely! |
description |
Component description |
author |
Your name and email address |
- An example component is optionally auto-generated with Cedar component examples and example Cedar Token usage.
- A local development environment for building and testing props and styles from external components will be setup.
-
npm run dev
:@rei/febs
runs the dev server and environment -
npm run build
: buildES Modules
andCommonJS
export files withrollup
.
- Install vue-cli:
npm install -g @vue/cli @vue/cli-init
- Make changes inside
/template
and push the branch to GitHub - Run
vue init rei/component#NAME-OF-YOUR-BRANCH-HERE some-test-project
, then inspect the generated project.