mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-03-29 17:08:15 +08:00
Remove code that is unused after publish (#550)
This commit is contained in:
@@ -11,11 +11,11 @@
|
||||
"url": "https://github.com/facebookincubator/create-react-app/issues"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "node scripts/build.js --debug-template",
|
||||
"build": "node scripts/build.js",
|
||||
"create-react-app": "node global-cli/index.js --scripts-version \"$PWD/`tasks/clean_pack.sh`\"",
|
||||
"e2e": "tasks/e2e.sh",
|
||||
"start": "node scripts/start.js --debug-template",
|
||||
"test": "node scripts/test.js --debug-template --env=jsdom"
|
||||
"start": "node scripts/start.js",
|
||||
"test": "node scripts/test.js --env=jsdom"
|
||||
},
|
||||
"files": [
|
||||
"PATENTS",
|
||||
|
||||
@@ -27,10 +27,10 @@ var paths = require('../config/paths');
|
||||
// Tools like Cloud9 rely on this.
|
||||
var DEFAULT_PORT = process.env.PORT || 3000;
|
||||
var compiler;
|
||||
|
||||
// TODO: hide this behind a flag and eliminate dead code on eject.
|
||||
// This shouldn't be exposed to the user.
|
||||
var handleCompile;
|
||||
|
||||
// You can safely remove this after ejecting.
|
||||
// We only use this block for testing of Create React App itself:
|
||||
var isSmokeTest = process.argv.some(arg => arg.indexOf('--smoke-test') > -1);
|
||||
if (isSmokeTest) {
|
||||
handleCompile = function (err, stats) {
|
||||
|
||||
@@ -16,12 +16,6 @@ const paths = require('../config/paths');
|
||||
|
||||
const argv = process.argv.slice(2);
|
||||
|
||||
// Don't pass this option to Jest
|
||||
const debugTemplateIndex = argv.indexOf('--debug-template');
|
||||
if (debugTemplateIndex !== -1) {
|
||||
argv.splice(debugTemplateIndex, 1);
|
||||
}
|
||||
|
||||
// Watch unless on CI
|
||||
if (!process.env.CI) {
|
||||
argv.push('--watch');
|
||||
|
||||
Reference in New Issue
Block a user