Grunt Scss, cssmin and jsmin configuration

The most important thing is to keep the appropriate folder structure.

Folder structure

All domain folders should be in the "GoBasic Solutions" folder.

Grunt file inside every project

Each project should also have a gruntfile in the "theme" folder.

Install grunt
 To install Grunt you need to open a new terminal in the folder where we have our package.json file. In console just do "npm i" or "npm install".
 
In the same place in the console, after installing npm, we can commission grunt tasks. We can do them individually:
  • "grunt sass" compiles scss files to css files
  • "grunt cssmin" minifies css files
  • "grunt uglify_folders" minifies all js files to one compiled output file
 
Or we can also do all at once with a command
  • "grunt all"

Errors

If our computer does not recognize the 'grunt' command we need to install one more thing:
"npm install -g grunt-cli"