Giter VIP home page Giter VIP logo

vscode-yarn-task-provider's Introduction

Visual Studio Code Yarn Task Provider

Build Status

This extension adds better support for managing a package through Yarn Package Manager, including running yarn install and running any scripts within the scripts section of your package.json.

To begin using this package just install it either through

ext install dkneeland.yarn-task-provider

or by searching for Yarn Task Provider in the VSCode extension marketplace.

Now once you open a project with a package.json in the root directory you can use Terminal -> Run Task... and the extension will show you what tasks it has detected.

Thanks for using this! If you have any issues please create an Issue on GitHub and/or email me at [email protected].

vscode-yarn-task-provider's People

Contributors

dependabot[bot] avatar dillonkneeland avatar

vscode-yarn-task-provider's Issues

Support for yarn projects not in the folder root

Currently this extension only supports providing tasks for yarn projects in the root of the opened folder

On https://github.com/tgstation/tgstation we're using a yarn project that's in a subfolder compared to the main root so this plugin fails to detect and provide tasks for it.

This is more of a feature request than a bug, but it would be nice if situations like this were supported.

First Task Hidden After Second Task Added

Issue copied from email from user:

Thanks for your Yarn Task Provider extension for VS Code. I am having a problem with the extension when I add 2 yarn tasks. Everything was working great until I added a 2nd yarn task. After doing so, the 1st task I configured could not be found.

Here is my tasks.json file contents. If I attempt to run the debugger "Debug Frontend-functional Tests", I get the error, "Could not find the task 'yarn-build-frontend-functional-tests". If I remove the 2nd task from tasks.json (yarn-build-creation-path), the task is found and run successfully.

Am I doing something wrong?

tasks.json:

{
    "version": "2.0.0",
    "tasks": [
        {
            "type": "yarn",
            "task": "build",
            "problemMatcher": [],
            "label": "yarn-build-frontend-functional-tests",
            "options": {
                "cwd": "packages/frontend-functional-tests",
            }
        },
        {
            "type": "yarn",
            "task": "build",
            "problemMatcher": [],
            "label": "yarn-build-creation-path",
            "options": {
                "cwd": "packages/creation-path",
            },
        }
    ]
}

Launch.json (excerpt):

        {
            "name": "Debug Frontend-functional tests",
            "type": "node",
            "request": "launch",
            "program": "${workspaceRoot}/node_modules/nightwatch/bin/runner.js",
            "runtimeExecutable": null,
            "args": ["--group", "functional-web-tests"],
            "cwd": "${workspaceRoot}/packages/frontend-functional-tests",
            "protocol": "inspector",
            "console": "integratedTerminal",
            "internalConsoleOptions": "neverOpen",
            "preLaunchTask": "yarn-build-frontend-functional-tests",
            "env": {
                "NODE_ENV": "development"
            },
        },

I will be looking into this in the coming week - Dillon K

Failed to run tasks on multi-root workspace

All I get is this error:

Error: The yarn task detection didn't contribute a task for the following configuration:

I can't find any helpful error message. I have a multi-root workspace, the task works on the first root folder, but not on the second. If I open the second alone on vscode it works.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.