Skip to content

Instantly share code, notes, and snippets.

@gsabater
Last active February 14, 2019 22:55
Show Gist options
  • Save gsabater/f34ce9b8160501eb5f6e1f2a489f5353 to your computer and use it in GitHub Desktop.
Save gsabater/f34ce9b8160501eb5f6e1f2a489f5353 to your computer and use it in GitHub Desktop.
"packages": [
{
"name": "WEBPACK",
"files": [
"public/css/bundle.css",
"public/js/bundle.js"
]
}
],
"buttons": [
{
"text": "🚚 NPM",
"tooltip": "Upload npm run defined files in .vscode/settings.json",
"command": "extension.deploy.reloaded.deployPackageFiles",
"arguments": ["WEBPACK", "REMOTE"]
}
]
{
"deploy.reloaded": {
// Server targets
// Here you can define multiple remote servers
"targets": [
{
"type": "sftp",
"name": "REMOTE",
"host": "25.255.25.255",
// "port": 22,
"user": "USER",
"password": "*****",
"dir": "/srv/users/mysite/public/"
}
],
// Packages
// Every package defines a group of files
"packages": [
{
"name": "LOCAL",
"description": "Local files",
"deployOnSave": ["REMOTE"],
"fastCheckOnSave": true,
"checkBeforeDeploy": true,
"files": ["**/*.*"],
"exclude": [
"\\.DS_Store",
"Thumbs\\.db",
"desktop\\.ini",
"tests/**",
"*git/**",
".vscode"
]
}
],
// Display the operation feedback for duration
"showStatusWhenFinished": 3000
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment