Closed sergelerner closed 10 years ago
@sergelerner -
I think this is a problem not necessarily with misunderstanding the purpose of Pattern Lab but sort of understanding where development focus tends to be. This is a really broad project and it attempts to cover, at the very least, the lifecycle of a site's development process and client review of said development. There hasn't been much focus on either how to handle a move to production nor the management of handling changes to a production site. I chalk this up to two issues:
If you can describe a good use-case or what your ideal set-up would be that'd be great. Anything towards that end of the project life-cycle would be a long-time coming as I have limited time. Happy to take or work through a patch to add it in though. I could see a command line addition to S/FTP public/
auto-magically to a remote host. I'm not sure what else you'd need for "manually editing" files. Maybe it's a matter of building off of #96 for production vs development _data.json
files that might have production vs development hosts and paths Mustache variables.
Thanks much for re-opening and starting the conversation again.
@dmolsen Thanks for picking up the opportunity to discuss this.
I'm directing @sergelerner 's team and was the one who got excited about PL in the first place enough to jump on the wagon for a production project without any prior experience. I also believe that we're (Netcraft) among the early adopters of PL and Atomic Design in Israel, and as a prominent Front-End force in our country are in an influential position to move it forward. Thus its very important for us to fully understand the intended and future use-case(s) of PL.
@sergelerner Can best describe the meaning from a technical point-of-view, but simply put - what we're looking for is a way to use PL not only as the "kitchen-sink" for markup and style, but also as the up-to-date component structure for production web applications/sites. Our workflow is such that upon making it to Pages context we're adding Business Logic as well, incl. navigation, state and real data (using AngularJS). We need a way to deploy/maintain this actual application/site without losing the connection to the "kitchen-sink", i.e. if later on I change a button's color - it should change all the way through the atoms->pages chain to production.
Now that I'm writing this I understand that perhaps this is what has been missing for us - the step after "Pages", a "thing/place" to tie those pages together.
Also I have a technical question - how precisely did you hand off those assets to the other team? It can help us, thanks.
Hello everyone. Here are my 2 cents about taking PatternLab to production projects.
In the last couple of week I've been leading another team, in parellel to @krulik and @sergelerner, that work on a PatternLab based production project as well.
This this opportunity, I would like to thank you for this great tool. We're excited to use it :) While working with it, we came up with a few challenges and issues we've struggled with. Maybe it is off-topic a little, but maybe this would be helpful anyway..
gem install
or npm install
such tool. The only way for me to achieve such goal, would be modifying the PHP core.@igalst -
Wow, nice wish list :) In looking at the discussion it highlights that we, or I really, haven't thought about how stuff can live outside of the Pattern Lab wrapper. This has been a designer's tool. That influences some of the decisions made so far and decisions we might make down the road. Please understand that this is an unpaid side gig for me. I'm open to suggestions but other things influence how I prioritize and tackle things. Brad also weighs in on what he sees as following in his original version for the product.
With that here's a rather quick response because I'm not sure I'll be able to get back here in for a few days:
I'm happy to discuss the issues. Just understand I'm limited in my ability to execute on everything. Either through time or a difference of vision for the product. We'd like to make this as useful as we can. It might just not end up matching needs.
For a side gig this is a well appreciate project indeed i must say, i dont even grasp how one finds time for all of this - but there you are : ) So there's a lesson here for all of us...
Now regarding my prior issue, with all the above said, my solution is a simple one - a command line to generate a dist folder, similar to the public one, just without the pattern lab files and a few changes:
I might be missing out some things, but that is pretty much what i did manually.
Now if you have such a folder you can move on and add grunt or whatever to do the rest of the automation on it such as minification...
In my project I end up creating a single page application, so i have only one page pattern, with lots of organisms being displayed at the right time/place by AngularJs. So i never dealt with linking between pages. Which might be another trick here.
On a different note, you mentioned previously that it is a designers tool, i think in the US you do a better job drawing the line between web designers and web developers, here for instance (here being Israel) we fall from such distinction. Most of our designers hardly write any html/css, they kinda got stuck in Photoshop (where they do an amazing job), something we're trying to change those days. So the developers job turns out as a long run from markup up to production. Maybe this is why we find ourselves always trying to see the whole picture.
@sergelerner -
Ok, I can get behind a dist/
or export/
dir. We already had an open issue for this (#67) but it's good to be reminded of it and now it has a reference from this issue so we know it's definitely a desired feature.
In the near-term I'm going to be working on those issues marked with the 0.7.1
tag as well as the open bugs. Longer-term I'll wrap this the dist/
/export/
folder issue into 0.8.0
. I would guess that will be March or so. That's probably not fast enough for you guys but at least you can be assured I'll try to tackle that particular problem.
Because an issue already exists for at least this idea I'm going to close this particular issue. Thanks again to you and your colleagues for the feedback. It's really good to hear other perspectives :)
@dmolsen Thanks lots well appreciated !
@dmolsen I'm very excited about this and am very grateful for your work guys.
Indeed it was a very interesting discussion about different workflows, in particular the references to previously made comments by @bradfrost in (#67 and #40) had shed some light that this is actually an approach issue.
@dmolsen
HI, please suggest me how to work with pattern lab and angular js . Actually I'm building a websites/product in angular that consumes dynamic data through web Apis. In this i want to use template/pattern generated by Pattern lab but i have no idea how to do this. Also I want to use angular routing instead of pattern lab routing. Please provide step by step guide to integrate angular with pattern lab. I have downloaded and configure this sample project https://github.com/bmuenzenmeyer/patternlab-node-angular-example, but this doesn't have much to solve my problem.
Is there any script command to export all templates as html ie. home.html, product-from.html and also is this right way to work with angular & PL?
Thanks
Hi, i know i tried this before with issue number 82, which was closed, but i struggle to understand the purpose of pattern lab when it come to creating real applications. maybe you can shed some light on this for me. where i work we got exited about this project and decided to use it as a static site generator which was really helpful. now we are at a point where we want to deploy our apps for production. and the only way i see this possible right now is by manually editing the public folder files, copying and pasting and so on.. I can manage that by myself alright, but this way it makes the whole workflow a bit tedious especially if one needs to go back and make changes inside of pattern lab and then go through the whole manual deployment again without some automation tools. This got me thinking maybe we misunderstood the purpose of pattern lab from the first place. I'd appreciate to hear more from you regarding this issue. thanks!