@vev/cli
v0.4.4
Published
With the Vev command-line interface (CLI) you can develop custom component [React components](https://reactjs.org/) for the [Vev design editor](https://vev.design).
Downloads
536
Readme
Vev CLI
With the Vev command-line interface (CLI) you can develop custom component React components for the Vev design editor.
Getting started
Install the CLI.
npm install -g @vev/cliFirst you need a Vev user, then you can authorize the CLI.
vev loginIn your React project run your root directory.
vev initThen add the @vev/react package to your project.
npm i @vev/react --saveNow you are ready to build your components.
import React from 'react';
import { registerVevComponent } from '@vev/react';
const MyComponent = () => {
return <div>Hello, VeV</div>;
};
registerVevComponent(MyComponent, {
name: 'My awesome component',
});
export default MyComponent;Now you are ready to run your component.
vev startNow your component is available Vev design editor as long as the CLI is running.
