(After this PR is merged)
We can pass entryPoints as CLI arguments like this sheriff verify '{ 'app-i': 'projects/app-i/src/main.ts', 'app-ii': 'projects/app-ii/src/main.ts', }'
this is not really convenient and also really error prone
Suggested Feature
Given this entryPoints in a sheriff.config.ts:
entryPoints: {
'app-i': 'projects/app-i/src/main.ts',
'app-ii': 'projects/app-ii/src/main.ts',
},
We will be able to call sheriff verify like this: sheriff verify --entryPoints=app-i or with multiple: sheriff verify --entryPoints=app-i,app-ii.
Questions
Should we still support passing entryPoints via a serialized object ('{ 'app-i': 'projects/app-i/src/main.ts', 'app-ii': 'projects/app-ii/src/main.ts', }')?
If we drop this option we can also simplify the internal implementation.
However it would be a breaking change.
(only if in the meantime a release is created which includes this PR
TODO
(After this PR is merged)
We can pass
entryPointsas CLI arguments like thissheriff verify '{ 'app-i': 'projects/app-i/src/main.ts', 'app-ii': 'projects/app-ii/src/main.ts', }'this is not really convenient and also really error prone
Suggested Feature
Given this
entryPointsin asheriff.config.ts:We will be able to call
sheriff verifylike this:sheriff verify --entryPoints=app-ior with multiple:sheriff verify --entryPoints=app-i,app-ii.Questions
Should we still support passing entryPoints via a serialized object (
'{ 'app-i': 'projects/app-i/src/main.ts', 'app-ii': 'projects/app-ii/src/main.ts', }')?If we drop this option we can also simplify the internal implementation.
However it would be a breaking change.
(only if in the meantime a release is created which includes this PR
TODO
entryPointsCLI arg