Skip to content

Commit

Permalink
Fix Code Review
Browse files Browse the repository at this point in the history
  • Loading branch information
William Monk authored and wmonk committed Aug 7, 2017
1 parent 4d9c829 commit 7014aed
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Expand Up @@ -83,7 +83,11 @@
2. `node -v`:
3. `npm -v`:
4. `yarn --version` (if you use Yarn):
<<<<<<< HEAD
5. `npm ls react-scripts` (if you haven’t ejected):
=======
3. `npm ls react-scripts-ts` (if you haven’t ejected):
>>>>>>> Fix Code Review
Then, specify:

Expand Down
12 changes: 11 additions & 1 deletion packages/react-scripts/config/webpack.config.dev.js
Expand Up @@ -95,7 +95,17 @@ module.exports = {
// https://github.com/facebookincubator/create-react-app/issues/290
// `web` extension prefixes have been added for better support
// for React Native Web.
extensions: ['.web.ts', '.ts', '.tsx', '.web.tsx', '.web.js', '.js', '.json', '.web.jsx', '.jsx'],
extensions: [
'.web.ts',
'.ts',
'.web.tsx',
'.tsx',
'.web.js',
'.js',
'.json',
'.web.jsx',
'.jsx',
],
alias: {
// @remove-on-eject-begin
// Resolve Babel runtime relative to react-scripts.
Expand Down
12 changes: 11 additions & 1 deletion packages/react-scripts/config/webpack.config.prod.js
Expand Up @@ -95,7 +95,17 @@ module.exports = {
// https://github.com/facebookincubator/create-react-app/issues/290
// `web` extension prefixes have been added for better support
// for React Native Web.
extensions: ['.web.ts', '.ts', '.tsx', '.web.tsx', '.web.js', '.js', '.json', '.web.jsx', '.jsx'],
extensions: [
'.web.ts',
'.ts',
'.web.tsx',
'.tsx',
'.web.js',
'.js',
'.json',
'.web.jsx',
'.jsx',
],
alias: {
// @remove-on-eject-begin
// Resolve Babel runtime relative to react-scripts.
Expand Down
6 changes: 3 additions & 3 deletions packages/react-scripts/package.json
Expand Up @@ -22,13 +22,13 @@
"react-scripts-ts": "./bin/react-scripts-ts.js"
},
"dependencies": {
"autoprefixer": "7.1.0",
"autoprefixer": "7.1.1",
"app-root-path": "^2.0.1",
"case-sensitive-paths-webpack-plugin": "2.1.1",
"chalk": "1.1.3",
"chalk": "1.1.3",
"cli-highlight": "1.1.4",
"css-loader": "0.28.1",
"css-loader": "0.28.4",
"dotenv": "4.0.0",
"extract-text-webpack-plugin": "2.1.2",
"file-loader": "0.11.2",
Expand All @@ -52,7 +52,7 @@
"sw-precache-webpack-plugin": "0.11.3",
"url-loader": "0.5.8",
"webpack": "2.6.1",
"webpack-dev-server": "2.4.5",
"webpack-dev-server": "2.5.0",
"webpack-manifest-plugin": "1.1.0",
"whatwg-fetch": "2.0.3"
},
Expand Down
12 changes: 11 additions & 1 deletion packages/react-scripts/scripts/utils/createJestConfig.js
Expand Up @@ -27,7 +27,17 @@ module.exports = (resolve, rootDir) => {
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}'],
setupFiles: [resolve('config/polyfills.js')],
setupTestFrameworkScriptFile: setupTestsFile,
moduleFileExtensions: ['web.ts', 'ts', 'web.tsx', 'tsx', 'js', 'jsx', 'json'],
moduleFileExtensions: [
'web.ts',
'ts',
'web.tsx',
'tsx',
'web.js',
'js',
'web.jsx',
'jsx',
'json',
],
testMatch: [
'<rootDir>/src/**/__tests__/**/*.ts?(x)',
'<rootDir>/src/**/?(*.)(spec|test).ts?(x)',
Expand Down
8 changes: 0 additions & 8 deletions packages/react-scripts/template/src/index.js

This file was deleted.

0 comments on commit 7014aed

Please sign in to comment.