From b079ab84a5912999b4b2e6bb8bac21cf5848028e Mon Sep 17 00:00:00 2001 From: Chris Vickery Date: Mon, 28 Oct 2019 15:52:01 -0700 Subject: [PATCH] Give netlify better instructions --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cc8520a..3b153af 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,9 @@ }, "scripts": { "start": "PORT=3001 env-cmd .env.development craco start", - "build": "craco build", + "build": "env-cmd .env.production craco build", + "netlify-sass": "node-sass src/index.scss > src/index.css", + "netlify-build": "yarn run netlify-sass && yarn run build", "build:staging": "env-cmd .env.staging craco build", "test": "craco test --env=jsdom", "test-ci": "CI=true craco test --env=jsdom", @@ -100,7 +102,6 @@ "test-puppeteer": "jest -c ./src/__puppeteer__/jest.config.js", "test-all": "yarn run test-ci && yarn run test-puppeteer", "test-puppeteer-build": "JEST_PUPPETEER_CONFIG=jest-puppeteer.build.config.js yarn run test-puppeteer", - "netlify-sass": "node-sass src/index.scss > src/index.css", "sass": "node-sass src/index.scss -o src && node-sass -w src/index.scss -o src", "deploy": "yarn run test-ci && npm run build && yarn run test-puppeteer-build && gh-pages -d build" },