Skip to content

Commit

Permalink
version 0.0.44
Browse files Browse the repository at this point in the history
  • Loading branch information
francescobianco committed Feb 12, 2018
1 parent f6c205d commit df304b5
Show file tree
Hide file tree
Showing 9 changed files with 697 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
engines:
duplication:
enabled: true
config:
languages:
- javascript
eslint:
enabled: true
fixme:
enabled: true

ratings:
paths:
- "**.js"
5 changes: 5 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"rules": {
"valid-jsdoc": "error"
}
}
5 changes: 5 additions & 0 deletions .istanbul.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
instrumentation:
include-all-sources: true

reporting:
dir: ./build/coverage
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
os: linux
group: stable
dist: trusty
sudo: required
language: node_js
node_js: 6

branches:
only: master

before_script:
- mkdir -p build/coverage
- npm install -g istanbul
- npm install -g codeclimate-test-reporter

script:
- npm run coverage

after_success:
- codeclimate-test-reporter < build/coverage/lcov.info

notifications:
email: bianco@javanile.org
24 changes: 24 additions & 0 deletions bin/yamlinc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env node
/*!
* dockerops
* Copyright(c) 2016-2017 Javanile.org
* MIT Licensed
*/

"use strict";

var fs = require("fs");
var path = require("path");
var local = path.join(process.cwd(), "node_modules/yamlinc/src/yamlinc.js");
var argv = process.argv.slice(2);
var cli = null;

if (!fs.existsSync(local)) {
cli = require("../src/cli");
} else {
cli = require(local);
}

cli.run(argv, function (output) {
//console.log(output);
});
28 changes: 28 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "yamlinc",
"version": "0.0.44",
"license": "MIT",
"author": {
"name": "Francesco Bianco",
"email": "bianco@javanile.org"
},
"repository": {
"type": "git",
"url": "https://github.com/javanile/yamlinc.git"
},
"bin": {
"yamlinc": "./bin/yamlinc"
},
"scripts": {
"test": "mocha --reporter spec --recursive | sed '/^\\s*$/d'",
"coverage": "istanbul cover node_modules/mocha/bin/_mocha -- -R spec --recursive"
},
"devDependencies": {
"chai": "^3.5.0",
"chai-fs": "^1.0.0",
"mocha": "^3.2.0"
},
"dependencies": {
"yamljs": "^0.3.0"
}
}
Loading

0 comments on commit df304b5

Please sign in to comment.