generator-cow
A Yeoman generator for creating component-based websites.
Last updated a year ago by eth-p .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install generator-cow 
SYNC missed versions from official npm registry.

COW Yeoman Generator

npm version CircleCI

A Yeoman generator for creating component-based websites.

Features

  • React
  • TypeScript (Optional)
  • Sass/SCSS (Optional)
  • CSS Modules
  • JSX/TSX
  • Prettier (Optional)

Usage

npm install -g yo
yo cow

Scripts

Command Description
npm run start Run the development server.
npm run clean Cleans out old dist files.
npm run build Create a production build.
npm run fmt Format the source code.

Structure

- webpack                     -- Configuration files generated by generator-cow.
- webpack.config.json         -- Your webpack configuration.

- component
  |- MyComponent
     |- component.{tsx,jsx}   -- The component source code.
     |- style.{scss,sass,css} -- The component styles.
     
- composition
  |- MainPage
     |- composition.{tsx,jsx} -- The composition source code.
     |- style.{scss,sass,css} -- The composition styles.
     
- static
  |- ...                      -- Static files are directly copied over.
  
- src
  |- app.js                   -- The application entry point.

Imports

import MyComponent from '&MyComponent';      // Imports "MyComponent"
import MyComposition from '&&MyComposition'; // Imports "MyComposition"

Current Tags

  • 0.1.1                                ...           latest (a year ago)

2 Versions

  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (12)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |