Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(constants): Language list constants (#5167)
1. All languages are moved to constants/languages.ts 2. Updated all the references
- Loading branch information
1 parent
4314818
commit 6dc76f2
Showing
30 changed files
with
116 additions
and
45 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,12 @@ | ||
export const LANGUAGE_DART = 'dart'; | ||
export const LANGUAGE_DOCKER = 'docker'; | ||
export const LANGUAGE_DOT_NET = 'dotnet'; | ||
export const LANGUAGE_ELIXIR = 'elixir'; | ||
export const LANGUAGE_GOLANG = 'golang'; | ||
export const LANGUAGE_JAVA = 'java'; | ||
export const LANGUAGE_JAVASCRIPT = 'js'; | ||
export const LANGUAGE_NODE = 'node'; | ||
export const LANGUAGE_PHP = 'php'; | ||
export const LANGUAGE_PYTHON = 'python'; | ||
export const LANGUAGE_RUBY = 'ruby'; | ||
export const LANGUAGE_RUST = 'rust'; |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import extractPackageFile from './extract'; | ||
import updateDependency from './update'; | ||
import { LANGUAGE_DOCKER } from '../../constants/languages'; | ||
|
||
const language = 'docker'; | ||
const language = LANGUAGE_DOCKER; | ||
|
||
export { extractPackageFile, language, updateDependency }; |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { extractPackageFile } from './extract'; | ||
import { updateDependency } from './update'; | ||
import { LANGUAGE_DOCKER } from '../../constants/languages'; | ||
|
||
const language = 'docker'; | ||
const language = LANGUAGE_DOCKER; | ||
|
||
export { extractPackageFile, language, updateDependency }; |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { extractPackageFile } from './extract'; | ||
import { updateDependency } from './update'; | ||
import { LANGUAGE_DOCKER } from '../../constants/languages'; | ||
|
||
const language = 'docker'; | ||
const language = LANGUAGE_DOCKER; | ||
|
||
export { extractPackageFile, language, updateDependency }; |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { extractPackageFile } from './extract'; | ||
import { updateDependency } from './update'; | ||
import { LANGUAGE_DOCKER } from '../../constants/languages'; | ||
|
||
const language = 'docker'; | ||
const language = LANGUAGE_DOCKER; | ||
|
||
export { extractPackageFile, language, updateDependency }; |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { extractPackageFile } from './extract'; | ||
import { updateDependency } from './update'; | ||
import { LANGUAGE_DOCKER } from '../../constants/languages'; | ||
|
||
const language = 'docker'; | ||
const language = LANGUAGE_DOCKER; | ||
|
||
export { extractPackageFile, language, updateDependency }; |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { extractPackageFile } from './extract'; | ||
import { updateDependency } from './update'; | ||
import { LANGUAGE_DOCKER } from '../../constants/languages'; | ||
|
||
const language = 'docker'; | ||
const language = LANGUAGE_DOCKER; | ||
|
||
export { extractPackageFile, language, updateDependency }; |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { extractPackageFile } from './extract'; | ||
import { updateDependency } from './update'; | ||
import { LANGUAGE_DOCKER } from '../../constants/languages'; | ||
|
||
const language = 'docker'; | ||
const language = LANGUAGE_DOCKER; | ||
|
||
export { extractPackageFile, language, updateDependency }; |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
import { extractPackageFile } from './extract'; | ||
import { updateDependency } from './update'; | ||
import { updateArtifacts } from './artifacts'; | ||
import { LANGUAGE_GOLANG } from '../../constants/languages'; | ||
|
||
export const language = 'golang'; | ||
export const language = LANGUAGE_GOLANG; | ||
export { extractPackageFile, updateDependency, updateArtifacts }; |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import { LANGUAGE_DOCKER } from '../../constants/languages'; | ||
|
||
export { extractPackageFile } from './extract'; | ||
export { updateDependency } from './update'; | ||
|
||
export const language = 'docker'; | ||
export const language = LANGUAGE_DOCKER; |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import { LANGUAGE_JAVA } from '../../constants/languages'; | ||
|
||
export { extractAllPackageFiles } from './extract'; | ||
export { updateDependency } from './update'; | ||
|
||
export const language = 'java'; | ||
export const language = LANGUAGE_JAVA; |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import { LANGUAGE_JAVASCRIPT } from '../../constants/languages'; | ||
|
||
export { extractPackageFile } from './extract'; | ||
export { updateDependency } from './update'; | ||
|
||
export const language = 'js'; | ||
export const language = LANGUAGE_JAVASCRIPT; |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import { LANGUAGE_ELIXIR } from '../../constants/languages'; | ||
|
||
export { extractPackageFile } from './extract'; | ||
export { updateDependency } from './update'; | ||
export { updateArtifacts } from './artifacts'; | ||
|
||
export const language = 'elixir'; | ||
export const language = LANGUAGE_ELIXIR; |
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import { LANGUAGE_JAVASCRIPT } from '../../constants/languages'; | ||
|
||
export { extractAllPackageFiles } from './extract'; | ||
export { updateDependency } from './update'; | ||
export { getRangeStrategy } from './range'; | ||
|
||
export const language = 'js'; | ||
export const language = LANGUAGE_JAVASCRIPT; | ||
export const supportsLockFileMaintenance = true; |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import { LANGUAGE_DOT_NET } from '../../constants/languages'; | ||
|
||
export { extractPackageFile } from './extract'; | ||
export { updateDependency } from './update'; | ||
|
||
export const language = 'dotnet'; | ||
export const language = LANGUAGE_DOT_NET; |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import { LANGUAGE_NODE } from '../../constants/languages'; | ||
|
||
export { extractPackageFile } from './extract'; | ||
export { updateDependency } from './update'; | ||
|
||
export const language = 'node'; | ||
export const language = LANGUAGE_NODE; |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import { LANGUAGE_PYTHON } from '../../constants/languages'; | ||
|
||
export { extractPackageFile } from './extract'; | ||
export { updateDependency } from './update'; | ||
export { getRangeStrategy } from './range'; | ||
|
||
export const language = 'python'; | ||
export const language = LANGUAGE_PYTHON; |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import { LANGUAGE_PYTHON } from '../../constants/languages'; | ||
|
||
export { extractPackageFile } from './extract'; | ||
export { updateDependency } from '../pip_requirements/update'; | ||
|
||
export const language = 'python'; | ||
export const language = LANGUAGE_PYTHON; |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import { LANGUAGE_PYTHON } from '../../constants/languages'; | ||
|
||
export { extractPackageFile } from './extract'; | ||
export { updateDependency } from './update'; | ||
export { updateArtifacts } from './artifacts'; | ||
|
||
export const language = 'python'; | ||
export const language = LANGUAGE_PYTHON; |
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import { LANGUAGE_PYTHON } from '../../constants/languages'; | ||
|
||
export { extractPackageFile } from './extract'; | ||
export { updateDependency } from './update'; | ||
export { updateArtifacts } from './artifacts'; | ||
|
||
export const language = 'python'; | ||
export const language = LANGUAGE_PYTHON; | ||
export const supportsLockFileMaintenance = false; |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import { LANGUAGE_RUBY } from '../../constants/languages'; | ||
|
||
export { extractPackageFile } from './extract'; | ||
export { updateDependency } from './update'; | ||
|
||
export const language = 'ruby'; | ||
export const language = LANGUAGE_RUBY; |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import { LANGUAGE_NODE } from '../../constants/languages'; | ||
|
||
export { extractPackageFile } from './extract'; | ||
export { getPackageUpdates } from './package'; | ||
export { updateDependency } from './update'; | ||
|
||
export const language = 'node'; | ||
export const language = LANGUAGE_NODE; |
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
Oops, something went wrong.