Skip to content

Commit 3b8d46f

Browse files
committed
Added project skeleton.
1 parent fca1d51 commit 3b8d46f

12 files changed

+3755
-0
lines changed

.npmignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
src
2+
jest.config.js
3+
tsconfig.json
4+
tslint.json
5+
jsconfig.json
6+
.gitignore
7+
node_modules
8+
dist/tests
9+
fiddle.ts
10+
*.tgz

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Express
2+
3+
A TypeScript library of utility and helpers to be used in an express application

dist/index.d.ts

Whitespace-only changes.

dist/index.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "@blendsdk/express",
3+
"version": "0.9.0",
4+
"description": "A TypeScript library of utility and helpers to be used in an express application",
5+
"main": "dist/index.js",
6+
"author": "Gevik Babakhani <[email protected]>",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/blendsdk/express.git"
10+
},
11+
"keywords": [
12+
"http",
13+
"express"
14+
],
15+
"license": "MIT",
16+
"types": "./dist/index.d.ts",
17+
"scripts": {
18+
"build": "rm -fR ./dist && tsc",
19+
"watch": "rm -fR ./dist && tsc -w ",
20+
"fiddle": "node ./dist/fiddle.js",
21+
"test": "jest --detectOpenHandles",
22+
"patch-publish": "yarn build && yarn publish --patch --access public"
23+
},
24+
"dependencies": {
25+
"tslib": "^1.10.0",
26+
"typescript": "^3.5.2"
27+
},
28+
"devDependencies": {
29+
"@types/jest": "^24.0.15",
30+
"jest": "^24.8.0",
31+
"ts-jest": "^24.0.2"
32+
}
33+
}

src/index.ts

Whitespace-only changes.

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)