Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Mark Dalgleish
@markdalgleish
bespoke has been the primary outlet for letting me practice my CSS transition foo
really pays off when you're trying to make an app-like site
Dan Allen
@mojavelinux
Definitely. It's the perfect playground to experiment.
One shortcoming I discovered when doing bespoke-overview is that there isn't a clear event as to when CSS transitions are complete.
You can be pretty sure, but not exactly sure.
That's because you get events when each one ends, but you never know if that was the last one or not. And you can't be 100% sure if they will fire at all (given certain timing scenarios)
I have some pretty crazy code in bespoke-overview to deal with this, and except for really strange edge cases, it works every time.
I guess I should say that that problem is, you don't get an event when the transition starts
if that were the case, then you could reference count
Dan Allen
@mojavelinux
For those interested, Resonate, the book about presentations, is available online. http://resonate.duarte.com/
Naturally, seeing that book gives me ideas of plugins for Bespoke.js :)
@markdalgleish When you get a chance, could you look over the PR for fixing fullscreen in Firefox and give me your thoughts. bespokejs/bespoke-scale#9 I'm keen to steal that 1px back that Firefox is shorting us.
That should also fix any similar problem in other browsers as well, now or in the future. Fullscreen should be pure :)
Dan Allen
@mojavelinux
@markdalgleish I noticed the version in the comment at the top of the files in the dist folder in bespoke-core is incorrect. It says that it is version 1.0.0, but it should be 1.1.0. https://github.com/bespokejs/bespoke/blob/master/dist/bespoke.js
Mark Dalgleish
@markdalgleish
Times have changed a bit since Bespoke started
That raises a question I've had in the back of my mind
No more `
Is it time to go all in on npm, drop Bower and browser globals?
Mark Dalgleish
@markdalgleish
Bah, Gitter mobile messed up my messages
I'll try again...
That raises a question I've had in the back of my mind
Times have changed a bit since Bespoke started
Is it time to go all in on npm, drop Bower and browser globals?
No more dist directory with browserified output, no more pointless copyright header
That's probably the only thing that really shows the project's age
@mojavelinux the fact that you've had pull requests with merge conflicts due to the dist directory is probably the main reason I'd be keen to go CommonJS only
you just don't have these issues when you only care about npm
Dan Allen
@mojavelinux
I personally have no attachment to Bower. I'll admit I'm used to loading the libraries from dist in the demo, but that setup can easily be reworked. But my approach to using Bespoke externally is always through gulp / npm.
As far as maintenance is concerned, I totally agree that dealing with dist is a pain. I'm constantly having to check that in and even deal with merge conflicts between my own branches.
Dan Allen
@mojavelinux
Another approach is to only commit the dist files to the tag. That way, they never conflict in development.
Joël Gähwiler
@256dpi
Hi guys! I just released a first version of the Bespoke.app: https://github.com/256dpi/bespoke-app
It uses electron to present a presentation on a second screen, while using the main screen for presenter notes and a preview of the current and next slide.
Mark Dalgleish
@markdalgleish
Wow!
That's so cool
Joël Gähwiler
@256dpi
Please, check it out, I'm looking forward to get some feedback!
@markdalgleish Thanks :)
Dan Allen
@mojavelinux
@256dpi You may be interested in the bespoke-extern plugin, which exports the deck to a global variable using a regular plugin declaration. See https://www.npmjs.com/package/bespoke-extern
It's just a touch more elegant than using window.deck = bespoke.from...
Joël Gähwiler
@256dpi
@mojavelinux Thanks for the link, I will update the Readme.
Dan Allen
@mojavelinux
Cool! Great tool, btw! I can't wait to try it!
durrrr91
@durrrr91
Hi Guys, long shot but has anyone used this plugin lately: https://www.npmjs.com/package/bespoke-synchro ? I am a bit new to web sockets and can't figure out the mediator part :|
Mark Dalgleish
@markdalgleish
@durrrr91 sorry, I haven't used it before
Riccardo Amadio
@rokity
Hi
where I can find Carousel theme ?
Evan Sosenko
@razor-x

@mojavelinux One way to support bower without dist is with https://npmcdn.com/

TLDR; remove dist from the repo, but include it in the npm package and serve the package for bower users from that service.

For npm package authors, npmcdn relieves the burden of publishing your code to a CDN in addition to the npm registry. All you need to do is include your UMD build in your npm package (not your repo, that's different!).

You can do this easily using the following setup:

Add the umd (or dist) directory to your .gitignore file
Add the umd directory to your files array in package.json
Use a build script to generate your UMD build in the umd directory when you publish

That's it! Now when you npm publish you'll have a version available on npmcdn as well.

Dan Allen
@mojavelinux
@razor-x I like that arrangement. I'm not a big fan of putting the dist in the repository. This is awesome. I'll check it out.
gleachkr
@gleachkr
Hey, just curious - what's the maintainence status of this project (including the supported plugins)?
Dan Allen
@mojavelinux
I'm still working on it. In fact, I've submitted an update to one of the plugins that I want to roll out to all the other plugins once merged. The hangup is that we are missing automated releases, so releases are too laborious at the moment. bespokejs/bespoke-hash#8
I'm busy right now on a major project, so I haven't had time to spend on getting that completed...but I'll come back around once time permits.
gleachkr
@gleachkr
Great, thank you! I look foward to seeing that merged.