Establish the BaseImporter abstract class. This class implements the Importer interface and can include utility methods generally helpful to Importers.
Update NodeJSImporter to inherit from BaseImporter.
Add utility methods to BaseImporter to handle compiled CSS files.
Create new CompiledImportedFile type that can now be returned by Importer.import(). This new type represents both an imported compiled CSS file and its associated block definition data.
Update existing tests to reflect new type property on ImportedFile and that Importer.import() could return a CompiledImportedFile.
Add some additional comments to BlockFactory.
Test coverage for isDefinitionUrlValid().
TODO:
~- Test coverage for utility methods in BaseImporter.~
BaseImporter
abstract class. This class implements theImporter
interface and can include utility methods generally helpful to Importers.NodeJSImporter
to inherit fromBaseImporter
.BaseImporter
to handle compiled CSS files.CompiledImportedFile
type that can now be returned byImporter.import()
. This new type represents both an imported compiled CSS file and its associated block definition data.type
property on ImportedFile and thatImporter.import()
could return aCompiledImportedFile
.BlockFactory
.isDefinitionUrlValid()
.TODO: ~- Test coverage for utility methods in BaseImporter.~