Hi,
I have a non-asset directory to be linted. My project is based on Play 2.3.2 and the directory structure is like this:
- app
- assets
- js
- plugins
There're JavaScript files in both ./app/assets/js and ./plugins. Files in ./app/assets/js are linted without any settings, but I don't know how to include ./plugins in the directory to be linted.
I tried this:
sourceDirectory in Assets <<= baseDirectory(_ / "plugins")
Then I can lint the files in ./plugins but at that time ./app/assets/js is excluded. I think it just changed sourceDirectory, not adding the directory to it.
Is there any way to lint both of them?
Thanks in advance.
Hi,
I have a non-asset directory to be linted. My project is based on Play 2.3.2 and the directory structure is like this:
There're JavaScript files in both
./app/assets/jsand./plugins. Files in./app/assets/jsare linted without any settings, but I don't know how to include./pluginsin the directory to be linted.I tried this:
Then I can lint the files in
./pluginsbut at that time./app/assets/jsis excluded. I think it just changedsourceDirectory, not adding the directory to it.Is there any way to lint both of them?
Thanks in advance.