Ushahidi Platform Pattern Library
Adding Packages
Third party packages, libraries or plugins can be added to your project for additional features and functionality.
Installing New Packages
New packages can be added to your project via Bower or NPM.
Bower Example
bower install example-package --save-dev
This command does the following:
- installs example-package into the
bower_components
directory at the project root. - saves example-package as a project dependency in
bower.json
the bower_components
directory is created during initial set up.
NPM Example
npm install example-package --save-dev
This command does the following:
- installs example-package into the
node_modules
directory at the project root. - saves example-package as a project dependency in
package.json
the node_modules
directory is created during initial set up.
After installation you will need to follow the directions for each package in order to set up within your project. These can usually be found in the README file.