ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Bower​Injector

by ismnoiet ST3

A sublime text plugin to inject bower dependencies inside index.html

Details

Installs

  • Total 990
  • Win 643
  • OS X 197
  • Linux 150
Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11
Windows 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 2 0 0 1 1 1
OS X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

sublime3-bower-Injector

A sublime text 3 plugin that inject all bower dependencies in the index.html page of the current project

Screenshot

BowerInjector Screenshot

Dependencies

you should have python 3 already installed on your machine and Sublime text 3.

Installation

In order to install this plugin you have two options, the manual option and the package control one(the easy choice)

Manually

You can easily install this plugin manually, simply download the zip file and extract it to sublime text Packages folder

Package Control

Installation through package control is recommended. It will handle updating your packages as they become available. To install, do the following.

  • In the Command Palette, enter Package Control: Install Package
  • Search for BowerInjector

How does it work ?

Now the plugin is installed and ready to be used. Let's say that you have a project organized like the following:

myProject/
├── otherStuff/
├── bower_components/
│   ├── jquery/
│   ├── bootstrap/
│   └── ...
│
├── bower.json  
└── index.html

simply add bower:css or bower:js to index.html depending on what you want to load, generally we want to load them both so we end up with something like that :

<html>
  <head>





  </head>

  <body>






  </body>
</html>

Bonus : Now you can use bower_css or bower_css then hit tab to complete the snippet automatically rather than completing it manually

Run the plugin

You have two options : * Hit ctrl + y to execute the plugin( you can change the key ) * Fire up the command palette ctrl + shift + p and type bower injector and press enter

TODO

  • Inject dependencies in the right order (for example bootstrap depends on jquery ).
  • Possibility to pull in minfied versions(if exist).
  • Possibility to inject just specific package.