minor tweaks

This commit is contained in:
Sindre Sorhus
2015-01-22 17:23:36 +08:00
parent 0b22127906
commit 041d3f2843
4 changed files with 19 additions and 30 deletions

View File

@@ -1,6 +1,3 @@
before_script:
- npm install -g grunt-cli
language: node_js
node_js:
- "0.10"
- "0.8"
- '0.10'

View File

@@ -1,14 +1,10 @@
'use strict';
module.exports = function (grunt) {
'use strict';
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-simple-mocha');
// Project configuration.
grunt.initConfig({
jshint: {
files: [
'Gruntfile.js',
@@ -19,12 +15,14 @@ module.exports = function (grunt) {
jshintrc: '.jshintrc'
}
},
simplemocha: {
options: {
reporter: 'spec'
reporter: 'spec',
timeout: 20000
},
full: {
src: ['test/runner.js']
},
full: { src: ['test/runner.js'] },
short: {
options: {
reporter: 'dot'
@@ -38,16 +36,12 @@ module.exports = function (grunt) {
src: ['test/runner.js']
}
},
watch: {
files: ['<%= jshint.files %>'],
tasks: ['jshint', 'simplemocha:short']
}
});
// Default task.
grunt.registerTask('test', ['simplemocha:full']);
grunt.registerTask('default', ['jshint', 'test']);
};

View File

@@ -1,17 +1,18 @@
# bower-registry-client [![Build Status](https://secure.travis-ci.org/bower/registry-client.png?branch=master)](http://travis-ci.org/bower/registry-client)
# bower-registry-client [![Build Status](https://travis-ci.org/bower/registry-client.png?branch=master)](https://travis-ci.org/bower/registry-client)
This module allows you to easily interact with the Bower registry server API.
> Provides easy interaction with the Bower registry
Install
```sh
npm install --save bower-registry-client
## Install
```
$ npm install --save bower-registry-client
```
## Usage
```js
var RegistryClient = require('bower-registry-client');
var registry = new RegistryClient(options, logger);
```
@@ -147,7 +148,6 @@ RegistryClient.clearRuntimeCache();
```
## License
Released under the [MIT License](http://www.opensource.org/licenses/mit-license.php).

View File

@@ -1,7 +1,7 @@
{
"name": "bower-registry-client",
"version": "0.2.2",
"description": "Provides easy interaction with the Bower registry.",
"description": "Provides easy interaction with the Bower registry",
"author": "Twitter",
"licenses": [
{
@@ -9,13 +9,10 @@
"url": "https://github.com/bower/registry-client/blob/master/LICENSE"
}
],
"repository": {
"type": "git",
"url": "git://github.com/bower/registry-client.git"
},
"repository": "bower/registry-client",
"main": "Client",
"engines": {
"node": ">=0.8.0"
"node": ">=0.10.0"
},
"dependencies": {
"async": "~0.2.8",
@@ -30,8 +27,9 @@
"devDependencies": {
"expect.js": "~0.2.0",
"grunt": "~0.4.1",
"grunt-contrib-watch": "~0.5.0",
"grunt-cli": "^0.1.13",
"grunt-contrib-jshint": "~0.6.0",
"grunt-contrib-watch": "~0.5.0",
"grunt-simple-mocha": "~0.4.0",
"mocha": "~1.12.0",
"nock": "~0.22.0"