Created
May 15, 2017 07:13
-
-
Save atitsbest/e39defa548716b0d69d0402bba3dda19 to your computer and use it in GitHub Desktop.
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": "jest_test", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"watch": "webpack --watch ", | |
"test": "jest --watch", | |
"serve": "webpack-dev-server --hot --inline" | |
}, | |
"keywords": [], | |
"author": "", | |
"license": "ISC", | |
"jest": { | |
"testRegex": "test.bundle\\.js$" | |
}, | |
"dependencies": { | |
"react": "15.5.4", | |
"react-dom": "15.5.4", | |
"mobx": "3.1.9", | |
"mobx-react": "4.1.8", | |
"react-router": "4.1.1", | |
"react-router-dom": "4.1.1", | |
"normalize-css": "2.3.1" | |
}, | |
"devDependencies": { | |
"@types/jest": "19.2.3", | |
"@types/react": "15.0.24", | |
"@types/react-dom": "15.5.0", | |
"@types/react-router-dom": "4.0.4", | |
"ts-loader": "2.0.3", | |
"typescript": "2.3.2", | |
"webpack": "2.5.1", | |
"webpack-cli": "1.3.1", | |
"webpack-dev-server": "2.4.5", | |
"style-loader": "0.17.0", | |
"css-loader": "0.28.1" | |
} | |
} |
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
Show hidden characters
{ | |
"compilerOptions": { | |
"outDir": "./dist/", | |
"sourceMap": true, | |
"noImplicitAny": true, | |
"module": "commonjs", | |
"target": "es5", | |
"jsx": "react", | |
"allowJs": true, | |
"experimentalDecorators": true | |
} | |
} |
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
var path = require('path'); | |
module.exports = { | |
entry: { | |
"app": './src/index.tsx', | |
"test": './src/index.test.tsx' | |
}, | |
output: { | |
filename: './dist/[name].bundle.js', | |
path: __dirname | |
}, | |
module: { | |
rules: [ | |
{ | |
test: /\.tsx?$/, | |
loader: 'ts-loader', | |
exclude: /node_modules/, | |
}, | |
{ | |
test: /\.css$/, | |
loader: [ | |
'style-loader', | |
'css-loader' | |
] | |
} | |
] | |
}, | |
resolve: { | |
modules: [__dirname, 'node_modules'], | |
extensions: [".tsx", ".ts", ".js"] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment