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
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.