Skip to content

Commit 4415759

Browse files
authored
Merge pull request #40 from oslabs-beta/raisa-tests
updated configs for testing
2 parents e6a8f11 + 6e034db commit 4415759

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tsconfig.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/* Language and Environment */
1414
"target": "ES6", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
1515
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
16-
"jsx": "react", /* Specify what JSX code is generated. */
16+
"jsx": "react", /* Transform JSX into React code - Specify what JSX code is generated. */
1717
// "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
1818
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
1919
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
@@ -27,7 +27,7 @@
2727
/* Modules */
2828
"module": "commonjs", /* Specify what module code is generated. */
2929
"rootDir": "./lib", /* Specify the root folder within your source files. */
30-
// "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
30+
// "moduleResolution": "node", /* Follow node.js rules for finding modules - Specify how TypeScript looks up a file from a given module specifier. */
3131
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
3232
// "paths": {
3333
// "http": ["node_modules/stream-http"]
@@ -46,12 +46,12 @@
4646
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
4747

4848
/* Emit */
49-
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
49+
"declaration": true, /* Generate .d.ts files for our library types - from TypeScript and JavaScript files in your project. */
5050
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
5151
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
52-
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
52+
// "sourceMap": true, /* Mapping JS code back to its TS file origins for debugging - Create source map files for emitted JavaScript files. */
5353
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
54-
"outDir": "./dist", /* Specify an output folder for all emitted files. */
54+
"outDir": "./dist", /* all compiled files will be placed in dist folder Specify an output folder for all emitted files. */
5555
// "removeComments": true, /* Disable emitting comments. */
5656
// "noEmit": true, /* Disable emitting files from a compilation. */
5757
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
@@ -67,7 +67,7 @@
6767
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
6868
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
6969
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
70-
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
70+
// "declarationDir": "./", /* Where to place the .d.ts files - Specify the output directory for generated declaration files. */
7171
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
7272

7373
/* Interop Constraints */
@@ -102,6 +102,6 @@
102102
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
103103
"skipLibCheck": true /* Skip type checking all .d.ts files. */
104104
},
105-
"include": ["./lib/**/*"],
106-
"exclude": ["./lib/__tests__/**/*.test.ts", "./lib/__tests__/**/*.test.tsx"]
105+
"include": ["./lib/**/*"], /* Files outside of lib will NOT be compiled. */
106+
"exclude": ["./lib/__tests__/**/*.test.ts", "./lib/__tests__/**/*.test.tsx"] /* Excluding test files from being compiled. */
107107
}

0 commit comments

Comments
 (0)