iced-react-compgen

1.0.1 • Public • Published

Installation

> npm i -g iced-react-compgen

Usage

> iced-react-compgen

Component Generation

The command will launch an interactive prompt which will ask you for the name of the component and the directory to write the file to (relative to the current path). The filename will be the name of the component with an 'iced' file extension. Session example:

user@sys:~/apps/my-app$ Enter name of component: MyComponent  
user@sys:~/apps/my-app$ Enter directory name: src/
Component MyComponent.iced generated in /home/user/my-app/src/MyComponent.iced
user@sys:~/apps/my-app$ cat src/MyComponent.iced
React = require 'react'

class MyComponent extends React.Component
  constructor: (props)->
    super props

  render: ->
    <div>
    </div>

module.exports = MyComponent

Readme

Keywords

Package Sidebar

Install

npm i iced-react-compgen

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • dannynpmjs