项目作者: bsjaramillo

项目描述 :
Atomic-Design-React Boilerplate
高级语言: JavaScript
项目地址: git://github.com/bsjaramillo/atomic-design-react-boilerplate.git
创建时间: 2020-10-07T19:37:12Z
项目社区:https://github.com/bsjaramillo/atomic-design-react-boilerplate

开源协议:MIT License

下载


Atomic-Design-React Boilerplate

cad-br is a cli tool to generate application structure with javascript or typescript.

The following guide is followed for creation of application strucuture.

Installation

Use the package manager npm to install cad-br

  1. npm install @bsjaramillo/cad-br

Usage

Create a new project.

  1. cad-br name-of-project

Next will you answers the prompts.

  1. Choice a template (JS or TS)
  2. Init a git repository (y/N)

The structure created by this command is the followed:

  1. name-of-project
  2. |
  3. |__public
  4. |__src
  5. |__.babelrc
  6. |__package.json
  7. |__package-lock.json
  8. |__webpack.config.js

This command will create a project without install npm dependencies.
You will install manually npm dependencies.

The folder src will contain the structure for the atomic design with an example based in the boilerplate react-atomic-structure

Modifiers

For initialize automatically git repository

  1. > cad-br name-of-project --git
  2. or > cad-br name-of-project -g

For install automatically npm dependencies

  1. > cad-br name-of-project --install
  2. or > cad-br name-of-project -i

Optionally you can create a new project only with the command:

  1. > cad-br

Next will you answers the prompts.

  1. Choice a template (JS or TS)
  2. Init a git repository (y/N)
  3. Input the project name

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT