tsfmt maven plugin by source-knights · Pull Request #553 · diffplug/spotless

and others added 12 commits

March 26, 2020 13:49
…closer to the other defaults.

@nedtwigg

nedtwigg

@source-knights

This does not work in the Tsfmt class but in the AbstractSpotlessMojo
class:
@parameter(defaultValue = "${project.build.directory}"

So the change is to set it in the Mojo class to the FileLocator and get
it from there if required

@source-knights

When I use "files" with a direct link to "src/main/typescript/test.ts"
it works. If I leave "files" out (and just use
"include": [
	 "src/main/typescript/*.ts"
	 	]
) it does fail with

C:\Users\xyz\AppData\Local\Temp\junit3377288995823290344\target\spotless-node-modules-tsfmt-format\node_modules\typescript-formatter\lib\utils.js:64:
Error: No inputs were found in config file 'tsconfig.json'. Specified
'include' paths were '["src/main/typescript/*.ts"]' and 'exclude' paths
were '["nothing.xml"]'. -> [Help 1]

@source-knights

@source-knights

@nedtwigg

…maven canonical" names (e.g. erroneously calling buildDir "target").

@nedtwigg

@nedtwigg

@nedtwigg