Skip to content

dabansal/MacGyver

 
 

Repository files navigation

MacGyver

Duct Tape and a Swiss Army Knife. Angular helpers for all your friends!

Build Status Selenium Test Status

Selenium Test Status

Current components

Directives

  • Affix
  • Autocomplete
  • Canvas Spinner
  • Datepicker
  • Events
  • File Upload
  • Menu
  • Modal
  • Placeholder
  • Popover
  • Scroll Spy
  • Spinner
  • Table
  • Tag Autocomplete
  • Time Input
  • Tooltip

Filters

  • Boolean
  • Pluralize
  • Timestamp
  • Underscore String

3rd party libraries dependencies

Libraries are only needed for a few directives,

  • jQuery (datepicker, table and file upload)
  • jQuery UI (datepicker and table)
  • jQuery File Upload (file upload directive)
  • Underscore String (Underscore string filter)

Using MacGyver

You can install via Bower or download from Github

To install via bower, make sure you have bower installed and then run:

bower install angular-macgyver

More bower repositories can be found at Angular MacGyver

Once you have MacGyver in your project, just include "Mac" as a dependency in your Angular application and you’re good to go.

angular.module("myModule", ["Mac"])

MacGyver includes multiple scripts,

  • macgyver.js - All directives, services and filters bundled together
  • macgyver-core.js - Utilities, events and all directives without 3rd party dependencies
  • macgyver-datepicker.js - Datepicker with jQuery UI datepicker
  • macgyver-fileupload.js - Fileupload directive with jQuery UI and jQuery fileupload
  • macgyver-filters.js - Filters except underscore string filter
  • macgyver-string-filter.js - Underscore String filter
  • macgyver-table.js - Table view

Get Started On Development

MacGyver requires a few node modules and bower packages for development environment.

The easiest way to install all requirements,

./init-project

Install all through npm

npm install

Install Bower

sudo npm -g install bower

Install Grunt

sudo npm -g install grunt-cli

Install script dependencies

bower install

Starting Grunt

To compile source code and run unit tests while developing:

grunt dev

Authors

Adrian Lee

Colin Kahn

About

AngularJS directives and services for the greater good

Resources

License

Stars

Watchers

Forks

Packages

No packages published