Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a dist build target folder in Yeoman / Grunt / Angular?

In configuration readmes for generators such as these I frequently see options such as --dist-path='dist' customize build target folder, relative to cwd, default is dist

Also, in my own grunt folder I see:

  var appConfig = {
    app: require('./bower.json').appPath || 'app',
    dist: '../server/dist'
  };

What is that? It looks like it defaulted to my server directory but I have no idea what it is for. Can someone please explain the purpose of dist to me?

like image 942
Startec Avatar asked Jul 31 '15 17:07

Startec


1 Answers

The dist folder contains the minified/uglified/concatenated/etc version of your code. Yeoman generators usually run grunt/gulp tasks to prepare your application for production use by running several tasks and outputting the results in the for dist folder.

Dist stands for distribution.

More info here.

like image 167
yvesmancera Avatar answered Oct 05 '22 00:10

yvesmancera