-
Notifications
You must be signed in to change notification settings - Fork 25
Manifest validation needed #86
Comments
Very related to #82 |
Ha! I forgot I already knew about this. I believe the way to go is to recover It should be easy to make Either way, it should be easy to have sorting and validation added back because the data structures are still the same. |
closed by #130 |
I reverted PR #130 and we will be working on this again. No harm done as I didn't push this versions to npm yet. |
Older validation was breaking because we don't support the notion of "external" on the mendel-pipeline right now. We do support:
We do not support:
This has the same underlying issue we saw when @muralikr and @anuragdamle decided to shasum in In "browser-pack" or in browserify land we used to mark externals with "boolean false" which is different from undefined or something else: This was easy to miss when moving to mendel v3. I think it is likelly we need to have our own way of conveying "externality" of deps. |
Making a manifest is hard enough, without validation is super hard for someone not familiar with mendel internals.
For instance, there is a "outlet" requirement on the "bundle". If you don't match exactly with an existing outlet plugin by
id
you will get an error deep down on inside the compiler chain. Instead we should warn at boot of the pipeline.Al required fields should be there, al folders should exist, all references by ID should validate and all modules should be loaded successfully before we start mendel. I think having validation will pay off in the long run better than having a installation script, since people start projects simple and add stuff as they progress.
The text was updated successfully, but these errors were encountered: