npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@phoenix-plugin-registry/ai.brackets-build-system

v1.0.2

Published

Allows to execute commands via keyboard shortcuts & menu items - similar to sublime text's build system. Made possible thanks to Anton Ivanov the creator of Command Line Shortcuts Extension.

Downloads

1

Readme

Brackets Build System Extension

Brackets IDE extension. Adds support of keyboard shortcuts and menu items for execution of terminal commands right from the IDE.

Configuration

Activate the menu item Build -> Configuration... to open the configuration of commands for the extension.

Example configuration

[
  {
    "name": "Example",
    "dir": "$PROJECT_ROOT/$PROJECT_NAME/$FULL_FILE_NAME/$FILE_NAME",
    "cmd": "build $PROJECT_NAME/$FULL_FILE_NAME",
    "Dcmd": "Debug Command",
    "Rcmd": "Run $FILE_NAME.sth",
    "shortcut": "Ctrl-Shift-Alt-N",
    "seperator": "\n",
    "autohide": true
  }
]
  • name name of the configuration entry and menu item, required

  • dir specifies the directory in which the command should be run, required.

  • cmd the actual command runned by triggering the command in the menu item or by it's shortcut then using the menu item Build (Build -> Build <F9>), required.

  • Dcmd the debug command (which is only executed if the debug mode is activated) executed using the menu item Build (Build -> Build <F9>), optional (if not specified the actual command will be executed instead).

  • Rcmd the run command which is executed to run the compiled file using the menu item Run (Build -> Run <F10>).

  • shortcut the keyboard shortcut that will activate the command so make sure it's not already used somewhere else, required.

  • seperator regular expression used to seperate output (default - newline), optional.

  • autohide whether the feedback panel with the command output should be hidden automatically after a few seconds or not, optional.

  • Special Variables : these variables are replaced, when the command is executed, by their values. This way, when opening multiple projects/files in a sequence the commands will be applicable for each project/file provided. The variables are :-

    • $PROJECT_ROOT represents the root directory of the currently open project.
    • $PROJECT_NAME represents the project name (project directory name).
    • $FULL_FILE_NAME represents the currently opened file name with it's extension.
    • $FILE_NAME represents the currently opened file name without it's extension.
    • $FILE_PATH represents the currently opened file path.

NOTE: required properties if ommited will not produce an error massage.

In order for changes to be applied just reload Brackets.

How To Use

This extension is similar to sublime text editor's build systems. The following are some useful instructions :-

Use menu items

After re-loading Brackets with the latest version of the configuration just use the menu build. In the example above

Build -> Example will trigger the command so it will be executed when Build (Build -> Build <F9>) is activated.

Use shortcuts

After re-loading Brackets with the latest version of the configuration just use the shortcuts. In the example above

Ctrl-Shift-Alt-N will trigger the command.

Notes

  1. The Build menu item (Build -> Build <F9>) will build the triggered command using it's cmd (or Dcmd if Debug Mode is enabled) property as the command.

  2. The Run menu item (Build -> Run <F10>) will run the triggered command using it's Rcmd property as the command.

  3. if Debug Mode is Enabled (Build -> Debug Mode <CTRL-F9>) the command stored in Dcmd will be used in building, see Dcmd for more details.

  4. if Auto Clear is Enabled (Build -> Auto Clear <CTRL-F10>) the panel will be cleared before the execution of a command.

  5. if Auto Save All on Build is Enabled (Build -> Save All on Build <CTRL-F11>) all open files will be saved before the execution of a build command.

Supported Platforms

The extension has been tested on Windows 7, but should work on any platform or so I HOPE :).

Future Plans

  1. Parse the output in panel to display line, massage, and file in which the error occured on click (like in replace panel).
  2. Make editing configurations easier through a modal dialog with add, edit and remove options.
  3. Add Automatic build based on the current open file.
  4. Add Build and Run menu entry.

Report Issues and Feature Requests

Issues and feature requests can be reported at https://github.com/aymanizz/Brackets-Build-Systems/issues

License

MIT License. see LICENSE for more details.

Credits

The extension was built on top of Command Line Shortcuts, which was in part inspired by Brackets Builder.