Title: Custom Module admin.js
Last modified: June 26, 2017

---

# Custom Module admin.js

 *  [msteel](https://wordpress.org/support/users/msteelnapcocom/)
 * (@msteelnapcocom)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/custom-module-admin-js/)
 * 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](https://wordpress.org/support/users/thomaspark/)
 * (@thomaspark)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/custom-module-admin-js/#post-9263739)
 * 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.
 *  Thread Starter [msteel](https://wordpress.org/support/users/msteelnapcocom/)
 * (@msteelnapcocom)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/custom-module-admin-js/#post-9265769)
 * Thanks for the quick response. I’m not seeing gulpfile.js in the plugin. Do you
   mean get it from git?
 *  Plugin Author [thomaspark](https://wordpress.org/support/users/thomaspark/)
 * (@thomaspark)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/custom-module-admin-js/#post-9266306)
 * Ah yes, you should grab it from GitHub for all the dev files:
 * [https://github.com/thomaspark/snowball](https://github.com/thomaspark/snowball)
 *  Thread Starter [msteel](https://wordpress.org/support/users/msteelnapcocom/)
 * (@msteelnapcocom)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/custom-module-admin-js/#post-9266333)
 * 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](https://wordpress.org/support/users/thomaspark/)
 * (@thomaspark)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/custom-module-admin-js/#post-9266863)
 * 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?
 *  Thread Starter [msteel](https://wordpress.org/support/users/msteelnapcocom/)
 * (@msteelnapcocom)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/custom-module-admin-js/#post-9266931)
 * /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)

The topic ‘Custom Module admin.js’ is closed to new replies.

 * ![](https://ps.w.org/snowball/assets/icon.svg?rev=1279019)
 * [Snowball](https://wordpress.org/plugins/snowball/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/snowball/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/snowball/)
 * [Active Topics](https://wordpress.org/support/plugin/snowball/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/snowball/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/snowball/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [msteel](https://wordpress.org/support/users/msteelnapcocom/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/custom-module-admin-js/#post-9266931)
 * Status: not resolved