Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Commit

Permalink
composer tools
Browse files Browse the repository at this point in the history
  • Loading branch information
mkloubert committed Dec 30, 2017
1 parent 8030fa7 commit 67bcb60
Show file tree
Hide file tree
Showing 8 changed files with 345 additions and 4 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Change Log (vscode-deploy-reloaded)

## 0.9.0 (December 30th, 2017; [composer](https://getcomposer.org/))
## 0.9.0 (December 30th, 2017; [Composer](https://getcomposer.org/))

* added tools for handling [Composer](https://getcomposer.org/) packages:

![Demo Composer helpers](https://raw.githubusercontent.com/mkloubert/vscode-deploy-reloaded/master/img/demo10.gif)

* bugfixes
* code improvements
Expand Down
Binary file added img/demo10.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import * as deploy_plugins from './plugins';
import * as deploy_switch from './switch';
import * as deploy_targets from './targets';
import * as deploy_tools from './tools';
import * as deploy_tools_composer from './tools/composer';
import * as deploy_tools_npm from './tools/npm';
import * as deploy_tools_quick_execution from './tools/quickexecution';
import * as deploy_tools_send_file from './tools/sendfile';
Expand Down Expand Up @@ -1164,6 +1165,15 @@ async function activateExtension(context: vscode.ExtensionContext) {
label: '$(package) ' + i18.t('tools.npm.label'),
description: i18.t('tools.npm.description'),
state: 5,
},

{
action: async () => {
await deploy_tools_composer.showComposerTools(context);
},
label: '$(package) ' + i18.t('tools.composer.label'),
description: i18.t('tools.composer.description'),
state: 6,
}
];

Expand Down Expand Up @@ -1314,10 +1324,11 @@ async function activateExtension(context: vscode.ExtensionContext) {
}),

vscode.workspace.onDidChangeConfiguration((e) => {
deploy_tools_composer.resetComposerToolsUsage(context);
deploy_tools_npm.resetNPMToolsUsage(context);
deploy_packages.resetPackageUsage(context);
deploy_targets.resetTargetUsage(context);
deploy_tools.resetToolUsage(context);
deploy_tools_npm.resetNPMToolsUsage(context);
deploy_workspaces.resetWorkspaceUsage(context);

onDidChangeConfiguration(e).then(() => {
Expand Down
20 changes: 20 additions & 0 deletions src/i18.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,25 @@ export interface Translation {
dateTimeWithSeconds?: string;
};
tools?: {
composer?: {
description?: string;
executing?: string;
label?: string;
packageExample?: string;
runRemove?: {
composerFileContainsNoPackages?: string;
composerFileNotFound?: string;
description?: string;
errors?: {
loadingComposerFileFailed?: string;
};
label?: string;
};
runRequire?: {
description?: string;
label?: string;
};
};
createDeployScript?: {
askForNewTargetName?: string;
askForScriptPath?: string;
Expand Down Expand Up @@ -392,6 +411,7 @@ export interface Translation {
description?: string;
executing?: string;
label?: string;
moduleExample?: string;
runInstall?: {
description?: string;
enterModuleName?: string;
Expand Down
22 changes: 21 additions & 1 deletion src/lang/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,25 @@ export const translation: Translation = {
dateTimeWithSeconds: "DD.MM.YYYY HH:mm:ss",
},
tools: {
composer: {
description: "Werkzeuge für das einfache Arbeiten mit 'composer'",
executing: "Führe{0:trim,surround,leading_space} aus ...",
label: "Composer Paket Manager (composer)",
packageExample: "z.B. 'psr/log'",
runRemove: {
composerFileContainsNoPackages: "{0:trim,surround,ending_space}beinhaltet keine Pakete!",
composerFileNotFound: "Es wurde keine 'composer.json'-Datei in{0:trim,surround,leading_space} gefunden!",
errors: {
loadingComposerFileFailed: "Das Laden von{0:trim,surround,leading_space} ist fehlgeschlagen:{1:trim,surround,leading_space}",
},
description: "Führt den Befehl 'composer remove' im aktuellen Arbeitsbereich aus",
label: "'composer remove' ausführen ...",
},
runRequire: {
description: "Führt den Befehl 'composer require' im aktuellen Arbeitsbereich aus",
label: "'composer require' ausführen ...",
},
},
createDeployScript: {
askForNewTargetName: "Geben Sie bitte den Namen des neuen Ziels ein ...",
askForScriptPath: "Wo soll das Skript gespeichert werden?",
Expand Down Expand Up @@ -386,6 +405,7 @@ export const translation: Translation = {
description: "Werkzeuge für das einfache Arbeiten mit 'npm'",
executing: "Führe{0:trim,surround,leading_space} aus ...",
label: "Node Paket Manager (npm)",
moduleExample: "z.B. 'node-enumerable'",
runInstall: {
description: "Führt den Befehl 'npm install' im aktuellen Arbeitsbereich aus",
enterModuleName: "Geben Sie den Namen des NPM-Moduls an ...",
Expand All @@ -401,7 +421,7 @@ export const translation: Translation = {
errors: {
loadingPackageFileFailed: "Das Laden von{0:trim,surround,leading_space} ist fehlgeschlagen:{1:trim,surround,leading_space}",
},
packageFileContainsNoModules: "{0:trim,surround,ending_space} beinhaltet keine Module!",
packageFileContainsNoModules: "{0:trim,surround,ending_space}beinhaltet keine Module!",
packageFileNotFound: "Es wurde keine 'package.json'-Datei in{0:trim,surround,leading_space} gefunden!",
label: "'npm UNinstall' ausführen ...",
},
Expand Down
22 changes: 21 additions & 1 deletion src/lang/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,25 @@ export const translation: Translation = {
dateTimeWithSeconds: "YYYY-MM-DD HH:mm:ss",
},
tools: {
composer: {
description: "Tools for simple use of 'composer'",
executing: "Running{0:trim,surround,leading_space} ...",
label: "Composer Package Manager (composer)",
packageExample: "'psr/log' e.g.",
runRemove: {
composerFileContainsNoPackages: "{0:trim,surround,ending_space}contains no packages!",
composerFileNotFound: "No 'composer.json' file found in{0:trim,surround,leading_space}!",
errors: {
loadingComposerFileFailed: "Loading{0:trim,surround,leading_space} failed:{1:trim,surround,leading_space}",
},
description: "Runs 'composer remove' inside the current workspace",
label: "Run 'composer remove' ...",
},
runRequire: {
description: "Runs 'composer require' inside the current workspace",
label: "Run 'composer require' ...",
},
},
createDeployScript: {
askForNewTargetName: "Please define the name of the new target ...",
askForScriptPath: "What should be the path of the new file?",
Expand Down Expand Up @@ -387,6 +406,7 @@ export const translation: Translation = {
description: "Tools for simple use of 'npm'",
executing: "Running{0:trim,surround,leading_space} ...",
label: "Node Package Manager (npm)",
moduleExample: "'node-enumerable' e.g.",
runInstall: {
description: "Runs 'npm install' inside the current workspace",
enterModuleName: "Enter the name of the NPM module ...",
Expand All @@ -402,7 +422,7 @@ export const translation: Translation = {
errors: {
loadingPackageFileFailed: "Loading{0:trim,surround,leading_space} failed:{1:trim,surround,leading_space}",
},
packageFileContainsNoModules: "{0:trim,surround,ending_space} contains no modules!",
packageFileContainsNoModules: "{0:trim,surround,ending_space}contains no modules!",
packageFileNotFound: "No 'package.json' file found in{0:trim,surround,leading_space}!",
label: "Run 'npm UNinstall' ...",
},
Expand Down
Loading

0 comments on commit 67bcb60

Please sign in to comment.