git.fiddlerwoaroof.com
Browse code

Finish removing parts of create-react-app

Ed Langley authored on 14/05/2019 08:25:58
Showing 3 changed files
1 1
deleted file mode 100644
... ...
@@ -1,12 +0,0 @@
1
-// This is a custom Jest transformer turning style imports into empty objects.
2
-// http://facebook.github.io/jest/docs/en/webpack.html
3
-
4
-module.exports = {
5
-  process() {
6
-    return "module.exports = {};";
7
-  },
8
-  getCacheKey() {
9
-    // The output is always the same.
10
-    return "cssTransform";
11
-  }
12
-};
... ...
@@ -36,8 +36,6 @@
36 36
     "babel-core": "7.0.0-bridge.0",
37 37
     "babel-eslint": "9.0.0",
38 38
     "babel-jest": "23.6.0",
39
-    "babel-plugin-named-asset-import": "^0.3.1",
40
-    "bfj": "6.1.1",
41 39
     "dotenv": "6.0.0",
42 40
     "dotenv-expand": "4.2.0",
43 41
     "enzyme": "^3.6.0",
... ...
@@ -26,15 +26,6 @@ function isInGitRepository() {
26 26
   }
27 27
 }
28 28
 
29
-function isInMercurialRepository() {
30
-  try {
31
-    execSync("hg --cwd . root", { stdio: "ignore" });
32
-    return true;
33
-  } catch (e) {
34
-    return false;
35
-  }
36
-}
37
-
38 29
 // Watch unless on CI, in coverage mode, explicitly adding `--no-watch`,
39 30
 // or explicitly running all tests
40 31
 if (
... ...
@@ -44,7 +35,7 @@ if (
44 35
   argv.indexOf("--watchAll") === -1
45 36
 ) {
46 37
   // https://github.com/facebook/create-react-app/issues/5210
47
-  const hasSourceControl = isInGitRepository() || isInMercurialRepository();
38
+  const hasSourceControl = isInGitRepository();
48 39
   argv.push(hasSourceControl ? "--watch" : "--watchAll");
49 40
 }
50 41