ccreator
Node.js CLI for creating react component
Last updated 10 months ago by vandryushkov .
ISC · Original npm · Tarball · package.json
$ cnpm install ccreator 
SYNC missed versions from official npm registry.

CCreator

CLI app for simple and fast create component folder with all necessary files

Get started

Install

npm i -g ccreator or npm i ccreator if you need install package local

Usage

ccreator <componentName> <options> - create component with in componentName folder, using default settings

Options --ct - change component type (function or class) --no-add - no create additional files from ccreator.config.json --jsName - change js file name (component or index) --cssname - change css file name (component or index)

Configure

App can be configured using ccreator.config.json in the root of your project.

Config file contains the following fields:

Name Type Default Description
tmplPath string - path to template files
indexFileName string "index" "index" or "component". index.js or [compoenentName].js
stylesFileName string "component" "styles" or "component". styles.css or [component-name].css
mockFolder string "_mock_" name of folder for mocking data
mockFileName string "mock" name of mocking data file
mockFileExtension string "json" extension of mocking data file

Current Tags

  • 1.4.2-beta.14                                ...           dev (a year ago)
  • 2.0.2                                ...           latest (10 months ago)

50 Versions

  • 2.0.2                                ...           10 months ago
  • 2.0.1-beta.3                                ...           10 months ago
  • 2.0.1-beta.2                                ...           10 months ago
  • 2.0.1-beta.1                                ...           10 months ago
  • 2.0.1                                ...           10 months ago
  • 2.0.0                                ...           a year ago
  • 1.4.4-beta.1                                ...           a year ago
  • 1.4.4                                ...           a year ago
  • 1.4.3                                ...           a year ago
  • 1.4.2-beta.17                                ...           a year ago
  • 1.4.2-beta.16                                ...           a year ago
  • 1.4.2-beta.15                                ...           a year ago
  • 1.4.2-beta.14                                ...           a year ago
  • 1.4.2-beta.13                                ...           a year ago
  • 1.4.2-beta.12                                ...           a year ago
  • 1.4.2-beta.11                                ...           a year ago
  • 1.4.2-beta.10                                ...           a year ago
  • 1.4.2-beta.9                                ...           a year ago
  • 1.4.2-beta.8                                ...           a year ago
  • 1.4.2-beta.7                                ...           a year ago
  • 1.4.2-beta.6                                ...           a year ago
  • 1.4.2-beta.5                                ...           a year ago
  • 1.4.2-beta.4                                ...           a year ago
  • 1.4.2-beta.3                                ...           a year ago
  • 1.4.2-beta.2                                ...           a year ago
  • 1.4.2-beta.1                                ...           a year ago
  • 1.4.1                                ...           a year ago
  • 1.4.0                                ...           a year ago
  • 1.3.4                                ...           a year ago
  • 1.3.3                                ...           a year ago
  • 1.3.2                                ...           a year ago
  • 1.3.1                                ...           a year ago
  • 1.3.0                                ...           a year ago
  • 1.2.5                                ...           a year ago
  • 1.2.4                                ...           a year ago
  • 1.2.3                                ...           a year ago
  • 1.2.2                                ...           a year ago
  • 1.2.1                                ...           a year ago
  • 1.2.0                                ...           a year ago
  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (17)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |