GulinSS / jade-angularjs-brunch

Automatic compiler Jade templates to AngularJS modules for Brunch.IO
31 stars 21 forks source link

Fix issues with using a different/custom path for the public folder #7

Closed ghinda closed 11 years ago

ghinda commented 11 years ago

Because of the hardcoded _public/js/dontUseMe path in the plugin, the partials.js was not being created when using a different value, other than _public, for the config.path.public parameter.

For example, having set

paths: {
  public: 'public'
}

in the Brunch config.js file, the partials.js file is not created at all.

This fixes the issue by replacing the _public part of the hardcoded path, with the config.path.public parameter, from the Brunch config file.

GulinSS commented 11 years ago

some days later I will increment version in npm

ghinda commented 11 years ago

Wow, that was a fast merge! Would be great if you could post a comment here when you get to update it in npm.