Skip to content

Commit a540193

Browse files
committed
🎉 Initial commit
0 parents  commit a540193

File tree

11 files changed

+4004
-0
lines changed

11 files changed

+4004
-0
lines changed

‎.babelrc‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["env"]
3+
}

‎.eslintrc‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "airbnb-base",
3+
"plugins": [
4+
"import"
5+
]
6+
}

‎.gitignore‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# modules
2+
node_modules
3+
4+
# generated
5+
dest
6+
.nyc*
7+
coverage
8+
9+
# macOS
10+
.DS_STORE

‎.travis.yml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: node_js
2+
sudo: true
3+
dist: trusty
4+
node_js:
5+
- "4"
6+
- "6"
7+
install:
8+
- npm i -g npm
9+
- npm install
10+
script: npm test
11+
notifications:
12+
email:
13+
on_failure: change
14+
after_success:
15+
- npm run coveralls

‎LICENSE‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2016 Jan Peer Stöcklmair
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎README.md‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# semantic-git-commits-cli
2+
3+
[![Build Status](https://travis-ci.org/JPeer264/node-semantic-git-commits-cli.svg?branch=master)](https://travis-ci.org/JPeer264/node-semantic-git-commits-cli) [![Coverage Status](https://coveralls.io/repos/github/JPeer264/node-semantic-git-commits-cli/badge.svg?branch=master)](https://coveralls.io/github/JPeer264/node-semantic-git-commits-cli?branch=master)
4+
5+
## Usage
6+
7+
```sh
8+
$ npm i -g MODULE_NAME
9+
```
10+
or
11+
```sh
12+
$ yarn add global MODULE_NAME
13+
```
14+
15+
After installation it is available in your shell as:
16+
```sh
17+
$ semantic-git-commits
18+
```
19+
or even shorter:
20+
```sh
21+
$ sgc
22+
```

‎lib/cli.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env node
2+
3+
import { argv } from 'yargs';
4+
5+
console.log(argv);

‎lib/router.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default true;

‎package.json‎

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"name": "semantic-git-commits-cli",
3+
"version": "0.0.0",
4+
"description": "",
5+
"main": "lib",
6+
"bin": {
7+
"semantic-git-commits": "./dest/cli.js",
8+
"sgc": "./dest/cli.js"
9+
},
10+
"scripts": {
11+
"pretest": "npm run lint",
12+
"test": "nyc ava",
13+
"lint": "eslint lib tests",
14+
"prepublish": "npm test",
15+
"postinstall": "npm run babel",
16+
"babel": "babel lib -d dest",
17+
"coveralls": "nyc report --reporter=text-lcov | coveralls"
18+
},
19+
"files": [
20+
"lib"
21+
],
22+
"ava": {
23+
"require": "babel-register",
24+
"babel": "inherit"
25+
},
26+
"nyc": {
27+
"exclude": [
28+
"test"
29+
]
30+
},
31+
"repository": {
32+
"type": "git",
33+
"url": "git+https://github.com/JPeer264/node-semantic-git-commits-cli.git"
34+
},
35+
"author": "Jan Peer Stöcklmair <[email protected]>",
36+
"license": "MIT",
37+
"bugs": {
38+
"url": "https://github.com/JPeer264/node-semantic-git-commits-cli/issues"
39+
},
40+
"homepage": "https://github.com/JPeer264/node-semantic-git-commits-cli#readme",
41+
"devDependencies": {
42+
"ava": "^0.18.2",
43+
"babel-cli": "^6.24.0",
44+
"babel-preset-env": "^1.2.1",
45+
"coveralls": "^2.12.0",
46+
"eslint": "^3.17.1",
47+
"eslint-config-airbnb-base": "^11.1.1",
48+
"eslint-plugin-import": "^2.2.0",
49+
"nyc": "^10.1.2"
50+
},
51+
"dependencies": {
52+
"yargs": "^7.0.2"
53+
}
54+
}

‎test/router.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import test from 'ava';
2+
import router from '../lib/router';
3+
4+
test((t) => {
5+
t.true(router);
6+
});

0 commit comments

Comments
 (0)