Tsdx: Add React guide

Created on 26 Jan 2019  路  9Comments  路  Source: formium/tsdx

feature

Most helpful comment

Yeah that could work. I kinda prefer a prompt here cuz I can never remember the flags

All 9 comments

i can volunteer. what should be covered?

Adding types, dealing with type resolutions, using yarn link, setting up an example, adding 鈥攅nv=jsdom to the test command.

Let me come up with an outline this morning.

## Usage with React
### Adding React
### Yarn Resolutions
### Testing React
#### Using Jest
#### Adding Storybook
#### Adding Cypress.io
### Creating a React Playground
### Publishing

any interest in adding a npx tsdx create mylib --react flag?

for DX inspiration - i have previously been using https://github.com/transitive-bullshit/create-react-library

Yeah that could work. I kinda prefer a prompt here cuz I can never remember the flags

@sw-yx

# TSDX React User Guide
Congrats! You just saved yourself hours of work by bootstrapping this project with TSDX. Let鈥檚 get you oriented with what鈥檚 here and how to use it.

> This TSDX setup is meant for developing React components (not apps!) that can be published to NPM. If you鈥檙e looking to build an app, you should use create-react-app, razzle, next, or 

> If you鈥檙e new to TypeScript and React, checkout this handy cheatsheet

## Commands
## Configuration
### Jest
#### Setup Files
#### React Testing Library
### Rollup
### TypeScript
## Continuous Integration
### Travis
### Circle
## Optimizations
### Lodash
### Dev/Prod builds
### Tree shaking
## Module Formats
## Dependencies and Resolutions
## Using the Playground
## Named Exports
## Including Styles
## Publishing to NPM
## Usage with Lerna

woop! ok

Was this page helpful?
0 / 5 - 0 ratings