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

Asked

Viewed 38 times

1

Fala Galera.

I’m not an expert on Grunt, but I turn around and currently work with Grunt running in a more conventional structure, where files of the same length are in the same folder, for example: ". scss" inside the folder Assets/Sass, ".js" in Assets/js and so on.

But now the need to work with several subdirectories within the same project has arisen and I 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 fits other plugins, but I use specifically e Grunt-contrib-Sass e and Grunt-contrib-watch.

Someone has worked this way before and has a path to indicate or would even need to have installation packages for each subdirectory?

  • Have you tried using the '.. /subprojects/Assets/css path' ?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.