/lerna-react-app-uilib-war-starter

Minimalistic application starter which uses ui library in Lerna monorepo, builded in war

Primary LanguageJavaScriptMIT LicenseMIT

SOFTSPIDERS

lerna-react-app-uilib-war-starter

React application starter with ui library in Lerna monorepo and war building


Feature tags

  • app
  • build
  • lerna
  • maven
  • react
  • spa
  • starter
  • template
  • uilib
  • war

Direct ancestors

React application starter with ui library in Lerna monorepo


Inspired by

Antony Budianto's react-lib-starter

Authors

Alexander Lapygin <alexanderlapygin@gmail.com>


Install

  1. Clone this repo
  2. Install dependencies
# yarn is fine too
npm i
  1. Run bootstrap
npm run bootstrap

This will bootstrap and link between app and lib 4. Now, it's ready!

Dev flow

  1. Run start
npm run start:dev:lib
npm run start:dev:app
  1. Try changing the lib, it should reflect the changes directly
  2. Now, you can start developing your React library!

Build war

Being at the root directory, execute

npm run build:war

After successful build the result will be the packages/example-app/target/example-app-war.war file.


License

Licensed under the MIT license.