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
## Installing
To install with dev dependencies, run:
yarn
## Dev server
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
&& npm i yarn -g \
# Install Pinafore
&& yarn --pure-lockfile \
&& yarn --production --pure-lockfile \
&& yarn build \
&& rm -rf ./src \
# 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:
yarn --pure-lockfile
yarn --production --pure-lockfile
Then build: