Giter Site home page Giter Site logo

softspiders / cra-ts-uilib-storybook-storyshots-lerna Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 1.97 MB

Minimalistic create-react-app in TypeScript based on UI lib with Storybook and Storyshots in Lerna monorepo

License: MIT License

TypeScript 50.20% HTML 30.37% CSS 5.89% JavaScript 13.54%
cra react ss softspider template softspiders ts storybook storyshot test

cra-ts-uilib-storybook-storyshots-lerna's Introduction

SOFTSPIDERS

cra-ts-uilib-storybook-storyshots-lerna

UNDER DEVELOPMENT

CRA and Lerna do not support each other yet, so for now we are waiting with hope.

Minimalistic template for Create-React-App in TypeScript based on UI lib with Storybook and Storyshots in Lerna monorepo

Feature tags

  • jest
  • lerna
  • react
  • starter
  • storybook
  • storyshot
  • template
  • typescript
  • ui

Direct ancestors (also by code)


Requirements


Install

It is worth noting that in order to unify the settings of environment variables, you must have the cross-env package previously installed. See usage in cra-app package.json test script.

Bootstrap

To install all packages dependencies, being in the root directory, run

npm run bootstrap

Run

Start

npm run start

Run Storybook

npm run storybook

Test

To run tests of all packages, being in the root directory, run

npm run test

Test ui library

npm run test:lib

Update storyshots

When testing the user interface library shows storyshot errors (the difference between the new and old storyshots), you can update the old one with the command

npm run update:storyshots

Build uilib bundle

Bundle of uilib library can be obtained executing the command

npm run build:lib

The resulting package is located in the packages/uilib/public/index.js file.

Clean

To clear node_modules in all packages, being in the root directory, run

npm run clean

Authors

Alexander Lapygin

License

Licensed under the MIT license.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.