Merge pull request #20082 from armanio123/KendoOptionalMin

Modified Kendo regex to include -ui folders and files without min
This commit is contained in:
Armando Aguirre
2017-11-16 17:37:24 -08:00
committed by GitHub
3 changed files with 7 additions and 3 deletions

View File

@@ -1518,6 +1518,10 @@ namespace ts.projectSystem {
path: "/q/lib/kendo/kendo.ui.min.js",
content: "unspecified"
};
const kendoFile3 = {
path: "/q/lib/kendo-ui/kendo.all.js",
content: "unspecified"
};
const officeFile1 = {
path: "/scripts/Office/1/excel-15.debug.js",
content: "unspecified"
@@ -1526,7 +1530,7 @@ namespace ts.projectSystem {
path: "/scripts/Office/1/powerpoint.js",
content: "unspecified"
};
const files = [file1, minFile, kendoFile1, kendoFile2, officeFile1, officeFile2];
const files = [file1, minFile, kendoFile1, kendoFile2, kendoFile3, officeFile1, officeFile2];
const host = createServerHost(files);
const projectService = createProjectService(host);
try {

View File

@@ -145,7 +145,7 @@ namespace ts.server {
},
"Kendo": {
// e.g. /Kendo3/wwwroot/lib/kendo/kendo.all.min.js
match: /^(.*\/kendo)\/kendo\.all\.min\.js$/i,
match: /^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,
exclude: [["^", 1, "/.*"]],
types: ["kendo-ui"]
},

View File

@@ -10,7 +10,7 @@
"types": ["winjs"]
},
"Kendo": {
"match": "^(.*\\/kendo)\\/kendo\\.all\\.min\\.js$",
"match": "^(.*\\/kendo(-ui)?)\\/kendo\\.all(\\.min)?\\.js$",
"exclude": [["^", 1, "/.*"]],
"types": ["kendo-ui"]
},