Use grunt watch in different directories within the same project and at the same time

1

Talk Galera.

I'm not an expert on Grunt, but I turn around and currently work with grunt running in a more conventional framework, where files of the same extension are in the same folder, for example: ".scss" inside the assets folder / sass , ".js" in assets / js , and so on.

But now the need arises to work with several subdirectories within the same project and would like to continue using the same Gruntfile.js and the same modules installed. For example:

projeto
--**src**
----node_modules
----Gruntfile.js
----package.json
--subprojetos
----**subprojeto-1**
------assets/css
--------*.css
--------*.scss
----**subprojeto-2**
------assets/css
--------*.css
--------*.scss
----**subprojeto-3**
------assets/css
--------*.css
--------*.scss

This question I think is good for other plugins, but I specifically use grunt-contrib-sass and grunt-contrib-watch.

Has anyone ever worked this way before and has a path to indicate or would it even be necessary to have installation packages for each subdirectory?

    
asked by anonymous 14.03.2017 / 19:02

0 answers