Sublime Text snippets to create Npackd XML files.
- Make sure you already have Package Control installed
- Choose “Install Package” from the Command Palette (Super+Shift+p)
- Type “Npackd” and press Enter
- Change to your Sublime Text
Packagesdirectory - Clone repository
git clone https://github.com/idleberg/sublime-npackd.git Npackd
- Download the latest stable release
- Unzip the archive to your Sublime Text
Packagesdirectory
By default, SublimeText does not show the completion pop-up when working in the text scope, yet the completions still work. To enable the pop-up, add text.xml to auto_complete_selector in your user settings.
All available Npackd XML elements are prefixed witj npackd: and will complete as you press the Tab key. Special elements are available for npacked:license and npacked:url.
Examples:
-
npacked:file…Install.batcompletes to a file element with a path set to .Npackd\Install.bat -
npacked:license>MITcompletes to a license node for the the MIT License -
npacked:url>GitHubcompletes to an URL element for a GitHub project
You can use scaffold:Npackd to scaffold an empty XML file. Use Tab to jump between the available fields. The cheatsheet:Npackd snippet will display all available commands.
This work is licensed under the The MIT License.