Skip to content
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

Minimal quickstart. #45

Closed
kbrock opened this issue Sep 21, 2014 · 6 comments
Closed

Minimal quickstart. #45

kbrock opened this issue Sep 21, 2014 · 6 comments

Comments

@kbrock
Copy link

kbrock commented Sep 21, 2014

Hi,

Such a cool premise of creating a diy presentations with a 1k core bespoke.js and a simple theme.css.

I followed the installation wizard, but probably used it wrong as it produced a 99mb presentation directory containing a 70k build.js and an empty build.css.

Can you point me to a starting presentation.html, bespoke.js and theme.css that I can use without all this extra plumbing?

Thanks,
Keenan

@kbrock
Copy link
Author

kbrock commented Sep 21, 2014

Followup: I was able to find a great starting point with the v0.4.0 demo (live).

@markdalgleish : Still curious if you have a better suggestion.

Thanks

@markdalgleish
Copy link
Member

Did you try the Bespoke.js Generator?
On 22 Sep 2014 02:57, "Keenan Brock" notifications@github.com wrote:

Followup: I was able to find a great starting point with the v0.4.0 demo
https://github.com/markdalgleish/bespoke.js/tree/v0.4.0/demo (live
http://markdalgleish.com/presentations/bespoke.js/).

@markdalgleish https://github.com/markdalgleish : Still curious if you
have a better suggestion.

Thanks


Reply to this email directly or view it on GitHub
#45 (comment)
.

@kbrock
Copy link
Author

kbrock commented Sep 22, 2014

Yes, that is what I was using.

The first few times I used the generator and gulp, it generated a dist/build.js of 70kb even though I disabled most of the generator's features.

Now it is generating a dest/build.js of 12k with no features, and 20k with all features. Much more reasonable.

If I generate another large build.js again, I'll reopen this issue with better repeat instructions.

Thanks for the great tool.

@kbrock kbrock closed this as completed Sep 22, 2014
@jm3
Copy link

jm3 commented Sep 23, 2014

@kbrock 99 MEGs? is that a typo?

@kbrock
Copy link
Author

kbrock commented Sep 23, 2014

@jm3 well, it is all the dependencies that come along with the toolchain with node and bower.

Since I chose all the default options this time, the size has crept up to closer to 100megs:

du -sk *
4   README.md
4   bower.json
512 bower_components
80  dist
4   gulpfile.js
101768  node_modules
4   package.json
12  src

Cool. Dist is back up to 80k. Looks like 45k of it is source maps. That mystery solved.


While the packaging is annoying, the dist directory with the actual presentation is the most important for me. And that is small. which is good.

It just struck me odd that there are so many forced opinions like node, bower, gulp, jade, css stored in javascript, and the extra javascript module require syntax.

Since this is a DIY minimalistic framework, I expected there just to be a css file, html file, and a few optional js files.

Having said that, it was very cool how easily it deployed to gh-pages.
It will just take a little time before I become comfortable with the full nodejs stack.

very cool

@markdalgleish
Copy link
Member

The generator isn't required. You can have a simple static site without a build process if you avoid using the generator and just use Bespoke.js and its plugins directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants