digisavvy / some-like-it-neat

A WordPress Theme Using _s, Bourbon + Neat and Theme Hook Alliance
GNU General Public License v2.0
276 stars 61 forks source link

Issues with own js files. #84

Closed mroesele closed 9 years ago

mroesele commented 9 years ago

Hi there, I am trying to get familiar with "some like it neat" and would like to use it in my latest wp project. First of all, I am very impressed by this theme and the whole workflow. Thanks a lot for your great work.

But there is something I would like to share with you. I had some troubles getting a simple js alert to work. I created a new js file and placed it in /assets/js/app/test.js

It took some minutes to figure out how this is meant to work.

I think the two generated js files should be enqueued by default:

// Concatenated Scripts
wp_register_script( 'development-js', get_template_directory_uri() . '/assets/js/development.js', array( 'jquery' ), '1.0.0', false );
wp_enqueue_script( 'development-js', get_template_directory_uri() . '/assets/js/development.js', array( 'jquery' ), '1.0.0', false );

"You don't need to link to files placed in this folder. Instead, link to either production.js or development.js files." --> "You don't need to link to files placed in this folder. Instead, link to either production.js or development.js files in functions.php or directly in your markup"

louisnovick commented 9 years ago

In the latest version they seem to be commented out in the functions.php file. I suppose that's ok but I do agree that out of the box they should be active :)

digisavvy commented 9 years ago

@louisnovick @mroesele, I've heeded your input and these scripts are not available by default. =)

Thanks.

hasnatbabur commented 8 years ago

I am feared about the js task. I thought they are flexible like Roots Sage.