MCPcopy Create free account
hub / github.com/ProNextJS/declarative-routing / isInfoFile

Function isInfoFile

src/shared/watch.ts:30–43  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

28};
29
30const isInfoFile = (path: string) => {
31 const config = getConfig();
32 let matcher: RegExp;
33 switch (config.mode) {
34 case "qwikcity":
35 matcher = /routeInfo\.ts$/;
36 break;
37 default:
38 matcher = /\.info\.ts(x?)$/;
39 break;
40 }
41
42 return path.match(matcher);
43};
44const isRouteFile = (path: string) => {
45 const config = getConfig();
46 let matcher: RegExp;

Callers 1

processFileFunction · 0.85

Calls 1

getConfigFunction · 0.90

Tested by

no test coverage detected