void BuildFastBundlerTestHtml(IEnumerable <string> testSources, string root, string cssLink) { var reqSpec = RequireBobril() + string.Join(' ', testSources.Where(src => !src.EndsWith(".d.ts")).Select(src => { var name = PathUtils.WithoutExtension(PathUtils.Subtract(src, root)); return($"R.r('./{name}');\n"); })); _mainBuildResult.FilesContent.GetOrAddValueRef(_versionDirPrefix + "bundleTest.js") = reqSpec; _indexHtml = $@"<!DOCTYPE html> <html> <head> <meta charset=""utf-8"">{_project.ExpandHtmlHead(_buildResult)} <title>{_project.Title}</title>{cssLink} </head> <body> <script src=""{_versionDirPrefix}jasmine-core.js"" charset=""utf-8""></script> <script src=""{_versionDirPrefix}jasmine-boot.js"" charset=""utf-8""></script> <script src=""{_buildResult.BundleJsUrl}"" charset=""utf-8""></script>{ImportBundle2()} <script src=""{_versionDirPrefix}bundleTest.js"" charset=""utf-8""></script> </body> </html> "; }
void BuildFastBundlerIndexHtml(string cssLink) { _indexHtml = $@"<!DOCTYPE html><html><head><meta charset=""utf-8"">{_project.ExpandHtmlHead(_buildResult)}<title>{_project.Title}</title>{cssLink}</head><body><script src=""{_mainJsBundleUrl}"" charset=""utf-8""></script></body></html>"; }