Skip to content

Instantly share code, notes, and snippets.

@hgrimelid
Last active November 8, 2016 07:45
Show Gist options
  • Save hgrimelid/dcb6c0b4f0da5d6e50512c27369fa807 to your computer and use it in GitHub Desktop.
Save hgrimelid/dcb6c0b4f0da5d6e50512c27369fa807 to your computer and use it in GitHub Desktop.
VS Code tasks and settings
// Wordpress project settings
{
"files.exclude": {
"wp-admin": true,
"wp-includes": true,
"wp-content/languages": true,
"wp-content/uploads": true,
"wp-content/upgrade": true,
"wp-content/plugins/timber-library": true,
"wp-content/plugins/admin-columns-pro": true,
"wp-content/plugins/adminimize": true,
"wp-content/plugins/advanced-custom-fields*": true,
"wp-content/plugins/autodescription": true,
"wp-content/plugins/breadcrumb-navxt": true,
"wp-content/plugins/clean-image-filenames": true,
"wp-content/plugins/disable-*": true,
"wp-content/plugins/enhanced-media-library-pro": true,
"wp-content/plugins/facetwp": true,
"wp-content/plugins/gravity*": true,
"wp-content/plugins/Gravity*": true,
"wp-content/plugins/manual-image-crop": true,
"wp-content/plugins/nginx-helper": true,
"wp-content/plugins/regenerate-thumbnails": true,
"wp-content/plugins/simple-*": true,
"wp-content/plugins/user-switching": true,
"wp-content/plugins/wp-sendgrid": true
}
}
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "sh",
"args": [
"-c"
],
"options": {
"cwd": "${workspaceRoot}"
},
"isShellCommand": true,
"showOutput": "always",
"echoCommand": true,
"tasks": [
{
"taskName": "Push",
"suppressTaskName": true,
"args": [
"git push origin master"
]
},
{
"taskName": "git status"
},
{
"taskName": "Deploy Stage",
"suppressTaskName": true,
"args": [
"thor wp:deploy -e=stage"
]
},
{
"taskName": "Deploy Prod",
"suppressTaskName": true,
"args": [
"thor wp:deploy -e=prod"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment