Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dollarshaveclub/react-runtime

Package Overview
Dependencies
Maintainers
10
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dollarshaveclub/react-runtime

[![CircleCI](https://circleci.com/gh/dollarshaveclub/react-runtime/tree/master.svg?style=svg&circle-token=229425616a3704ff106c86aeb985a75c235d6e60)](https://circleci.com/gh/dollarshaveclub/react-runtime/tree/master) [![codecov](https://codecov.io/gh/dolla

  • 1.1.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
10
Created
Source

@dollarshaveclub/react-runtime

CircleCI codecov Greenkeeper badge

This is our own take on create-react-app. See features here: https://docs.google.com/spreadsheets/d/1hBW0Lc2O4rNzkhfxMyKA4PT6DmN4C-bePMb9KHlXp0g/edit#gid=0

Usage

This package and its commands will be installed in your app when doing web-standard react (OUTDATED). 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
  • jsdom - runs all the react tests in a jsdom environment.
    • This runs all tests that match src/**/__tests__/*.js

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

Configuration

package.config.dollarshaveclub

  • prefix - how assets are served, defaulting to /<package.name>/. For example, face-web assets 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.

FAQs

Package last updated on 31 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc