Skip to content

Commit

Permalink
Chore: add basic setup
Browse files Browse the repository at this point in the history
  • Loading branch information
aichbauer committed May 16, 2017
1 parent 98f6767 commit b732894
Show file tree
Hide file tree
Showing 11 changed files with 4,015 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["env"]
}
6 changes: 6 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "airbnb-base",
"plugins": [
"import"
]
}
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# modules
node_modules
npm-debug.log

# generated
dest
.nyc*
coverage

# macOS
.DS_STORE

# IDE / Editors
.vscode
9 changes: 9 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
lib
.nyc_output
coverage
test
.babelrc
.eslintrc
.travis.yml
appveyor.yml
yarn.lock
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: node_js
sudo: true
dist: trusty
node_js:
- "4"
- "6"
install:
- yarn
script: npm test
notifications:
email:
on_failure: change
on_success: change
after_success:
- npm run coveralls
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 Lukas Aichbauer

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
26 changes: 26 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Test against this version of Node.js
environment:
matrix:
# node.js
- nodejs_version: "4"
- nodejs_version: "6"

# Install scripts. (runs after repo cloning)
install:
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version
# install modules
- npm config set loglevel warn
- npm i -g npm
- npm i

# Post-install test scripts.
test_script:
# Output useful info for debugging.
- node --version
- npm --version
# run tests
- npm test

# Don't actually build.
build: off
Empty file added lib/.gitkeep
Empty file.
63 changes: 58 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,64 @@
{
"name": "semantic-git-release-cli",
"version": "0.0.0",
"description": "",
"main": "index.js",
"description": "A CLI for semantic git releases",
"main": "dest",
"bin": {
"semantic-git-release": "./dest/cli.js",
"sgr": "dest/cli.js"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"pretest": "npm run lint & npm run babel",
"test": "nyc ava -s",
"lint": "eslint lib test",
"babel": "babel lib -d dest",
"prepublish": "npm run babel",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
},
"ava": {
"require": [
"babel-register",
"babel-polyfill"
],
"babel": "inherit"
},
"nyc": {
"exclude": [
"test",
"dest"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/rudolfsonjunior/node-semantic-git-release-cli.git"
},
"author": "Lukas Aichbauer <l.aichbauer@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/rudolfsonjunior/node-semantic-git-release-cli/issues"
},
"keywords": [
"semantic",
"git",
"release",
"cli",
"fast",
"enhance",
"workflow"
],
"homepage": "https://github.com/rudolfsonjunior/node-semantic-git-release-cli#readme",
"devDependencies": {
"ava": "^0.18.2",
"babel-cli": "^6.24.0",
"babel-polyfill": "^6.23.0",
"babel-preset-env": "^1.2.1",
"coveralls": "^2.12.0",
"eslint": "^3.17.1",
"eslint-config-airbnb-base": "^11.1.1",
"eslint-plugin-import": "^2.2.0",
"husky": "^0.13.2",
"nyc": "^10.1.2"
},
"author": "",
"license": "MIT"
"dependencies": {
}
}
Empty file added test/.gitkeep
Empty file.

0 comments on commit b732894

Please sign in to comment.