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

Generate schema for new added icons #1020

Merged
merged 17 commits into from
Jan 11, 2019

Conversation

adamszalapski
Copy link
Collaborator

@adamszalapski adamszalapski commented Jan 8, 2019

Jira

http://vjira2:8080/browse/BDS-88

Summary

Update bolt-icons component by giving a possibility to generate the updated schema in bolt-icon component.

Details

Small changes in bolt-icons component and add js-yaml package to dependencies.

How to test

Run this code locally. Add new svg icon to packages/components/bolt-icons/src/svgs. Run this code i command line in the project root: npm run setup:full then run this command: npm start. Run docs-site in the browser. Go to components > Icon > Icon Name Variations and check if new icon is added to it. Additionally, check if you have generated a file in: www/build/data called icons.bolt.json.

@bolt-bot
Copy link
Collaborator

bolt-bot commented Jan 8, 2019

⚡ PR built on Travis and deployed a now preview here:

@bolt-bot
Copy link
Collaborator

bolt-bot commented Jan 8, 2019

⚡ PR built on Travis and deployed a now preview here:

Copy link
Contributor

@sghoweri sghoweri left a comment

Choose a reason for hiding this comment

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

Awesome! Nice work @adam2661! There's just one small update I'd want to see added to this before this is good to go from me.

In addition to updating the <bolt-icon> schema file directly (really like that approach) -- could you also export that same array of icons as a JSON file to our data directory, similar to this called icons.bolt.json?

I want to make sure we're automatically exposing this data as JSON to make it super easy for Drupal to have an always up to date list of Bolt icons that are available. Better we take care of this now while we're at it.

Copy link
Collaborator

@mikemai2awesome mikemai2awesome left a comment

Choose a reason for hiding this comment

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

Address Salem's comment and it's good with me.

…nto feature/generate-schema-for-new-added-icons

# Conflicts:
#	docs-site/.incache
#	yarn.lock
@adamszalapski
Copy link
Collaborator Author

@sghoweri i just update the PR and file that you mention is generated in the data directory.

@bolt-bot
Copy link
Collaborator

bolt-bot commented Jan 9, 2019

⚡ PR built on Travis and deployed a now preview here:

@bolt-bot
Copy link
Collaborator

bolt-bot commented Jan 9, 2019

⚡ PR built on Travis and deployed a now preview here:

@bolt-bot
Copy link
Collaborator

bolt-bot commented Jan 9, 2019

⚡ PR built on Travis and deployed a now preview here:

@EvanLovely
Copy link
Contributor

⚡ PR built on Travis and deployed a now preview here:

@EvanLovely
Copy link
Contributor

⚡ PR built on Travis and deployed a now preview here:

@adamszalapski
Copy link
Collaborator Author

@sghoweri i don't know why smoke test and liniting has this error: The command "yarn run setup:quick" failed and exited with 1 during . Maybe you can help me with that.

@EvanLovely
Copy link
Contributor

⚡ PR built on Travis and deployed a now preview here:

…er to @bolt/build-tools; added updates to still resolve the right path to @bolt/components-icons, auto-disable the build task if the icons package isn't present, and added auto-regeneration via the watch task.
…om the original @bolt/components-icons package
…d and watch tasks to the build tools' task collection
@EvanLovely
Copy link
Contributor

⚡ PR built on Travis and deployed a now preview here:

@sghoweri sghoweri merged commit 414fb15 into master Jan 11, 2019
This was referenced Feb 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants