Skip to content

boskini/HuginnExtension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Huginn

Huginn - Visual Studio Extension

This extension provides a easy way to configure commands to run in powershell when some document are changed in Visual Studio.

👩🏽‍💻 Install and Configure

First you need download and install Huginn Extension in your visual studio. You can download at Visual Studio Marketplace 💖

After installation, you must create a configuration file in root of your project folder to activate the Huginn Extension.

📃 The name of config file must be Huginn-config.json and this file has to contains the structure data example below.

{
  "items": [
    {
      "ext": "html",
      "command":  "Copy-Item C:\Users\Boschini\index.html C:\Inetpub\wwwroot\VSExtension\web\index.html"
    },
    {
      "ext": "scss",
      "command":  "sass C:\Users\Boschini\style\style.scss C:\Inetpub\wwwroot\VSExtension\web\css\index.min.css"
    }
  ]
}

The property ext responsible to create an criteria to trigger commands when this criteria has answered. The property command....is the command 😁

🤹 How to use

You can configure ext property to watches a entire folder or file, a piece of file path or by extension, this flexibility provides a lot of ways to solve your problem.

Let me show some examples:

By piece of string This example bellow will run the command mycommand.ps1 when every document saved has HuginnExt in the file path.

⚠️ That example find a piece of string in full file path of changed document.

    {
      "ext": "HuginnExt",
      "command":  "mycommand.ps1"
    },

That command was triggered when I changed the file C:\Users\Boschini\Worspace\HuginnExt\web\style\style.scss


By file type This example will run every .scss document was saved, this is the way to watches a entire file type extension.

    {
      "ext": ".scss",
      "command":  "sass path1 path2"
    },

By specific file This example will run every style.scss was changed.

    {
      "ext": "style.scss",
      "command":  "sass path1 path2"
    },

🔰 License

Its Free

🧙🏻‍♂️ Contact Me

Rafael Boschini [email protected] My Linkedin | My Github | My Stackoverflow Profile

Then I was fertilized and grew wise;
From a word to a word I was led to a word,
From a work to a work I was led to a work.

About

Visual Studio extension who provides a easy way to run powershell commands when document is changed.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages