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

How to run "Deploy: Deploy workspace" on save? #165

Open
2u4uold opened this issue Jul 12, 2019 · 0 comments
Open

How to run "Deploy: Deploy workspace" on save? #165

2u4uold opened this issue Jul 12, 2019 · 0 comments

Comments

@2u4uold
Copy link

2u4uold commented Jul 12, 2019

I need to deploy only bundle files (bundle.js and main-bundle.css) after they were changed (it happens with webpack) to glassfish folder.

I tried to use deployOnSave but it deploys src file which was actually saved. I came to this code:

{
    "deploy": {
        "packages": [{
            "name": "Version 1",
            "description": "Copy files to GF",
            "files": [
                "/bundle.js",
                "/master-bundle.css"
            ],
            "exclude": [
                "node_modules/**",
                "src/**"
            ],
            "deployOnSave": ["project"]
        }],
        "targets": [
            {
                "type": "local",
                "name": "project",
                "description": "Copy files to GF",
                "dir": "C:/root/to/file"
            }
        ]
    }
}

But is works only when I run "Deploy: Deploy workspace" and doesn't work when I save files with "Deploy: Srart/stop listening for remote files".

Is there any way I can run "Deploy: Deploy workspace" on file save?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant