-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from pipelinit/fix/vue-stack
fix: adjust html stack vue identification
- Loading branch information
Showing
9 changed files
with
98 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { IntrospectFn } from "../../../types.ts"; | ||
import { introspect as instrospectVue } from "./vue.ts"; | ||
|
||
// deno-lint-ignore no-empty-interface | ||
interface Vue {} | ||
|
||
export type Frameworks = { | ||
vue?: Vue; | ||
}; | ||
|
||
export const introspect: IntrospectFn<Frameworks> = async (context) => { | ||
const logger = context.getLogger("html"); | ||
const frameworks: Frameworks = {}; | ||
logger.debug("detecting linter"); | ||
|
||
const isVue = await instrospectVue(context); | ||
if (isVue) { | ||
logger.debug("detected Vue.Js"); | ||
frameworks.vue = {}; | ||
} | ||
|
||
return frameworks; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { IntrospectFn } from "../../../types.ts"; | ||
|
||
export const introspect: IntrospectFn<boolean> = async (context) => { | ||
// Search for any .vue file | ||
return await context.files.includes("**/*.vue"); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { IntrospectFn } from "../../../types.ts"; | ||
import { introspect as instrospectDjango } from "./django.ts"; | ||
|
||
// deno-lint-ignore no-empty-interface | ||
interface Django {} | ||
|
||
export type Frameworks = { | ||
django?: Django; | ||
}; | ||
|
||
export const introspect: IntrospectFn<Frameworks> = async (context) => { | ||
const frameworks: Frameworks = {}; | ||
const logger = context.getLogger("python"); | ||
|
||
const isDjango = await instrospectDjango(context); | ||
if (isDjango) { | ||
logger.debug("detected Django"); | ||
frameworks.django = {}; | ||
} | ||
|
||
return frameworks; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters