cgutierrez / JsMinifier

Sublime Text plugin for javascript minification using Google Closure compiler
131 stars 18 forks source link

Tools menu + Package Settings #6

Closed gblazex closed 12 years ago

gblazex commented 12 years ago

I could set up a Pull Request, but I'm lazy :)

You should add JS Minifier to the Tools menu and also to Package Settings menu.

file: Packages/JS Minifier/Main.sublime-menu

[
    {
        "id": "tools",
        "children":
        [

            {
                "id": "JSMin",
                "caption": "Minify Javascript",
                "command": "minify"
            }

        ]
    },
    {
        "id": "preferences",
        "children":
        [
            {
                "caption": "Package Settings",
                "id": "package-settings",
                "children":
                [
                    {
                        "caption": "JSMin",
                        "children":
                        [
                            {
                                "caption": "JSMin Settings – Default",
                                "command": "open_file",
                                "args":
                                {
                                    "file": "${packages}/JS Minifier/Minifier.sublime-settings"
                                }
                            },
                            {
                                "caption": "JSMin Settings – User",
                                "command": "open_file",
                                "args":
                                {
                                    "file": "${packages}/User/Minifier.sublime-settings"
                                }
                            }
                        ]
                    }
                ]
            }
        ]
    }    
]
cgutierrez commented 12 years ago

Cool, thanks. I'll update it later today.

gblazex commented 12 years ago

No problem.