@@ -5,14 +5,12 @@ process.env.BABEL_ENV = 'production';
55process . env . NODE_ENV = 'production' ;
66process . env . OC_BACKEND_HOST = 'https://api.operationcode.org/' ;
77process . env . OC_BACKEND_URL = 'https://api.operationcode.org/api/v1' ;
8- process . env . OC_IDME_CLIENT_ID = '6d781bfd42506613a0fe4ad4123aaf6d' ;
98process . env . OC_HOST = 'https://operationcode.org' ;
10- process . env . OC_IDME_AUTH_URL = 'https://api.id.me/oauth/authorize' ;
119
1210// Makes the script crash on unhandled rejections instead of silently
1311// ignoring them. In the future, promise rejections that are not handled will
1412// terminate the Node.js process with a non-zero exit code.
15- process . on ( 'unhandledRejection' , ( err ) => {
13+ process . on ( 'unhandledRejection' , err => {
1614 throw err ;
1715} ) ;
1816
@@ -29,8 +27,7 @@ const checkRequiredFiles = require('react-dev-utils/checkRequiredFiles');
2927const formatWebpackMessages = require ( 'react-dev-utils/formatWebpackMessages' ) ;
3028const FileSizeReporter = require ( 'react-dev-utils/FileSizeReporter' ) ;
3129
32- const measureFileSizesBeforeBuild =
33- FileSizeReporter . measureFileSizesBeforeBuild ;
30+ const measureFileSizesBeforeBuild = FileSizeReporter . measureFileSizesBeforeBuild ;
3431const printFileSizesAfterBuild = FileSizeReporter . printFileSizesAfterBuild ;
3532const useYarn = fs . existsSync ( paths . yarnLockFile ) ;
3633
@@ -42,7 +39,7 @@ if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) {
4239// First, read the current file sizes in build directory.
4340// This lets us display how much they changed later.
4441measureFileSizesBeforeBuild ( paths . appBuild )
45- . then ( ( previousFileSizes ) => {
42+ . then ( previousFileSizes => {
4643 // Remove all content but keep the directory so that
4744 // if you're in it, you don't end up in Trash
4845 fs . emptyDirSync ( paths . appBuild ) ;
@@ -57,19 +54,18 @@ measureFileSizesBeforeBuild(paths.appBuild)
5754 console . log ( chalk . yellow ( 'Compiled with warnings.\n' ) ) ;
5855 console . log ( warnings . join ( '\n\n' ) ) ;
5956 console . log (
60- `\nSearch for the ${
61- chalk . underline ( chalk . yellow ( 'keywords' ) )
62- } to learn more about each warning.`
57+ `\nSearch for the ${ chalk . underline (
58+ chalk . yellow ( 'keywords' )
59+ ) } to learn more about each warning.`
6360 ) ;
6461 } else {
6562 console . log ( chalk . green ( 'Compiled successfully.\n' ) ) ;
6663 }
6764
6865 console . log ( 'File sizes after gzip:\n' ) ;
6966 printFileSizesAfterBuild ( stats , previousFileSizes , paths . appBuild ) ;
70-
7167 } ,
72- ( err ) => {
68+ err => {
7369 console . log ( chalk . red ( 'Failed to compile.\n' ) ) ;
7470 console . log ( `${ err . message || err } \n` ) ;
7571 process . exit ( 1 ) ;
0 commit comments