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

smaller-shortcut-help-info
Nolan Lawson 2019-03-02 14:44:19 -08:00 zatwierdzone przez GitHub
rodzic 380dbbf341
commit 2fc6897ee3
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -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:

Wyświetl plik

@ -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

Wyświetl plik

@ -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: