Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change yeoman's application folder name

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.

like image 482
Subtubes Avatar asked Feb 25 '13 00:02

Subtubes


1 Answers

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'
};
like image 133
Allan Kimmer Jensen Avatar answered Sep 22 '22 16:09

Allan Kimmer Jensen