Skip to content

Commit 512886c

Browse files
committed
first commit
0 parents commit 512886c

File tree

9 files changed

+273
-0
lines changed

9 files changed

+273
-0
lines changed

.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[*.md]
11+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
coverage
2+
**/templates

.eslintrc.json

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
{
2+
"env": {
3+
"mocha": true,
4+
"es6": true,
5+
"node": true
6+
},
7+
"globals": {
8+
"assert": true,
9+
"browser": true,
10+
"expect": true,
11+
"protractor": true,
12+
"sinon": true,
13+
"xdescribe": true,
14+
"xit": true,
15+
"by": true,
16+
"element": true,
17+
"describe": true,
18+
"djantajs": true
19+
},
20+
"plugins": ["nodeca"],
21+
"rules": {
22+
"comma-dangle": [2, "never"],
23+
"camelcase": 0,
24+
"complexity": [0, 11],
25+
"consistent-return": 2,
26+
"consistent-this": [1, "self"],
27+
"curly": [2, "all"],
28+
"dot-notation": 2,
29+
"eol-last": 0,
30+
"eqeqeq": [2, "smart"],
31+
"indent": [0, 2, {"SwitchCase": 1}],
32+
"new-cap": 0,
33+
"nodeca/indent": [2, "spaces", 2],
34+
"max-depth": [0, 4],
35+
"max-len": [0, 80, 4],
36+
"max-nested-callbacks": [0, 2],
37+
"max-params": [0, 15],
38+
"max-statements": [0, 10],
39+
"new-parens": 2,
40+
"no-alert": 2,
41+
"no-array-constructor": 2,
42+
"no-caller": 2,
43+
"no-catch-shadow": 0,
44+
"no-cond-assign": 2,
45+
"no-console": 2,
46+
"no-constant-condition": 2,
47+
"no-control-regex": 2,
48+
"no-debugger": 2,
49+
"no-delete-var": 2,
50+
"no-dupe-keys": 2,
51+
"no-empty": 0,
52+
"no-empty-character-class": 2,
53+
"no-ex-assign": 2,
54+
"no-extend-native": 2,
55+
"no-extra-boolean-cast": 2,
56+
"no-extra-parens": 1,
57+
"no-extra-semi": 2,
58+
"no-fallthrough": 2,
59+
"no-func-assign": 2,
60+
"no-implied-eval": 2,
61+
"no-invalid-regexp": 2,
62+
"no-iterator": 2,
63+
"no-label-var": 2,
64+
"no-labels": ["error", { "allowLoop": false, "allowSwitch": false}],
65+
"no-lone-blocks": 2,
66+
"no-lonely-if": 0,
67+
"no-loop-func": 2,
68+
"no-mixed-spaces-and-tabs": [2, true],
69+
"no-multi-str": 2,
70+
"no-multiple-empty-lines": [2, {"max": 1}],
71+
"no-native-reassign": 2,
72+
"no-negated-in-lhs": 2,
73+
"no-nested-ternary": 0,
74+
"no-new": 2,
75+
"no-new-func": 2,
76+
"no-new-object": 2,
77+
"no-new-require": 0,
78+
"no-new-wrappers": 2,
79+
"no-obj-calls": 2,
80+
"no-octal": 2,
81+
"no-octal-escape": 2,
82+
"no-path-concat": 2,
83+
"no-process-exit": 1,
84+
"no-proto": 2,
85+
"no-redeclare": 2,
86+
"no-regex-spaces": 2,
87+
"no-return-assign": 2,
88+
"no-script-url": 2,
89+
"no-sequences": 2,
90+
"no-shadow": 0,
91+
"no-shadow-restricted-names": 2,
92+
"no-spaced-func": 2,
93+
"no-sparse-arrays": 2,
94+
"no-sync": 0,
95+
"no-ternary": 0,
96+
"no-trailing-spaces": 2,
97+
"no-undef": 2,
98+
"no-undef-init": 2,
99+
"no-underscore-dangle": 0,
100+
"no-unreachable": 2,
101+
"no-unused-vars": [2, {"args": "none", "vars": "local"}],
102+
"no-use-before-define": 2,
103+
"no-warning-comments": [1, { "terms": ["todo", "fixme", "xxx"], "location": "start" }],
104+
"no-with": 2,
105+
"quotes": [2, "single"],
106+
"semi": 2,
107+
"semi-spacing": 2,
108+
"keyword-spacing": ["error", {"before": true, "after": false}],
109+
"space-infix-ops": [2, {"int32Hint": false}],
110+
"strict": [2, "global"],
111+
"use-isnan": 2,
112+
"valid-jsdoc": [2, { "prefer": { "return": "returns" }, "requireReturn": false, "requireParamDescription": true }],
113+
"valid-typeof": 2,
114+
"wrap-iife": [2, "any"],
115+
"yoda": [2, "never", { "exceptRange": true }]
116+
}
117+
}

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.idea
2+
**/*.iml
3+
node_modules
4+
scripts
5+
run.sh
6+
lib/git.js
7+
.travis

.jshintrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//http://jshint.com/docs/options/
2+
{
3+
"esversion": 6,
4+
"curly": true,
5+
"eqeqeq": true,
6+
"immed": true,
7+
"latedef": true,
8+
"newcap": true,
9+
"noarg": true,
10+
"sub": true,
11+
"undef": true,
12+
"boss": true,
13+
"eqnull": true,
14+
"node": true,
15+
"varstmt": true,
16+
"mocha": true,
17+
"jasmine": true
18+
}

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
examples
2+
test
3+
node_modules

Gruntfile.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
'use strict';
2+
3+
/* eslint no-sync:0 */
4+
5+
let fs = require('fs');
6+
let path = require('path');
7+
8+
module.exports = (grunt) => {
9+
grunt.loadNpmTasks('grunt-bump');
10+
11+
grunt.initConfig({
12+
bump: {
13+
options: {
14+
files: ['package.json'],
15+
updateConfigs: [],
16+
commit: true,
17+
commitMessage: 'Release v%VERSION%',
18+
commitFiles: ['package.json'],
19+
createTag: true,
20+
tagName: 'v%VERSION%',
21+
tagMessage: 'Version %VERSION%',
22+
push: true,
23+
pushTo: 'upstream',
24+
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d',
25+
globalReplace: false,
26+
prereleaseName: false,
27+
metadata: '',
28+
regExp: false
29+
}
30+
},
31+
});
32+
};

package.json

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"name": "travis-npm-deploy",
3+
"version": "0.17.0",
4+
"description": "djanta.io releasing tool module based on node implementation",
5+
"homepage": "www.djanta.io",
6+
"license": "MIT",
7+
"author": {
8+
"name": "Stanislas Koffi ASSOUTOVI",
9+
"email": "team.dev@djanta.io",
10+
"url": "www.djanta.io"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "git+ssh://git@github.com/djantaio/travis-npm-deploy.git"
15+
},
16+
"bugs": {
17+
"url": "https://github.com/djantaio/travis-npm-deploy/issues"
18+
},
19+
"keywords": [
20+
"release",
21+
"tag",
22+
"version",
23+
"git",
24+
"bump"
25+
],
26+
"engines": {
27+
"node": ">=7.0.0",
28+
"npm": ">=4.6.0"
29+
},
30+
"bin": {
31+
"djantaio-bump": "./release.js"
32+
},
33+
"main": "release.js",
34+
"publishConfig": {
35+
"access": "public"
36+
},
37+
"scripts": {
38+
"build": "echo '== echo =='",
39+
"lint": "./node_modules/.bin/eslint **/*.js",
40+
"lint-html": "./node_modules/.bin/eslint **/*.js -f html -o ./reports/lint-results.html",
41+
"hint": "./node_modules/.bin/jshint --verbose --config .jshintrc --reporter jslint",
42+
"test": "npm run hint && npm run lint-html && nyc ./node_modules/.bin/mocha ./test --reporter spec --recursive --timeout 3000 --inspect --use_strict --expose-gc --colors",
43+
"coverage": "npm run hint && npm run lint-html && nyc npm test && nyc report --reporter=text-lcov | coveralls",
44+
"bump-dry": "./node_modules/.bin/grunt bump --dry-run",
45+
"bump": "./node_modules/.bin/grunt bump",
46+
"bump-patch": "./node_modules/.bin/grunt bump:patch",
47+
"bump-minor": "./node_modules/.bin/grunt bump:minor",
48+
"bump-major": "./node_modules/.bin/grunt bump:major",
49+
"bump-git": "./node_modules/.bin/grunt bump:git",
50+
"bump-prepatch": "./node_modules/.bin/grunt bump:prepatch",
51+
"bump-prerelease": "./node_modules/.bin/grunt bump:prerelease",
52+
"bump-preminor": "./node_modules/.bin/grunt bump:preminor",
53+
"bump-premajor": "./node_modules/.bin/grunt bump:premajor"
54+
},
55+
"devDependencies": {
56+
"chai": "^3.5.0",
57+
"eslint-config-xo-space": "^0.16.0",
58+
"nyc": "^11.0.3",
59+
"eslint": "^4.5.0",
60+
"eslint-plugin-nodeca": "^1.0.3",
61+
"jshint": "^2.9.5",
62+
"mocha": "^3.3.0",
63+
"should": "^11.2.1",
64+
"standard": "^10.0.2",
65+
"grunt-bump": "^0.8.0",
66+
"grunt": "^1.0.2"
67+
},
68+
"dependencies": {
69+
"chalk": "^1.1.3",
70+
"changelog": "^1.4.1",
71+
"dateformat": "^2.0.0",
72+
"dateutil": "^0.1.0",
73+
"editorconfig": "^0.15.0",
74+
"init": "^0.1.2",
75+
"lodash": "^4.17.4",
76+
"read-yaml": "^1.1.0",
77+
"semver": "^5.4.1",
78+
"shelljs": "^0.7.8",
79+
"verb": "^0.8.10",
80+
"yargs": "^8.0.2"
81+
}
82+
}

0 commit comments

Comments
 (0)