Skip to content
This repository has been archived by the owner on Jun 3, 2019. It is now read-only.

Latest commit

 

History

History
52 lines (29 loc) · 2 KB

PKG_SCRIPTS.md

File metadata and controls

52 lines (29 loc) · 2 KB

Package Scripts

npm run analyze:client

Creates an webpack-bundle-analyze session against the production build of the client bundle.

npm run analyze:server

Creates an webpack-bundle-analyze session against the production build of the server bundle.

npm run build

Builds the client and server bundles, with the output being optimized.

npm run build:dev

Builds the client and server bundles, with the output including development related code.

npm run clean

Deletes any build output that would have originated from the other commands.

npm run deploy

Deploys your application to now. If you haven't heard of these guys, please check them out. They allow you to hit the ground running! I've included them within this repo as it requires almost zero configuration to allow your project to be deployed to their servers.

npm run develop

Starts a development server for both the client and server bundles. We use react-hot-loader v3 to power the hot reloading of the client bundle, whilst a filesystem watch is implemented to reload the server bundle when any changes have occurred.

npm run lint

Executes eslint against the project. Alternatively you could look to install the eslint-loader and integrate it into the webpack bundle process.

npm run start

Executes the server. It expects you to have already built the bundles using the npm run build command.

npm run test

Runs the jest tests.

npm run test:coverage

Runs the jest tests and generates a coverage report. I recommend you look at codecov.io to host your coverage reports.