vitreum-cli

1.4.2 • Public • Published

vitreum-cli

Global commandline tools for Vitreum projects

install

npm install --global vitreum-cli

commands

jsx [-s || --smart] [-p || --pure] [componentName]

Creates a folder at your location of the component name, and a .jsx and .less file populated to be a functioning React component.

If you specify --pure or -p it will instead create a functional/pure component.

If you specify --smart or -s it will also create a smart component as well.

vitreum

Bootstraps a Vitreum project at the current location. Requires a package.json to be present. Creates the following:

  • add npm scripts to the package
  • Creates the following project structure.
/myProj
├─ /build/...
├─ /node_modules/...
├─ .eslintrc.js
├─ .gitignore
├─ .gitattributes
├─ app.js
├─ /client
|   ├─ /shared
|   |  └─ /components.js
|   |  └─ /widget/...
|   └─ /main
|      ├─ main.jsx
|      └─ main.less
|      └─ /pages/...
├─ /config
|   ├─ default.json
|   └─ local.json
├─ /scripts
|   ├─ build.script.js
|   ├─ dev.script.js
|   └─ project.js
└─ /server
   ├─ server.js
   ├─ page.template.js
   └─ page.router.js

dev

To work on this, follow the steps.

  1. clone it
  2. run npm link in your project directory.
  3. npm run test

Readme

Keywords

Package Sidebar

Install

npm i vitreum-cli

Weekly Downloads

1

Version

1.4.2

License

MIT

Last publish

Collaborators

  • stolksdorf