Javascript basic file template for WordPress with enqueue functions to add to both admin area or frontend and minification .min according to the site environment.
Note:
If you need to delay the moment to enqueue the style/script, just use wp_register_script or wp_register_style.
Then, when the time comes, enqueue it using wp_enqueue_script( 'script-handle' ); or wp_enqueue_style( 'style-handle' );. Handle is the first param of both the register and enqueue functions.
Example: Add CSS or JS file only if a shortcode is present.