Skip to content

Commit 79456b0

Browse files
feat: initial setup commit
0 parents  commit 79456b0

File tree

6 files changed

+5017
-0
lines changed

6 files changed

+5017
-0
lines changed

.commitlintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"]
3+
}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist/
2+
node_modules/

package.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "typescript-algorithms",
3+
"version": "1.0.0",
4+
"description": "Algorithms and data structures implemented in TypeScript",
5+
"main": "dist/index.js",
6+
"repository": "https://github.com/francislagares/typescript-algorithms.git",
7+
"author": "Francis Lagares",
8+
"license": "MIT",
9+
"scripts": {
10+
"build": "tsc --watch",
11+
"start": "nodemon dist/index.js",
12+
"dev": "concurrently \"yarn:build\" \"yarn:start\""
13+
},
14+
"husky": {
15+
"hooks": {
16+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
17+
}
18+
},
19+
"devDependencies": {
20+
"@commitlint/cli": "^11.0.0",
21+
"@commitlint/config-conventional": "^11.0.0",
22+
"@types/jest": "^26.0.15",
23+
"concurrently": "^5.3.0",
24+
"husky": "^4.3.0",
25+
"jest": "^26.6.3",
26+
"nodemon": "^2.0.6",
27+
"ts-jest": "^26.4.4",
28+
"typescript": "^4.1.2"
29+
}
30+
}

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log('Typescript Data Structures & Algorithms');

tsconfig.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"compilerOptions": {
3+
/* Visit https://aka.ms/tsconfig.json to read more about this file */
4+
5+
/* Basic Options */
6+
"target": "es6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
7+
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
8+
"lib": [
9+
"DOM",
10+
"ES6",
11+
"DOM.Iterable",
12+
"ScriptHost"
13+
] /* Specify library files to be included in the compilation. */,
14+
"sourceMap": true /* Generates corresponding '.map' file. */,
15+
"outDir": "./dist" /* Redirect output structure to the directory. */,
16+
"rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
17+
"removeComments": true /* Do not emit comments to output. */,
18+
"noEmitOnError": true,
19+
20+
/* Additional Checks */
21+
"noUnusedLocals": true /* Report errors on unused locals. */,
22+
"noUnusedParameters": true /* Report errors on unused parameters. */,
23+
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
24+
25+
/* Module Resolution Options */
26+
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
27+
28+
/* Experimental Options */
29+
"experimentalDecorators": true /* Enables experimental support for ES7 decorators. */,
30+
31+
/* Advanced Options */
32+
"skipLibCheck": true /* Skip type checking of declaration files. */,
33+
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
34+
},
35+
"exclude": ["node_modules"]
36+
}

0 commit comments

Comments
 (0)