Skip to content

Commit

Permalink
Release v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tunnckoCore committed Nov 6, 2014
1 parent a0fb8ad commit 09a341e
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 15 deletions.
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -10,11 +10,11 @@ test:
@NODE_ENV=test mocha

test-cov:
$(MAKE) test
$(MAKE) lint
@NODE_ENV=test ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha

test-travis:
$(MAKE) test
$(MAKE) lint
@NODE_ENV=test ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly

clean:
Expand Down
4 changes: 4 additions & 0 deletions history.md
@@ -1,3 +1,7 @@
## v1.0.0 / November 6, 2014
- first: Release v1.0.0
- can't use Travis for check the build, but all is okey, test it

## v0.0.1 / November 5, 2014
- initial commits

Expand Down
45 changes: 41 additions & 4 deletions package.json
@@ -1,13 +1,14 @@
{
"name": "homepage",
"version": "0.0.1",
"version": "1.0.0",
"description": "Open NPM package/module homepage url from NPM registry. Support CLI and Promises",
"main": "index.js",
"scripts": {
"lint": "npm install && jshint bin/*.js lib/*.js test/*.js index.js",
"test": "npm run lint && mocha",
"test-cov": "npm test && istanbul cover _mocha",
"test-travis": "npm test && istanbul cover _mocha --report lcovonly"
"test-cov": "npm run lint && istanbul cover _mocha",
"test-travis": "npm run lint && istanbul cover _mocha --report lcovonly",
"clean": "rm -rf node_modules coverage"
},
"author": {
"name": "Charlike Make Reagent",
Expand All @@ -19,7 +20,43 @@
"type": "git",
"url": "git://github.com/tunnckoCore/homepage.git"
},
"keywords": [],
"keywords": [
"github",
"oboe",
"stream",
"streaming",
"npm",
"npm registry",
"registry",
"open",
"homepage",
"url",
"home",
"opener",
"faster",
"fast",
"util",
"utils",
"page open",
"package homepage",
"module homepage",
"module open",
"package open",
"pkg open",
"pkg",
"cli",
"helper",
"support",
"cli util",
"cli helper",
"cli support",
"cli promise",
"promise",
"promises",
"promises-aplus",
"Promises/A+"

],
"dependencies": {
"opn": "*",
"oboe": "*",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
@@ -1,4 +1,4 @@
# homepage [![NPM version][npmjs-shields]][npmjs-url] [![Build Status][travis-img]][travis-url] [![Dependency Status][depstat-img]][depstat-url] [![Coveralls][coveralls-shields]][coveralls-url]
# homepage [![NPM version][npmjs-shields]][npmjs-url] [![Dependency Status][depstat-img]][depstat-url] [![Coveralls][coveralls-shields]][coveralls-url]
> Open NPM package/module homepage url from NPM registry.
Support CLI and Promises

Expand Down
16 changes: 8 additions & 8 deletions test/test.js
Expand Up @@ -16,7 +16,7 @@ var homepage = require('../index');
describe('homepage cli', function() {
describe('should open https://github.com/tunnckoCore/homepage', function() {
it('when 1st arg is object and promise:true', function (done) {
this.timeout(400000);
this.timeout(15000);
homepage({promise: true})
.then(function resolve(res) {
assert(typeof res === 'object' && typeof res.visit === 'string')
Expand All @@ -28,7 +28,7 @@ describe('homepage cli', function() {

describe('should open url when', function() {
it('2nd arg `callback`', function (done) {
this.timeout(400000);
this.timeout(15000);
homepage('mocha', function(err, res) {
assert(err === null)
assert(typeof res === 'object' && typeof res.visit === 'string')
Expand All @@ -37,7 +37,7 @@ describe('homepage cli', function() {
});

it('2nd arg `true`, 3rd `callback`', function (done) {
this.timeout(400000);
this.timeout(15000);
homepage('express', true, function(err, res) {
assert(err === null)
assert(typeof res === 'object' && typeof res.visit === 'string')
Expand All @@ -46,7 +46,7 @@ describe('homepage cli', function() {
});

it('2nd arg `false`, 3rd `callback`', function (done) {
this.timeout(400000);
this.timeout(15000);
homepage('gulp', false, function(err, res) {
assert(err === null)
assert(typeof res === 'object' && typeof res.visit === 'string')
Expand All @@ -55,7 +55,7 @@ describe('homepage cli', function() {
});

it('2nd arg `options.promise:true`, 3rd `callback` - not used', function (done) {
this.timeout(400000);
this.timeout(15000);
homepage('connect', {promise: true}, function(err, res) {
console.log('not come here', err, res)
})
Expand All @@ -66,7 +66,7 @@ describe('homepage cli', function() {
});

it('1st arg `options`, 2nd `callback`', function (done) {
this.timeout(400000);
this.timeout(15000);
homepage({name: 'koa'}, function(err, res) {
assert(err === null)
assert(typeof res === 'object' && typeof res.visit === 'string')
Expand All @@ -75,7 +75,7 @@ describe('homepage cli', function() {
});

it('1st arg `options`, `promise:true`, 2nd `callback` - not used', function (done) {
this.timeout(400000);
this.timeout(15000);
homepage({name: 'lodash', promise: true}, function(err, res) {
console.log('not come here', err, res)
})
Expand All @@ -86,7 +86,7 @@ describe('homepage cli', function() {
});

it('1st arg `options`, `promise:false`, 2nd `callback` used', function (done) {
this.timeout(400000);
this.timeout(15000);
homepage({name: 'underscore', promise: false}, function(err, res) {
assert(err === null)
assert(typeof res === 'object' && typeof res.visit === 'string')
Expand Down

0 comments on commit 09a341e

Please sign in to comment.