generator-cow
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

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"

Readme

Keywords

Package Sidebar

Install

npm i generator-cow

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

67.5 kB

Total Files

66

Last publish

Collaborators

  • eth-p