npm.io
1.1.0-beta-1.0.0 • Published 4 years agoCLI

nuwa-boot

Licence
ISC
Version
1.1.0-beta-1.0.0
Deps
35
Size
28 kB
Vulns
4
Weekly
0

Welcome to Nuwa - 女娲

Version Version Version License: ISC

Homepage

A enterprise react micro app bootstrap framework.

尝试打造一款企业级的React轻量前端微服务脚手架

Requirements

Please ensure your have the environments that like following requirements, to improve your effect when using Nuwa.

  • node >= 12.22.1
  • npm >= 6.14.12

Installation

npm install nuwa-boot -g

You'd best to install Nuwa in global when developing mode, it is easy to build all your apps including sub apps.

npm install nuwa-boot --save-dev

When need to build app for production , to install Nuwa to your local denpendency.

Usage

Create a nuwa.config.js in your project root directory, it can configuature some awesome features when your working.

// nuwa.config.js

modules.exports = {
  title: 'First nuwa app',
  port: 4000,
}

And then run command nuwa-root -c ./nuwa.config.js, the app will start at http://localhost:4000 by default.

Configuration

Nuwa-boot Cli
Command Full Command Description
-c --config Start with a nuwa config
Nuwa Config API
Name Default Description
Port 4000 Webpack dev server port

Author

jyjin 金建业

Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ️ if this project helped you!