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

Instructions for javascript development #6

Open
voznik opened this issue Oct 18, 2016 · 3 comments
Open

Instructions for javascript development #6

voznik opened this issue Oct 18, 2016 · 3 comments

Comments

@voznik
Copy link

voznik commented Oct 18, 2016

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
Copy link
Contributor

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
Copy link
Author

voznik commented Nov 3, 2016

@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
Copy link
Contributor

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.

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

2 participants