Support » Plugin: Snowball » Custom Module admin.js

  • msteel

    (@msteelnapcocom)


    Since your admin.js files have been minimized how do you suggest incorporating admin.js into a custom module?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author thomaspark

    (@thomaspark)

    The default gulp task will concat and minify all of the module admin.js scripts. While adding the new module, you can run gulp to watch for and run this task. Check out gulpfile.js for more details.

    msteel

    (@msteelnapcocom)

    Thanks for the quick response. I’m not seeing gulpfile.js in the plugin. Do you mean get it from git?

    Plugin Author thomaspark

    (@thomaspark)

    Ah yes, you should grab it from GitHub for all the dev files:

    https://github.com/thomaspark/snowball

    msteel

    (@msteelnapcocom)

    OK, I’ll see if I have time to download and get it going.

    I’m finding some issues with adding a custom module that you may want to know in order to (in my eyes) improve the process.

    Our office has to keep uploads ignored so we don’t want to add code to the uploads folder. Also by using the basedir it doesn’t lend itself to multisite use. Perhaps adding a filter for the custom modules location?

    Also adding more instructions on gulp (that it is needed and how to use it) would be helpful.

    Plugin Author thomaspark

    (@thomaspark)

    Thanks for the suggestions. Will beef up the FAQ with details about the GitHub repo and gulp.

    As far as location of custom modules, making it customizable is ideal, but curious where you’d save them?

    msteel

    (@msteelnapcocom)

    /my-theme/snowball/modules could work. And/or if you filter the location (or array of locations) then people could put it where it best suits them (i.e. a plugin rather than a theme)

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.