Browse Source

Add Jest and target ES6 in TypeScript

new-arch
David Ludwig 4 years ago
parent
commit
9b51f2418f
3 changed files with 2654 additions and 47 deletions
  1. +6
    -0
      package.json
  2. +14
    -3
      tsconfig.json
  3. +2634
    -44
      yarn.lock

+ 6
- 0
package.json View File

@ -11,11 +11,17 @@
"export:builds": "/bin/sh ./docker/scripts/export_builds.sh"
},
"devDependencies": {
"@types/jest": "^26.0.23",
"@types/node": "^15.12.2",
"@zerollup/ts-transform-paths": "^1.7.18",
"jest": "^26.5.3",
"lerna": "^4.0.0",
"nodemon": "^2.0.7",
"rimraf": "^3.0.2",
"ts-jest": "^26.5.3",
"ts-node": "^10.0.0",
"tsconfig-paths": "^3.9.0",
"ttypescript": "^1.5.12",
"typescript": "^4.3.2"
}
}

+ 14
- 3
tsconfig.json View File

@ -4,7 +4,7 @@
/* Basic Options */
// "incremental": true, /* Enable incremental compilation */
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
// "lib": [], /* Specify library files to be included in the compilation. */
// "allowJs": true, /* Allow javascript files to be compiled. */
@ -67,6 +67,17 @@
/* Advanced Options */
"skipLibCheck": true, /* Skip type checking of declaration files. */
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
}
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
/* Plugins */
"plugins": [
{ "transform": "@zerollup/ts-transform-paths" }
]
},
"exclude": [
"/**/node_modules",
"/**/dist/**/*.ts",
"/**/jest.config.ts",
"/**/test/**/*.ts"
]
}

+ 2634
- 44
yarn.lock
File diff suppressed because it is too large
View File


Loading…
Cancel
Save