Open guid-empty opened 5 years ago
Hi!
Is it possible to export AngularDriver class from this package to be used as one of available classes?
One of the cases is ability to check custom angular template in build pipeline, for example:
` final plugin = AngularAnalyzerPlugin(PhysicalResourceProvider.INSTANCE);
final versionCheckParams = new PluginVersionCheckParams('~/.dartServer/.analysis-driver', '/usr/lib/dart', '2.1.1'); await plugin.handlePluginVersionCheck(versionCheckParams); final root = ContextRoot(rootPath, [], optionsFile: optionsPath); plugin.start(PluginCommunicationChannelStub()); final genericDriver = plugin.createAnalysisDriver(root); final angularDriver = genericDriver as AngularDriver; genericDriver.addFile(angularTemplatePath); // await genericDriver.performWork(); final htmlResult = await angularDriver.requestHtmlResult(angularTemplatePath); print('angular template has errors -> ${htmlResult.errors.isNotEmpty}, ${dartResult.errors.isNotEmpty}'); if (htmlResult.errors.isNotEmpty) { htmlResult.errors.forEach((AnalysisError error) { print(error.message); print(error.correction); }); }
`
Thanks.
Hi!
Is it possible to export AngularDriver class from this package to be used as one of available classes?
One of the cases is ability to check custom angular template in build pipeline, for example:
` final plugin = AngularAnalyzerPlugin(PhysicalResourceProvider.INSTANCE);
`
Thanks.