Skip to content

Commit

Permalink
chore(build): bring Netlify build back
Browse files Browse the repository at this point in the history
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 carbon-design-system#2406.
  • Loading branch information
asudoh committed May 9, 2019
1 parent 4ad4181 commit 6408fe7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
</head>
<body>
<a class="bx--btn bx--btn--primary" href="./components/">Components</a>
<a class="bx--btn bx--btn--primary" href="./react/">React</a>
</body>
</html>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 9 additions & 0 deletions packages/components/tools/rollup.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
3 changes: 2 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6408fe7

Please sign in to comment.