@dollarshaveclub/react-runtime
v1.1.0
Published
[](https://circleci.com/gh/dollarshaveclub/react-runtime/tree/master) [.
This differs from create-react-app in that it does not scaffold the application for you – web standard does that for you.
Commands
dsc-react-start
Starts the dev server.
This runs your server on localhost:<port> and the webpack dev server on localhost:<port + 1>.
dsc-react-build
Builds the production version of the react app.
dsc-react-test
The test types are:
server- runs the server-specific tests, i.e. hitting all the API routes.- This runs all tests that match
server/**/__tests__/*.js
- This runs all tests that match
jsdom- runs all the react tests in a jsdom environment.- This runs all tests that match
src/**/__tests__/*.js
- This runs all tests that match
Not currently used:
isomorphic(not needed because we do not server-side render) - runs all the react tests in a node.js environment. This should guarantee that server-side rendering works.- This runs all tests that match
src/**/__tests__/isomorphic/*.js
- This runs all tests that match
Configuration
package.config.dollarshaveclub
prefix- how assets are served, defaulting to/<package.name>/. For example,face-webassets are served from/face-web/.port- default part the server runs on. Keep this unique across all our apps so you can run multiple apps locally at once.
