From ee101bfd42f7629d74703248f3f12fa13bb0b66e Mon Sep 17 00:00:00 2001 From: Helton Carlos de Souza Date: Sun, 15 Oct 2017 23:08:04 -0200 Subject: [PATCH] chore(config) removed workaround to make build work again Closes #35 --- build.js | 9 --------- package.json | 8 ++------ yarn.lock | 6 +++--- 3 files changed, 5 insertions(+), 18 deletions(-) delete mode 100644 build.js diff --git a/build.js b/build.js deleted file mode 100644 index fec0807..0000000 --- a/build.js +++ /dev/null @@ -1,9 +0,0 @@ -const shell = require('shelljs') - -const successMessage = 'The build folder is ready to be deployed.' -const result = shell.exec('timeout react-scripts build -t 1m') - -if (result.stdout.includes(successMessage)) - process.exit(0) -else - process.exit(result.code) diff --git a/package.json b/package.json index 0f52e26..9951763 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "custom-react-scripts": "0.2.0", + "custom-react-scripts": "^0.2.1", "lodash": "^4.17.4", "prop-types": "^15.5.10", "react": "^16.0.0-rc.3", @@ -17,12 +17,8 @@ }, "scripts": { "start": "react-scripts start", - "build": "node build.js", + "build": "react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" - }, - "devDependencies": { - "shelljs": "^0.7.8", - "timeout-cli": "^0.3.2" } } diff --git a/yarn.lock b/yarn.lock index a50f585..cbb70d1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2016,9 +2016,9 @@ currently-unhandled@^0.4.1: dependencies: array-find-index "^1.0.1" -custom-react-scripts@0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/custom-react-scripts/-/custom-react-scripts-0.2.0.tgz#51a82348a25a8ece9ad38c700544c6a7c564f539" +custom-react-scripts@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/custom-react-scripts/-/custom-react-scripts-0.2.1.tgz#4346a08ab01d2e7f54d1b92d5080b0ea4dd0ea95" dependencies: autoprefixer "7.1.2" babel-core "6.25.0"