V
V
Vitaly Kirenkov2014-12-27 21:09:22
JavaScript
Vitaly Kirenkov, 2014-12-27 21:09:22

Why separate builds into public and build in gulp(grunt)?

The question was inspired by this post habrahabr.ru/post/208890

It's just that in fact it's the same thing, or maybe I don't understand something. I didn’t work with a grant myself, and even with a gallop, but yesterday I already passed a mini-course, I will implement it on Monday, so I’m trying to figure out what structure to build for the project.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey Nalomenko, 2014-12-27
@DeLaVega

There are different ideologies for building projects. Be it dev, dist, public, production or any other folders. But the main difference between these assemblies is the following: in the above example, presumably, public is the assembly of the project for debugging, and build is for production, where the source files are minified (for example, JavaScript), and at the same time, the debugging process becomes much more complicated when instead of the pointer you are used to a pointer is issued for an unknown minified code point.

A
Alexey ZloDeeV, 2014-12-27
@ZloDeeV

In public, files from SASS/LESS/HAML/... will be compiled, but in a readable form, this is done to speed up the compilation and editing process itself.
In build, files are not only compiled, but also minified, images are compressed, SASS is passed through an autoprefixer, and so on.

Z
zjoin, 2014-12-27
@zjoin

Your temporary files get into public when developing a project. Here, in my jade template, the files are rendered in html to the .tmp folder, and when I do gulp build, this folder is in gitignore. Something like this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question