Skip to content

Commit b732894

Browse files
committed
Chore: add basic setup
1 parent 98f6767 commit b732894

File tree

11 files changed

+4015
-5
lines changed

11 files changed

+4015
-5
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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# modules
2+
node_modules
3+
npm-debug.log
4+
5+
# generated
6+
dest
7+
.nyc*
8+
coverage
9+
10+
# macOS
11+
.DS_STORE
12+
13+
# IDE / Editors
14+
.vscode

.npmignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
lib
2+
.nyc_output
3+
coverage
4+
test
5+
.babelrc
6+
.eslintrc
7+
.travis.yml
8+
appveyor.yml
9+
yarn.lock

.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+
- yarn
9+
script: npm test
10+
notifications:
11+
email:
12+
on_failure: change
13+
on_success: 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) 2017 Lukas Aichbauer
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.

appveyor.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Test against this version of Node.js
2+
environment:
3+
matrix:
4+
# node.js
5+
- nodejs_version: "4"
6+
- nodejs_version: "6"
7+
8+
# Install scripts. (runs after repo cloning)
9+
install:
10+
# Get the latest stable version of Node.js or io.js
11+
- ps: Install-Product node $env:nodejs_version
12+
# install modules
13+
- npm config set loglevel warn
14+
- npm i -g npm
15+
- npm i
16+
17+
# Post-install test scripts.
18+
test_script:
19+
# Output useful info for debugging.
20+
- node --version
21+
- npm --version
22+
# run tests
23+
- npm test
24+
25+
# Don't actually build.
26+
build: off

lib/.gitkeep

Whitespace-only changes.

package.json

Lines changed: 58 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,64 @@
11
{
22
"name": "semantic-git-release-cli",
33
"version": "0.0.0",
4-
"description": "",
5-
"main": "index.js",
4+
"description": "A CLI for semantic git releases",
5+
"main": "dest",
6+
"bin": {
7+
"semantic-git-release": "./dest/cli.js",
8+
"sgr": "dest/cli.js"
9+
},
610
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
11+
"pretest": "npm run lint & npm run babel",
12+
"test": "nyc ava -s",
13+
"lint": "eslint lib test",
14+
"babel": "babel lib -d dest",
15+
"prepublish": "npm run babel",
16+
"coveralls": "nyc report --reporter=text-lcov | coveralls"
17+
},
18+
"ava": {
19+
"require": [
20+
"babel-register",
21+
"babel-polyfill"
22+
],
23+
"babel": "inherit"
24+
},
25+
"nyc": {
26+
"exclude": [
27+
"test",
28+
"dest"
29+
]
30+
},
31+
"repository": {
32+
"type": "git",
33+
"url": "git+https://github.com/rudolfsonjunior/node-semantic-git-release-cli.git"
34+
},
35+
"author": "Lukas Aichbauer <[email protected]>",
36+
"license": "MIT",
37+
"bugs": {
38+
"url": "https://github.com/rudolfsonjunior/node-semantic-git-release-cli/issues"
39+
},
40+
"keywords": [
41+
"semantic",
42+
"git",
43+
"release",
44+
"cli",
45+
"fast",
46+
"enhance",
47+
"workflow"
48+
],
49+
"homepage": "https://github.com/rudolfsonjunior/node-semantic-git-release-cli#readme",
50+
"devDependencies": {
51+
"ava": "^0.18.2",
52+
"babel-cli": "^6.24.0",
53+
"babel-polyfill": "^6.23.0",
54+
"babel-preset-env": "^1.2.1",
55+
"coveralls": "^2.12.0",
56+
"eslint": "^3.17.1",
57+
"eslint-config-airbnb-base": "^11.1.1",
58+
"eslint-plugin-import": "^2.2.0",
59+
"husky": "^0.13.2",
60+
"nyc": "^10.1.2"
861
},
9-
"author": "",
10-
"license": "MIT"
62+
"dependencies": {
63+
}
1164
}

test/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)