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

Adding static storybook to CI #196

Merged
merged 5 commits into from
Mar 6, 2020
Merged

Conversation

hog-seruj
Copy link
Contributor

No description provided.

scripts/makefile/front.mk Outdated Show resolved Hide resolved
@@ -55,4 +54,4 @@ storybook:
@echo "Running storybook..."
docker pull $(IMAGE_FRONT)
$(call frontexec, yarn install --ignore-optional --check-files)
$(call frontexec, yarn storybook -p $(FRONT_PORT))
$(call frontexec, yarn build-storybook --verbose)
Copy link
Contributor

Choose a reason for hiding this comment

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

++

I guess global todo is :

  1. Update existing make storybook command to generate static files (https://github.com/skilld-labs/skilld-docker-container/blob/195-add-static-storybook/scripts/makefile/front.mk#L53) Done
  2. Add make storybook to list of job in make all_ci (https://github.com/skilld-labs/skilld-docker-container/blob/195-add-static-storybook/Makefile#L35)
  3. Add a few commands to .deploy_template: &deploy_template (https://github.com/skilld-labs/skilld-docker-container/blob/195-add-static-storybook/.gitlab-ci.yml#L148), at the end of script part with goal to move storybook static files in a dir inside web/ (like it is done here https://github.com/skilld-labs/skilld-docker-container/blob/195-add-static-storybook/.gitlab-ci.yml#L220-L223)

That way, generating static storybook will be part of RA job and everything remains clean.
Is it ok for you ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@davidferlay, @andypost Have another vision

@hog-seruj hog-seruj force-pushed the 195-add-static-storybook branch from a036599 to 0fddbf1 Compare December 19, 2019 15:51
@iberdinsky-skilld iberdinsky-skilld force-pushed the 195-add-static-storybook branch from 0fddbf1 to 3f03960 Compare March 2, 2020 09:51
@iberdinsky-skilld
Copy link
Contributor

  1. Added sb generation in optional task test:storybook

  2. It needs one more yarn install since storybook not listed in prod dependencies and not installed on previous tasks.

  3. After successful task storybook is available for review in themes/custom/{THEME_NAME}/dist/storybook/index.html. Maybe we also need to update htaccess rule. to skip index.html in path.

  4. Also we may add something like View latest app SB btn?

@davidferlay davidferlay force-pushed the 195-add-static-storybook branch from b3258dd to 35ebfe9 Compare March 4, 2020 16:51
@davidferlay davidferlay changed the title 195 - Added static storybook. Adding static storybook to CI Mar 4, 2020
@davidferlay
Copy link
Contributor

Ready to merge

@davidferlay davidferlay merged commit 9f741ad into master Mar 6, 2020
@andypost andypost deleted the 195-add-static-storybook branch May 5, 2020 21:17
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.

3 participants