perf: reduce install size using yarn --production (#1066)

This commit is contained in:
Nolan Lawson 2019-03-02 14:44:19 -08:00 committed by GitHub
parent 380dbbf341
commit 2fc6897ee3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View file

@ -1,5 +1,11 @@
# Contributing to Pinafore # Contributing to Pinafore
## Installing
To install with dev dependencies, run:
yarn
## Dev server ## Dev server
To run a dev server with hot reloading: To run a dev server with hot reloading:

View file

@ -12,7 +12,7 @@ RUN apk add --update --no-cache --virtual build-dependencies git python build-ba
# Install yarn # Install yarn
&& npm i yarn -g \ && npm i yarn -g \
# Install Pinafore # Install Pinafore
&& yarn --pure-lockfile \ && yarn --production --pure-lockfile \
&& yarn build \ && yarn build \
&& rm -rf ./src \ && rm -rf ./src \
# Cleanup # Cleanup

View file

@ -56,7 +56,7 @@ Pinafore requires [Node.js](https://nodejs.org/en/) v8+ and [Yarn](https://yarnp
To build Pinafore for production, first install dependencies: To build Pinafore for production, first install dependencies:
yarn --pure-lockfile yarn --production --pure-lockfile
Then build: Then build: