-
Notifications
You must be signed in to change notification settings - Fork 46
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
Desirable Patternlab features #11
Comments
In GitLab by @m1kola on Jan 9, 2018, 17:23
We have a separate issue for this: #6
It's already possible. The pattern library doesn't have any front-end tools and it's something that must be implemented using a FE bundler (rollup/webpack/whatever). The bundler should collect css/js/images from pattern dirs and put result in a directory where Django can collect the resulting files.
I'm not sure, but it also seems like something that should be implemented using FE tools.
We can show html, not sure about css and js. Because scss for pattern can include another scss, for example. Is it really important? I think devs can always find related code in the repo. I don't think clients are interested in code. |
In GitLab by @m1kola on Jan 9, 2018, 17:29 Good to have this list of desired features. Thanks Nick! |
In GitLab by @chris-lawton on Aug 3, 2018, 16:54 After having spent some time using this on a client project, a couple of features i'd like to see are:
Just reading through the initial list above - we now have livereload via browsersync - i'm guessing we want this to be part of Mikalab out of the box rather than on a per-project basis? |
In GitLab by @m1kola on Aug 3, 2018, 17:47 Chris, thanks for the feedback. All sounds good. The only one thing I would like to comment on is:
I think, this should be a project thing. I don't want the pattern library to dictate projects which FE tools to use to build project. I want people to be able use it with webpack or rollup or with pure CSS and JS. |
In GitLab by @nmorduch on Dec 4, 2018, 18:03 I also have some thoughts (many thoughts). Note that I love the pattern library very very much, and though I would love to change some of these things, having it at all is such an amazing improvement over not having it, and there are many things about it that I find very very clever and helpful. A set of improvements related to pattern library chrome and browsersyncA few things that could be improved that could be solved together:
Some possible solutions to the above:
An established setup for situations where our pattern templates don't show everything(edit @thibaudcolas: see #87)
this could possibly be accomplished with some combination of:
contexts:
display: switcher
- name: No introduction
context:
page:
title: Page Title
- name: Short intro
context:
page:
title: Page Title
introduction: Introduction to page
- name: Long intro
context:
page:
title: Page Title
introduction: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque laoreet ante ac sapien eleifend tincidunt id ac diam. contexts:
display: overview
- name: .button
template: button.html
context:
label: Default button
- name: .button--alt
template: button.html
context:
label: Alt button
classes: button--alt
- name: .button--large
template: button-large.html
context:
label: Large button A few misc possible changes
|
In an attempt to make the project’s backlog of enhancements easier to keep track of, I have created open issues for anything on this list, and will now close this. I imagine some of these features might make more sense to be built together, but tracking-wise it’s much easier if we can consider them in isolation. |
In GitLab by @tomdyson on Jan 9, 2018, 17:00
From Nick Lee's email:
Features in Patternlab
Nice to have (not included in PL to my knowledge)
The text was updated successfully, but these errors were encountered: