1.0.22 • Published 7 years ago

create-monitor-app v1.0.22

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

Monitor App Generator

Installation

Using npm:

$ sudo npm install create-monitor-app -g

Creating a new app

Step 1 :

$ create-monitor-app <AppName>

Step 2 :

$ Creating a new monitor app...
prompt: How many components you want to create: 2 # Type number of components you wnat to make

Step 3 :

$ Creating a new monitor app...
prompt: How many components you want to create:  2
prompt: Please enter component name 1: SampleComponent # Type component name 1
prompt: Please enter component name 2: ChildComponent # Type component name 2

Step 4 :

Select the component you want to put as a root component

$ ? Which is your root component? (Use arrow keys)
❯ SampleComponent
  ChildComponent

The above command will create directory structure like this

├── AppName
│   ├── components
│   │   ├── SampleComponent
│   │   ├───── SampleComponent.jsx
│   │   ├───── props.js
│   │   ├───── events.js
│   │   ├───── test.js
│   │   ├── ChildComponent
│   │   ├───── ChildComponent.jsx
│   │   ├───── props.js
│   │   ├───── events.js
│   │   ├───── test.js
│   ├── server
│   │   ├── AppName.jsx
│   ├── webpack_bundle
│   │   ├── Container.jsx
│   │   ├── entry.js
│   ├── index.html
└ ──── wepack.config.js

Creating a new component

Step 1 :

Adding -cp will create a component

$ create-monitor-app <ComponentName> -cp

The above command will create directory structure like this

├── ComponentName
│   │── ComponentName.jsx
│   │── props.js
│   │── events.js
└──────test.js
1.0.22

7 years ago

1.0.21

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago