From 5f626495fd95ca44b76a3317877497edd72c418c Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Wed, 7 Mar 2018 16:05:13 +0100 Subject: Add command to deploy react-docs example --- packages/react-docs/package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'packages/react-docs') diff --git a/packages/react-docs/package.json b/packages/react-docs/package.json index e38aef2e5..16f0e348e 100644 --- a/packages/react-docs/package.json +++ b/packages/react-docs/package.json @@ -7,9 +7,11 @@ "scripts": { "lint": "tslint --project . 'src/ts/**/*.ts' 'src/ts/**/*.tsx'", "build": "tsc", + "build:example": "NODE_ENV=production webpack; exit 0;", "build:watch": "tsc -w", "clean": "shx rm -rf lib", - "dev": "webpack-dev-server --open" + "dev": "webpack-dev-server --open", + "deploy_example": "npm run build:example; aws s3 sync ./example/public/. s3://react-docs-example --profile 0xproject --region us-east-1 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers" }, "author": "Fabio Berger", "license": "MIT", -- cgit v1.2.3