generator-cow
v0.1.1
Published
A Yeoman generator for creating component-based websites.
Downloads
5
Readme
COW Yeoman Generator
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"