Skip to content

Commit 4aac70c

Browse files
committed
init repo and init project
0 parents  commit 4aac70c

File tree

5 files changed

+164
-0
lines changed

5 files changed

+164
-0
lines changed

.editorconfig

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Main .editorconfig .
2+
3+
root = true
4+
5+
## Default options for files.
6+
[*]
7+
end_of_line = LF
8+
charset = utf-8
9+
indent_style = space
10+
indent_size = 2
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
13+
14+
## Special options for Markdown files.
15+
[*.md]
16+
indent_size = 4
17+
indent_style = tab
18+
insert_final_newline = false
19+
trim_trailing_whitespace = false
20+
21+
## Special options for Javascript ant Typescript files.
22+
[(.{js,jsx,json,ts,tsx,yml,node}]
23+
indent_size = 2
24+
indent_style = space
25+

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
node_modules/
3+
dist/
4+
5+
tmp/
6+
temp/
7+

package.json

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "versioner",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "dist/index.js",
6+
"author": "MWarCZ",
7+
"license": "MIT",
8+
"env": {
9+
"path": {
10+
"dist": "dist",
11+
"src": "src"
12+
}
13+
},
14+
"scripts": {
15+
"start": "node $npm_package_env_path_dist/index.js",
16+
"prebuild": "$npm_execpath run build:clean",
17+
"build": "$npm_execpath run tsc",
18+
"build:clean": "rimraf $npm_package_env_path_dist",
19+
"lint": "tslint -c tslint.json -p tsconfig.json --format codeFrame",
20+
"lint:fix": "$npm_execpath run lint --fix",
21+
"tsnode": "ts-node $npm_package_env_path_src/index.ts",
22+
"test": "echo \"Error: no test specified\" && exit 1"
23+
},
24+
"devDependencies": {
25+
"@types/node": "^12.7.2",
26+
"rimraf": "^3.0.0",
27+
"ts-node": "^8.3.0",
28+
"tslint": "^5.18.0",
29+
"tslint-clean-code": "^0.2.9",
30+
"typescript": "^3.5.3"
31+
},
32+
"dependencies": {
33+
"@types/minimist": "^1.2.0",
34+
"minimist": "^1.2.0"
35+
}
36+
}

tsconfig.json

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"compilerOptions": {
3+
"outDir": "dist/",
4+
"rootDir": "src/",
5+
6+
"target": "es6",
7+
"module": "commonjs",
8+
"lib": ["es6", "dom"],
9+
10+
"moduleResolution": "node",
11+
"baseUrl": "src/",
12+
"typeRoots": [
13+
"node_modules/@types",
14+
"src/types"
15+
],
16+
17+
"declaration": true,
18+
// "declarationMap": true,
19+
// "sourceMap": true,
20+
// "composite": true, /* Enable project compilation */
21+
"removeComments": true,
22+
23+
"strict": true,
24+
// "noImplicitAny": true,
25+
// "noImplicitReturns": true,
26+
// "noImplicitThis": true,
27+
//- "noUnusedParameters": true,
28+
//- "noUnusedLocals": true,
29+
// "strictFunctionTypes": true,
30+
// "strictNullChecks": true,
31+
// "strictPropertyInitialization": true,
32+
33+
"esModuleInterop": true
34+
35+
},
36+
"compileOnSave": false,
37+
"include": [
38+
"src/**/*"
39+
],
40+
"exclude": [
41+
"node_modules",
42+
".git",
43+
"tests"
44+
]
45+
}

tslint.json

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"defaultSeverity": "error",
3+
"extends": [
4+
"tslint-clean-code"
5+
],
6+
"jsRules": {},
7+
"rules": {
8+
"space-before-function-paren": [true, "never"],
9+
"whitespace": [
10+
true,
11+
"check-branch",
12+
"check-operator",
13+
"check-separator",
14+
"check-typecast"
15+
],
16+
"comment-format": [
17+
true,
18+
"check-space"
19+
],
20+
"indent": [
21+
true,
22+
"spaces",
23+
2
24+
],
25+
"no-var-keyword": true,
26+
"quotemark": [
27+
true,
28+
"single",
29+
"avoid-escape"
30+
],
31+
"semicolon": [
32+
true,
33+
"never"
34+
],
35+
"one-line": [
36+
true,
37+
"check-open-brace",
38+
"check-whitespace"
39+
],
40+
"trailing-comma": [
41+
true,
42+
{
43+
"multiline": "always",
44+
"singleline": "never"
45+
}
46+
],
47+
"jsdoc-format": true,
48+
"no-console": false
49+
},
50+
"rulesDirectory": []
51+
}

0 commit comments

Comments
 (0)