Skip to content

Commit e2c3223

Browse files
committed
First commit
0 parents  commit e2c3223

9 files changed

+4491
-0
lines changed

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# compiled output
2+
/dist
3+
/node_modules
4+
5+
# Logs
6+
logs
7+
*.log
8+
npm-debug.log*
9+
yarn-debug.log*
10+
yarn-error.log*
11+
lerna-debug.log*
12+
13+
# OS
14+
.DS_Store
15+
16+
# Tests
17+
/coverage
18+
/.nyc_output
19+
20+
# IDEs and editors
21+
/.idea
22+
.project
23+
.classpath
24+
.c9/
25+
*.launch
26+
.settings/
27+
*.sublime-workspace
28+
29+
# IDE - VSCode
30+
.vscode/*
31+
!.vscode/settings.json
32+
!.vscode/tasks.json
33+
!.vscode/launch.json
34+
!.vscode/extensions.json

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "all"
4+
}

LICENSE.md

Lines changed: 676 additions & 0 deletions
Large diffs are not rendered by default.

jest.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
moduleFileExtensions: ['js', 'json', 'ts'],
3+
rootDir: 'src',
4+
testRegex: '.spec.ts$',
5+
transform: {
6+
'^.+\\.(t|j)s$': 'ts-jest',
7+
},
8+
};

package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "codekata-template-typescript",
3+
"version": "1.0.0",
4+
"author": "Sergio Gómez <sergio@uco.es>",
5+
"main": "index.js",
6+
"license": "GPL-3.0",
7+
"devDependencies": {
8+
"@types/jest": "^24.0.19",
9+
"@types/node": "^12.11.5",
10+
"jest": "^24.9.0",
11+
"ts-jest": "^24.1.0",
12+
"tslint": "^5.20.0",
13+
"tslint-config-prettier": "^1.18.0",
14+
"tslint-plugin-prettier": "^2.0.1",
15+
"typescript": "^3.6.4"
16+
},
17+
"scripts": {
18+
"lint": "tslint -p tsconfig.json -c tslint.json",
19+
"test": "jest"
20+
}
21+
}

tsconfig.build.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"exclude": ["node_modules", "test", "dist", "**/*spec.ts"]
4+
}

tsconfig.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"compilerOptions": {
3+
"module": "commonjs",
4+
"declaration": true,
5+
"removeComments": true,
6+
"emitDecoratorMetadata": true,
7+
"experimentalDecorators": true,
8+
"target": "es2017",
9+
"sourceMap": true,
10+
"outDir": "./dist",
11+
"baseUrl": "./",
12+
"incremental": true
13+
},
14+
"exclude": ["node_modules", "dist"]
15+
}

tslint.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"defaultSeverity": "error",
3+
"extends": ["tslint:recommended", "tslint-config-prettier"],
4+
"jsRules": {
5+
"no-unused-expression": true
6+
},
7+
"rules": {
8+
"prettier": [true, ".prettierrc"],
9+
"quotemark": [true, "single"],
10+
"member-access": [false],
11+
"ordered-imports": [false],
12+
"max-line-length": [true, 150],
13+
"member-ordering": [false],
14+
"interface-name": [false],
15+
"arrow-parens": false,
16+
"object-literal-sort-keys": false,
17+
"variable-name": {
18+
"options": [
19+
"check-format",
20+
"allow-leading-underscore",
21+
"allow-pascal-case"
22+
]
23+
}
24+
},
25+
"rulesDirectory": ["tslint-plugin-prettier"]
26+
}

0 commit comments

Comments
 (0)