From 2fc6897ee3d2ac60b076288684bad7d0ff615be8 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 2 Mar 2019 14:44:19 -0800 Subject: [PATCH] perf: reduce install size using yarn --production (#1066) --- CONTRIBUTING.md | 6 ++++++ Dockerfile | 2 +- README.md | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7d64e73f..1c8dcbfd 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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: diff --git a/Dockerfile b/Dockerfile index 1188f852..eb3d0246 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/README.md b/README.md index 34c8331f..9af93965 100644 --- a/README.md +++ b/README.md @@ -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: