0.1.1 • Published 5 years ago

generator-cow v0.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

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

CommandDescription
npm run startRun the development server.
npm run cleanCleans out old dist files.
npm run buildCreate a production build.
npm run fmtFormat 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"