Skip to content

Commit

Permalink
Merge pull request #108 from spmjs/master
Browse files Browse the repository at this point in the history
Add spm support
  • Loading branch information
rstacruz committed Feb 5, 2015
2 parents ec24d05 + bccdaf7 commit 7def07f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
4 changes: 3 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ Add [nprogress.js] and [nprogress.css] to your project.
<link rel='stylesheet' href='nprogress.css'/>
```

NProgress is available via [bower] and [npm].
NProgress is available via [bower] and [npm] and [spm].

$ bower install --save nprogress
$ npm install --save nprogress

[bower]: http://bower.io/search/?q=nprogress
[npm]: https://www.npmjs.org/package/nprogress
[spm]: http://spmjs.io/package/nprogress

Basic usage
-----------
Expand Down Expand Up @@ -193,3 +194,4 @@ Authored and maintained by Rico Sta. Cruz with help from [contributors].

[![Status](https://api.travis-ci.org/rstacruz/nprogress.svg?branch=master)](http://travis-ci.org/rstacruz/nprogress)
[![npm version](https://img.shields.io/npm/v/nprogress.png)](https://npmjs.org/package/nprogress "View this project on npm")
[![spm package](http://spmjs.io/badge/nprogress)](http://spmjs.io/package/nprogress)
29 changes: 19 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,24 @@
"mocha-jsdom": "^0.1.1"
},
"dependencies": {},
"jspm": {
"format": "global",
"shim": {
"nprogress": {
"deps": ["./nprogress.css!"]
}
},
"dependencies": {
"css": "*"
}
"jspm": {
"format": "global",
"shim": {
"nprogress": {
"deps": ["./nprogress.css!"]
}
},
"dependencies": {
"css": "*"
}
},
"spm": {
"main": "nprogress.js",
"output": ["nprogress.css"],
"ignore": [
"support",
"test",
"vendor"
]
}
}

0 comments on commit 7def07f

Please # to comment.