Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
Compony theme skeleton
Compony theme skeleton
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Compony
  • Compony theme skeletonCompony theme skeleton
  • Issues
  • #12

Closed
Open
Opened Nov 18, 2019 by Mathieu Spillebeen@mathieuspillebeenMaintainer

Research: Storybook and Compony

This is a spinoff of #7 as Storybook seems like a very likely candidate to be integrated with Compony.

The idea was first brought to our attention by @dan2k3k4 in #7 (comment 241108434):

With some added tutorial found by @thamas:

Just found this Drupal + Storybook intro which is good I think: https://medium.com/@askibinski/integrating-storybook-with-drupal-ddabfc6c2f9d

Specifically on integrating Storybook with Gulp, @fafnirical mentioned that we should be able to use https://github.com/storybookjs/storybook/blob/next/app/html/standalone.js, for example:

const storybook = require('@storybook/html/standalone');
gulp.task('buildStorybook', () => {
  return storybook({
    mode: 'static',
  });
});

gulp.task('serveStorybook', () => {
  return storybook({
    mode: 'dev',
    port: 8000,
  });
});

So the next step is to see some demo working within a Compony-based setup! 🙂

Edited Nov 19, 2019 by Mathieu Spillebeen
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: Compony/Compony#12