Last active
December 27, 2017 00:43
-
-
Save iha2/8c1607711feb395278fb27d05d933bbf to your computer and use it in GitHub Desktop.
A package.json file for setting up Angular.js, Typescript and Jest.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "webpack-jest", | |
"version": "1.0.0", | |
"description": "jest, webpack and typescript", | |
"main": "src/main.ts", | |
"scripts": { | |
"test": "jest" | |
}, | |
"repository": { | |
"type": "git", | |
"url": "https://gist.github.com/iha2/8c1607711feb395278fb27d05d933bbf.js" | |
}, | |
"keywords": ["jest", "webpack", "typescript"], | |
"author": "Iheatu Wogu", | |
"license": "ISC", | |
"bugs": { | |
"url": "https://gitlab.com/iha2/webpack-jest/issues" | |
}, | |
"homepage": "https://gitlab.com/iha2/webpack-jest#README", | |
"dependencies": { | |
"@angular/common": "^5.0.0", | |
"@angular/compiler": "^5.0.0", | |
"@angular/core": "^5.0.0", | |
"@angular/forms": "^5.0.0", | |
"@angular/http": "^5.0.0", | |
"@angular/platform-browser": "^5.0.0", | |
"@angular/platform-browser-dynamic": "^5.0.0", | |
"@angular/router": "^5.0.0", | |
"core-js": "^2.4.1", | |
"rxjs": "^5.5.2", | |
"zone.js": "^0.8.14" | |
}, | |
"devDependencies": { | |
"codelyzer": "^4.0.1", | |
"@types/jest": "^21.1.8", | |
"@types/node": "^8.5.1", | |
"jest": "^22.0.3", | |
"jest-preset-angular": "^5.0.0", | |
"ts-jest": "^22.0.0", | |
"typescript": "^2.6.2" | |
}, | |
"jest": { | |
"globals": { | |
"ts-jest": { | |
"tsConfigFile": "src/tsconfig.spec.json" | |
}, | |
"__TRANSFORM_HTML__": true | |
}, | |
"preset": "jest-preset-angular", | |
"transform": { | |
"^.+\\.(ts|js|html)$": | |
"<rootDir>/node_modules/jest-preset-angular/preprocessor.js" | |
}, | |
"setupTestFrameworkScriptFile": "<rootDir>/src/setupJest.ts", | |
"testRegex": "/app/.*\\.spec\\.ts$", | |
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"], | |
"moduleNameMapper": { | |
"app/(.*)": "<rootDir>/src/app/$1" | |
}, | |
"transformIgnorePatterns": ["node_modules/(?!@ngrx)"] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment