From e729b15d80fa34a77cf8fc0188b1c25d0e9b2b87 Mon Sep 17 00:00:00 2001 From: Akira Sudoh Date: Thu, 9 May 2019 10:10:08 +0900 Subject: [PATCH] chore(build): bring Netlify build back GitHub workflow stuffs we are investigating may solve this problem space. This PR is a stop-gap approach until we make the idea in action - Which is, build deploy artifacts for each and collect them into a single directory so the index.html can refer to. This also enables Netlify build for our React variant. Refs #2406. --- demo/index.html | 1 + package.json | 2 +- packages/components/tools/rollup.config.dev.js | 9 +++++++++ packages/react/package.json | 3 ++- 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/demo/index.html b/demo/index.html index 87c837229288..c0133d8fb9d7 100644 --- a/demo/index.html +++ b/demo/index.html @@ -22,5 +22,6 @@ Components + React diff --git a/package.json b/package.json index cbe52cd11e8f..3c333cce2cde 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "format": "prettier --write '**/*.{js,md,scss,ts}' '!**/{build,es,lib,storybook,ts,umd,components}/**'", "format:diff": "prettier --list-different '**/*.{js,md,scss,ts}' '!**/{build,es,lib,storybook,ts,umd,components}/**'", "format:staged": "prettier --write", - "gather-deploy-files": "yarn workspaces run gather-deploy-files", + "gather-deploy-files": "yarn workspace carbon-components gather-deploy-files && yarn workspace carbon-components-react gather-deploy-files", "lint:styles": "stylelint \"**/*.{css,scss}\" --config ./packages/stylelint-config-elements", "sync": "node tasks/sync.js", "test": "jest", diff --git a/packages/components/tools/rollup.config.dev.js b/packages/components/tools/rollup.config.dev.js index b09713149e7e..5d94dc5bd9fe 100644 --- a/packages/components/tools/rollup.config.dev.js +++ b/packages/components/tools/rollup.config.dev.js @@ -42,6 +42,15 @@ module.exports = { 'react/index.js': ['Children', 'Component', 'PureComponent', 'Fragment', 'PropTypes', 'createElement', 'isValidElement'], 'react-dom/index.js': ['render'], 'react-is/index.js': ['isForwardRef'], + 'downshift/node_modules/react/index.js': [ + 'Children', + 'Component', + 'PureComponent', + 'Fragment', + 'PropTypes', + 'createElement', + 'isValidElement', + ], }, }), babel({ diff --git a/packages/react/package.json b/packages/react/package.json index d818934f73a0..752ceef3788e 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -8,11 +8,12 @@ "sideEffects": false, "scripts": { "build": "yarn clean && node scripts/build.js", - "build-storybook": "build-storybook", + "build-storybook": "build-storybook -o ../../demo/react", "ci-check": "yarn prettier:diff && yarn lint && yarn test --runInBand && yarn test-ssr", "clean": "rimraf es lib umd storybook-static", "contributors:add": "all-contributors add", "contributors:generate": "all-contributors generate", + "gather-deploy-files": "yarn build-storybook", "lint": "eslint src", "lint:staged": "eslint", "prepublish": "yarn build",