This is a script to convert any component markup into autocomplete code snippets for Sublime Text 3, Vim (Ultisnips) & PhpStorm Live Templates.
$ npm installTo convert the components' JSON, stored in /gdsComponents.json, run:
$ node converter.jsAfter running the converter, place all .sublime-snippet files from /output/gds-sublime into:
OS X: ~/Library/Application Support/Sublime Text 3/Packages/User/
Linux: TBD
Windows: TBD
In the future, the snippets will be compiled into a package for installation using Package Control.
After running the converter, place all .snippets files from /output/gds-vim into:
OS X: TBD
Linux: ~/.vim/UltiSnips/html.snippets
Windows: TBD
After running the converter, place all .xml files from /output/gds-phpstorm into:
OS X: ~/Library/Preferences/<product name><version number>/templates
Linux: ~/.<product name><version number>/config/templates
Windows: <your home directory>\.<product name><version number>\config\templates