Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 2.08 KB

File metadata and controls

50 lines (33 loc) · 2.08 KB

OpusCapita showroom template

Preconfigured to OpusCapita defaults react project template

Installation

npm install -g @opuscapita/react-showroom-template

Global commands

  • showroom init - create project skeleton in empty folder
  • showroom add - add new react component. Includes styles, unit-test, showroom specific files

Template commands

  • npm start - start demopage
  • npm run lint - run code lint
  • npm run publish-release - patch package version and publish release

Stuff:

Build and deploy

Demo and documentation

Testing

  • mocha - feature-rich JavaScript test framework
  • chai - BDD / TDD assertion library
  • enzyme - testing utility for React that makes it easier to assert, manipulate, and traverse your React Components' output
  • chai-enzyme - chai.js assertions for enzyme
  • sinon - stubs and mocks

Styles

It also includes OpusCapita bootstrap default styles. This stuff is deprecated and will be removed in future.