create-github-repo
Advanced tools
Comparing version 0.2.1 to 0.2.2
{ | ||
"name": "create-github-repo", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Create your github repos like a champ!", | ||
@@ -9,11 +9,12 @@ "main": "lib/index.js", | ||
"clean": "rm -rf ./lib", | ||
"build": "", | ||
"babel:transpile": "babel ./src --out-dir ./lib", | ||
"babel:watch": "npm run babel:transpile -- --watch", | ||
"dev": "npm run babel:watch", | ||
"test": "mocha test -w --compilers js:babel-register" | ||
"test": "mocha test --compilers js:babel-register", | ||
"test:watch": "npm run test -- --watch", | ||
"semantic-release": "semantic-release pre && npm publish && semantic-release post" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:oskarcieslik/create-github-repo.git" | ||
"url": "https://github.com/oskarcieslik/create-github-repo.git" | ||
}, | ||
@@ -39,6 +40,10 @@ "keywords": [ | ||
"chai": "3.5.0", | ||
"commitizen": "2.8.1", | ||
"cz-conventional-changelog": "1.1.6", | ||
"eslint": "2.7.0", | ||
"eslint-config-airbnb": "6.2.0", | ||
"eslint-plugin-react": "4.2.3", | ||
"mocha": "2.4.5" | ||
"ghooks": "1.2.1", | ||
"mocha": "2.4.5", | ||
"semantic-release": "^4.3.5" | ||
}, | ||
@@ -51,3 +56,8 @@ "dependencies": { | ||
"random-item": "1.0.0" | ||
}, | ||
"config": { | ||
"ghooks": { | ||
"pre-commit": "npm test" | ||
} | ||
} | ||
} | ||
} |
import commander from 'commander'; | ||
commander | ||
.version('0.2.1') | ||
.usage('--name <name> [token] [options]') | ||
@@ -6,0 +5,0 @@ .arguments('<token>') |
@@ -13,3 +13,3 @@ import { expect } from 'chai'; | ||
it('should be of object type', () => { | ||
expect(cliOptions).to.be.object; | ||
expect(cliOptions).to.be.an('object'); | ||
}); | ||
@@ -16,0 +16,0 @@ |
@@ -12,5 +12,5 @@ import { expect } from 'chai'; | ||
expect(githubFactory(fakeToken)).to.be.object; | ||
expect(githubFactory(fakeToken)).to.be.an('object'); | ||
expect(githubFactory(fakeToken)).not.to.be.empty; | ||
}); | ||
}); |
18258
24
13
278