getgrav / grav-theme-landio

Land.io is a carefully crafted landing page UI kit and landing page template built on Bootstrap 4, designed by Peter Finlan and developed by Taty Grassini.
https://getgrav.org
Other
31 stars 15 forks source link

Instructions for javascript development #6

Open voznik opened 7 years ago

voznik commented 7 years ago

hey, can you please give some instructions - what's the best way to organize javascript development for this theme? I can do scss --watch scss:css --style compressed for styles modifications. but what can I use to rebuild landio.min.js when I've added some extra plugins? I see code like this: // @codekit-prepend "plugins/jquery.placeholder.js"; but I don't have codekit.

flaviocopes commented 7 years ago

What's crumzi.min.js? There's no such file in the theme.

JS files can be added in https://github.com/getgrav/grav-theme-landio/blob/develop/templates/partials/base.html.twig, but instead of modifying it directly, create a child theme: https://learn.getgrav.org/themes/customization#theme-inheritance

voznik commented 7 years ago

@flaviocopes i mean what task runner do you use to concat javascript files to your minified landio.min.js? how can do this without codekit?

flaviocopes commented 7 years ago

I don't know actually, it was minified when it was built, over a year ago, and not touched anymore. You can use any JS minification tool, codekit, grunt, gulp, or any other one.