Variable | Provider | Example |
---|---|---|
ProgramW6432 | Windows | C:\Program Files |
NVM_SYMLINK | nvm | C:\Users\USER\AppData\Local\nvm\used |
reposFolder | C:/Users/USER/git | |
foreignReposFolder | C:/Users/USER/git/.foreign | |
globalNodeModules | C:/USER/git/node_modules |
Last active
December 19, 2023 04:35
-
-
Save Jaid/360fbcee49572c5672feefdc9469281f to your computer and use it in GitHub Desktop.
VSCode tasks.json snippets
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
{ | |
"label": "script: ports", | |
"command": "${env:foreignReposFolder}/scripts/bin/ports", | |
"options": { | |
"shell": { | |
"executable": "bash" | |
} | |
}, | |
"windows": { | |
"options": { | |
"shell": { | |
"executable": "${env:foreignReposFolder}/scripts/bin/ports.bat" | |
} | |
} | |
}, | |
"runOptions": { | |
"instanceLimit": 1 | |
}, | |
"type": "shell", | |
"presentation": { | |
"reveal": "silent", | |
"showReuseMessage": 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
{ | |
"label": "npx: fse-cli-mkdirs", | |
"command": "${env:globalNodeModules}/.bin/fse-cli-mkdirs", | |
"options": { | |
"shell": { | |
"executable": "bash" | |
} | |
}, | |
"windows": { | |
"options": { | |
"shell": { | |
"executable": "${env:ProgramW6432}/PowerShell/7/pwsh.exe", | |
"args": [ | |
"-File" | |
] | |
} | |
}, | |
"command": "${env:globalNodeModules}/.bin/fse-cli-mkdirs.ps1" | |
}, | |
"args": [ | |
"${input:newFolderName}" | |
], | |
"runOptions": { | |
"instanceLimit": 1 | |
}, | |
"type": "shell", | |
"presentation": { | |
"reveal": "silent", | |
"showReuseMessage": 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
{ | |
"label": "startRepo: ln-folder-version", | |
"command": "--prefix ${env:reposFolder}/ln-folder-version start", | |
"options": { | |
"shell": { | |
"executable": "${env:NVM_SYMLINK}/npm" | |
} | |
}, | |
"windows": { | |
"options": { | |
"shell": { | |
"executable": "${env:NVM_SYMLINK}/npm.cmd" | |
} | |
} | |
}, | |
"runOptions": { | |
"instanceLimit": 1 | |
}, | |
"type": "shell", | |
"presentation": { | |
"reveal": "silent", | |
"showReuseMessage": 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
{ | |
"label": "npm: add", | |
"command": "install --save ${input:packageName}", | |
"options": { | |
"shell": { | |
"executable": "${env:NVM_SYMLINK}/npm" | |
} | |
}, | |
"windows": { | |
"options": { | |
"shell": { | |
"executable": "${env:NVM_SYMLINK}/npm.cmd" | |
} | |
} | |
}, | |
"runOptions": { | |
"instanceLimit": 1 | |
}, | |
"type": "shell", | |
"presentation": { | |
"reveal": "silent", | |
"showReuseMessage": false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment