File tree Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 1111 "url" : " https://github.com/facebookincubator/create-react-app/issues"
1212 },
1313 "scripts" : {
14- "build" : " node scripts/build.js --debug-template " ,
14+ "build" : " node scripts/build.js" ,
1515 "create-react-app" : " node global-cli/index.js --scripts-version \" $PWD/`tasks/clean_pack.sh`\" " ,
1616 "e2e" : " tasks/e2e.sh" ,
17- "start" : " node scripts/start.js --debug-template " ,
18- "test" : " node scripts/test.js --debug-template -- env=jsdom"
17+ "start" : " node scripts/start.js" ,
18+ "test" : " node scripts/test.js --env=jsdom"
1919 },
2020 "files" : [
2121 " PATENTS" ,
Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ var paths = require('../config/paths');
2727// Tools like Cloud9 rely on this.
2828var DEFAULT_PORT = process . env . PORT || 3000 ;
2929var compiler ;
30-
31- // TODO: hide this behind a flag and eliminate dead code on eject.
32- // This shouldn't be exposed to the user.
3330var handleCompile ;
31+
32+ // You can safely remove this after ejecting.
33+ // We only use this block for testing of Create React App itself:
3434var isSmokeTest = process . argv . some ( arg => arg . indexOf ( '--smoke-test' ) > - 1 ) ;
3535if ( isSmokeTest ) {
3636 handleCompile = function ( err , stats ) {
Original file line number Diff line number Diff line change @@ -16,12 +16,6 @@ const paths = require('../config/paths');
1616
1717const argv = process . argv . slice ( 2 ) ;
1818
19- // Don't pass this option to Jest
20- const debugTemplateIndex = argv . indexOf ( '--debug-template' ) ;
21- if ( debugTemplateIndex !== - 1 ) {
22- argv . splice ( debugTemplateIndex , 1 ) ;
23- }
24-
2519// Watch unless on CI
2620if ( ! process . env . CI ) {
2721 argv . push ( '--watch' ) ;
You can’t perform that action at this time.
0 commit comments