1.0.3 • Published 2 years ago

duadua v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

duadua

Introduce

duadua It is a scaffold that can quickly create react UI component library

Command

1.global installation duadua scaffold

npm install duadua -g
or
yarn add duadua -g

2.create project

implement

duadua

enter project name

? Your project name -> react-ui

select CSS preprocessor

? Select css preprocessor -> less

3.install dependencies

cd react-ui
npm install 或 yarn

Participate in development

dev

Run the local development environment.

npm run dev or yarn dev

When running the dev command, Moli cli passes vitehttps://github.com/vitejs/vite )Start a local server to preview documents and samples during development.

build

Build the component library.

npm run build or yarn build

Running the build command will generate component code that can be used in the production environment in the eslib and dist directories.

When publishing NPM, please add the following configuration to package.json, so that the NPM package can be correctly identified:

// package.json
{
  "main": "lib/index.js",
  "module": "es/index.js",
  "types": "es/index.d.ts",
  "typings": "es/index.d.ts",
  "unpkg": "dist/duadua.min.js",
  "jsdelivr": "dist/duadua.min.js",
  "style": "dist/duadua.min.css",
  "files": ["dist", "lib", "es"]
}

build-site

npm run build-site or yarn build-site

Build a document site and generate document site code that can be used in the production environment in the dist site directory.