Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
demo
src
test
bower.json
Gruntfile.js
karma-e2e.conf.js
karma.conf.js
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ AngularJS directive for the [JustGage](http://justgage.com/) gauge.

## Installation

### Bower
```shell
$ bower install angular-gage
```

### NPM
```shell
$ npm install angular-gage
```

## Usage

The directive tag is `justgage`, but you can also use it as an attribute or as a class name. `angular-gage` implements
Expand Down Expand Up @@ -100,4 +106,4 @@ Francesco Pontillo (<mailto:francescopontillo@gmail.com>)
See the License for the specific language governing permissions and
limitations under the License.

```
```
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
require('./dist/angular-gage');
module.exports = 'frapontillo.gage';
4 changes: 4 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ module.exports = function(config) {
'test/spec/**/*.js'
],

preprocessors: {
'test/spec/justgageSpec.js': ['webpack']
},

// list of files / patterns to exclude
exclude: [],

Expand Down
22 changes: 15 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"name": "angular-gage",
"version": "0.1.0",
"dependencies": {},
"peerDependencies": {
"angular": ">=1.3.0",
"raphael": "^2.1.4",
"justgage": "^1.1.0"
},
"browser": "index.js",
"devDependencies": {
"grunt": "~0.4.1",
"grunt-autoprefixer": "~0.4.0",
Expand All @@ -18,21 +24,23 @@
"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-watch": "~0.5.2",
"grunt-google-cdn": "~0.2.0",
"grunt-karma": "~0.12.1",
"grunt-newer": "~0.6.1",
"grunt-ngmin": "~0.0.2",
"grunt-rev": "~0.1.0",
"grunt-svgmin": "~0.2.0",
"grunt-usemin": "~2.0.0",
"jshint-stylish": "~0.1.3",
"load-grunt-tasks": "~0.4.0",
"time-grunt": "~0.2.1",
"karma-ng-scenario": "^0.1.0",
"grunt-karma": "^0.8.3",
"karma": "^0.12.16",
"karma-ng-html2js-preprocessor": "^0.1.0",
"karma": "~0.13.21",
"karma-chrome-launcher": "^0.1.3",
"karma-jasmine": "^0.1.5",
"karma-ng-html2js-preprocessor": "^0.1.0",
"karma-ng-scenario": "^0.1.0",
"karma-phantomjs-launcher": "^0.1.4",
"karma-chrome-launcher": "^0.1.3"
"karma-webpack": "~1.7.0",
"load-grunt-tasks": "~0.4.0",
"time-grunt": "~0.2.1",
"webpack": "~1.12.14"
},
"engines": {
"node": ">=0.10.0"
Expand Down
11 changes: 11 additions & 0 deletions test/spec/justgageSpec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
'use strict';

describe('Module: justgage', function () {

it('should export the module name', function () {

expect(require('./../../index')).toEqual('frapontillo.gage');

});

});