Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: support spaces in folder names (components package build) #5512

Merged
merged 7 commits into from
Mar 3, 2020

Conversation

janhassel
Copy link
Member

@janhassel janhassel commented Mar 3, 2020

Currently, when the carbon repository is located in a folder with a space like

/Users/john doe/dev/carbon

the build process of the components package would locate all the vendor styles in

/Users/john doe/dev/carbon/packages/components/doe/dev/carbon/packages/components/src/globals/scss/vendor/@carbon

instead of

/Users/john doe/dev/carbon/packages/components/src/globals/scss/vendor/@carbon

Changelog

Changed

  • In /packages/components/tool/copy-vendor-style.sh: wrap uses of $TARGET_DIR and $VENDOR_DIR in quotes.

Testing / Reviewing

  1. Clone carbon repo in a folder with a space (like ~/pr test/carbon)
  2. Inside the carbon repo, cd packages/components
  3. yarn build

Prior to this PR, the vendor styles folder would be located in the structure described above. With the PR, the build output should be placed as expected.

@janhassel janhassel requested a review from a team as a code owner March 3, 2020 12:23
@ghost ghost requested review from asudoh and dakahn March 3, 2020 12:24
@netlify
Copy link

netlify bot commented Mar 3, 2020

Deploy preview for carbon-elements ready!

Built with commit f010037

https://deploy-preview-5512--carbon-elements.netlify.com

@netlify
Copy link

netlify bot commented Mar 3, 2020

Deploy preview for carbon-components-react ready!

Built with commit f010037

https://deploy-preview-5512--carbon-components-react.netlify.com

Copy link
Collaborator

@tw15egan tw15egan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No errors on my end 👍 ✅

Copy link
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@asudoh asudoh merged commit d642917 into carbon-design-system:master Mar 3, 2020
@janhassel janhassel deleted the components-build-fix branch April 2, 2020 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants