Is there any configuration file or something we can change in yeoman that would set the "app" directory to something else? I work with Zend Framework 2 and it uses the "public" directory as the root yeoman uses "app".
I see that I can directory name in the Grunt.js file but it would be nice to reset the defaults in yeoman.
You want to change the Gruntfile.js
settings, as from version 1.0 everything is listed here, and build is done by Grunt only.
As they write on the website:
Yo scaffolds out a new application, writing your Grunt configuration and pulling in relevant Grunt tasks that you might need for your build.
Bower is used for dependency management, so that you no longer have to manually download and manage your scripts.
Grunt is used to build, preview and test your project, thanks to help from tasks curated by the Yeoman team and grunt-contrib.
I can't remember where the old settings was in the gruntfile, but in version 1.0 is at line 11 and looks like this:
// configurable paths
var yeomanConfig = {
app: 'app',
dist: 'dist'
};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With