2.0.1 • Published 7 years ago

@gigster/module-react-base v2.0.1

Weekly downloads
36
License
UNLICENSED
Repository
-
Last release
7 years ago

react-base

RoleNameEmailSlack
Product OwnerFrances Haugenfrances@gigster.com@frances
MaintainerGeoff Kindergeoff.kinder@gigster.com@geoff
DeveloperMark Miyashitamark.miyashita@gigster.com@mark

Overview

Adds several features on top of the base create-react-app block, namely:

  • Proxy for browser requests to go through the node server.
  • .env support
  • Base .css styling
  • Optional Basic tests to make sure the app is functional

Usage

Specification

NameStatusDescription
generateTeststrue/falseSet to true if you would like generated tests to be created for you for the app.

Dependencies

This module works with the create-react-app block located here.

Examples

There are two examples for this package:

  1. with-tests - This example is generated with generateTests: true so it has the infrastructure as well as generated tests.
  2. without-tests - This example is generated with generateTests: false so it only has the base infrastructure and does not contain tests.

Troubleshooting

Testing

Module tests are defined using a test/scenarios.yaml file. This file defines the set of example gigs that we generate as part of integration testing. To run all tests, run yarn test at the root of this module.

Each scenario is generated in test/scenario/<name> which you can then cd into and run the actual app. For a scenario called default, this is done via:

cd test/scenario/default
yarn install

# Run tests.
yarn test

# Start the app.
yarn start
2.0.1

7 years ago

2.0.0

7 years ago

1.3.4

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.10

7 years ago

1.1.9

7 years ago

1.1.8

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.1.0-alpha.2

7 years ago

1.1.0-alpha.1

7 years ago

1.0.0

8 years ago