Skip to content

Commit 9c8e732

Browse files
committed
Added project files.
1 parent 80b27fd commit 9c8e732

File tree

5 files changed

+127
-0
lines changed

5 files changed

+127
-0
lines changed

jest.config.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
globals: {
3+
"ts-jest": {
4+
tsConfig: "tsconfig.json"
5+
}
6+
},
7+
moduleFileExtensions: ["ts", "js"],
8+
transform: {
9+
"^.+\\.(ts|tsx)$": "ts-jest"
10+
},
11+
testMatch: ["**/tests/**/*.spec.(ts)"],
12+
testEnvironment: "node"
13+
};

jsconfig.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"typeAcquisition": {
3+
"include": ["jest"]
4+
}
5+
}

package.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "@blendsdk/postgresql",
3+
"version": "1.0.0",
4+
"description": "A Promise based Database Access library for PostgreSQL",
5+
"main": "dist/index.js",
6+
"author": "Gevik Babakhani",
7+
"license": "MIT",
8+
"types": "./dist/index.ts",
9+
"scripts": {
10+
"build": "rm -fR ./dist && tsc",
11+
"watch": "rm -fR ./dist && tsc -w ",
12+
"fiddle": "node ./dist/fiddle.js",
13+
"test": "jest --detectOpenHandles"
14+
},
15+
"dependencies": {
16+
"pg": "^7.11.0",
17+
"typescript": "^3.5.2",
18+
"winston": "^3.2.1",
19+
"yesql": "^3.2.2"
20+
},
21+
"devDependencies": {
22+
"@types/jest": "^24.0.15",
23+
"@types/pg": "^7.4.14",
24+
"@types/yesql": "^3.2.1",
25+
"jest": "^24.8.0",
26+
"ts-jest": "^24.0.2",
27+
"tslib": "^1.10.0"
28+
}
29+
}

tsconfig.json

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"compilerOptions": {
3+
/* Basic Options */
4+
"target": "es6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */,
5+
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
6+
"lib": [
7+
"dom",
8+
"es6"
9+
] /* Specify library files to be included in the compilation. */,
10+
// "allowJs": true, /* Allow javascript files to be compiled. */
11+
// "checkJs": true, /* Report errors in .js files. */
12+
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
13+
"declaration": true /* Generates corresponding '.d.ts' file. */,
14+
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
15+
"sourceMap": true /* Generates corresponding '.map' file. */,
16+
// "outFile": "./" /* Concatenate and emit output to single file. */,
17+
"outDir": "./dist" /* Redirect output structure to the directory. */,
18+
"rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
19+
// "composite": true, /* Enable project compilation */
20+
// "removeComments": true, /* Do not emit comments to output. */
21+
// "noEmit": true, /* Do not emit outputs. */
22+
"importHelpers": true /* Import emit helpers from 'tslib'. */,
23+
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
24+
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
25+
/* Strict Type-Checking Options */
26+
//"strict": true /* Enable all strict type-checking options. */,
27+
// "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
28+
"strictNullChecks": false /* Enable strict null checks. */,
29+
"strictFunctionTypes": false /* Enable strict checking of function types. */,
30+
"strictPropertyInitialization": false /* Enable strict checking of property initialization in classes. */,
31+
// "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
32+
// "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
33+
/* Additional Checks */
34+
// "noUnusedLocals": true, /* Report errors on unused locals. */
35+
// "noUnusedParameters": true, /* Report errors on unused parameters. */
36+
// "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
37+
// "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
38+
/* Module Resolution Options */
39+
"moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */,
40+
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
41+
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
42+
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
43+
// "typeRoots": [], /* List of folders to include type definitions from. */
44+
// "types": [], /* Type declaration files to be included in compilation. */
45+
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
46+
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
47+
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
48+
/* Source Map Options */
49+
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
50+
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
51+
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
52+
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
53+
/* Experimental Options */
54+
"experimentalDecorators": true /* Enables experimental support for ES7 decorators. */,
55+
"emitDecoratorMetadata": true /* Enables experimental support for emitting type metadata for decorators. */
56+
}
57+
}

tslint.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"defaultSeverity": "error",
3+
"linterOptions": {
4+
"exclude": ["**/node_modules/**/*", "**/dist/**/*"]
5+
},
6+
"extends": ["tslint:recommended"],
7+
"jsRules": {},
8+
"rules": {
9+
"trailing-comma": false,
10+
"indent": false,
11+
"arrow-parens": false,
12+
"one-variable-per-declaration": false,
13+
"object-literal-sort-keys": false,
14+
"no-empty-interface": false,
15+
"no-empty": false,
16+
"member-ordering": false,
17+
"object-literal-key-quotes": false,
18+
"no-console": false,
19+
"max-line-length": false,
20+
"variable-name": false
21+
},
22+
"rulesDirectory": []
23+
}

0 commit comments

Comments
 (0)