Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
fether
Commits
51797f9a
Commit
51797f9a
authored
Apr 04, 2019
by
Axel Chalon
Committed by
Amaury Martiny
Apr 04, 2019
Browse files
refactor: Update craco and remove --react-scripts workaround (#491)
parent
fac1c0fa
Pipeline
#34953
passed with stages
in 9 minutes and 31 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
packages/fether-react/craco.config.js
View file @
51797f9a
module
.
exports
=
{
babel
:
{
plugins
:
[[
'
@babel/plugin-proposal-decorators
'
,
{
legacy
:
true
}]]
}
},
// craco isn't compatible with monorepos by default
reactScriptsPath
:
'
../../node_modules/react-scripts
'
};
packages/fether-react/package.json
View file @
51797f9a
...
...
@@ -27,14 +27,14 @@
"scripts"
:
{
"build"
:
"npm-run-all build-*"
,
"build-css"
:
"node-sass-chokidar src/ -o src/"
,
"build-js"
:
"cross-env SKIP_PREFLIGHT_CHECK=true craco build
--react-scripts ../../node_modules/react-scripts
"
,
"build-js"
:
"cross-env SKIP_PREFLIGHT_CHECK=true craco build"
,
"start"
:
"npm-run-all -p start-*"
,
"start-css"
:
"npm run build-css -- --watch --recursive"
,
"start-js"
:
"cross-env SKIP_PREFLIGHT_CHECK=true BROWSER=none craco start
--react-scripts ../../node_modules/react-scripts
"
,
"test"
:
"
ln -s ../../../node_modules/react-scripts node_modules/ && cross-env SKIP_PREFLIGHT_CHECK=true craco test; EXIT_CODE=$?; rm node_modules/react-scripts; exit $EXIT_CODE
"
"start-js"
:
"cross-env SKIP_PREFLIGHT_CHECK=true BROWSER=none craco start"
,
"test"
:
"
cross-env SKIP_PREFLIGHT_CHECK=true craco test
"
},
"dependencies"
:
{
"@craco/craco"
:
"^
3.3.1
"
,
"@craco/craco"
:
"^
4.0.0
"
,
"@parity/abi"
:
"^5.1.1"
,
"@parity/api"
:
"^5.1.1"
,
"@parity/contracts"
:
"^5.1.1"
,
...
...
yarn.lock
View file @
51797f9a
...
...
@@ -953,10 +953,10 @@
lodash "^4.17.10"
to-fast-properties "^2.0.0"
"@craco/craco@^
3.3.1
":
version "
3.4.1
"
resolved "https://registry.yarnpkg.com/@craco/craco/-/craco-
3.4.1.tgz#a65e29d7cb661e09e68269ba09ade39d174ec359
"
integrity sha512-
PVuDx5iLzoYeFrjNUVbblQCGzFyw/DoBBHFI4+JlSCvgEkp07jbBm5fe+z/MqzYJUQm1bFbxe6qbQWI5LFl6XA
==
"@craco/craco@^
4.0.0
":
version "
4.0.0
"
resolved "https://registry.yarnpkg.com/@craco/craco/-/craco-
4.0.0.tgz#9baabdc4bd4e156c3dbda647f5bf19b4cfc991ae
"
integrity sha512-
YWBywRU77lLLEW2Ue3TqYjthOxknz1/Ah7GyfAEILBcueZm0sfKaLbAxP9AfYdLSNOff0InvWnmOpu5yFGml9w
==
dependencies:
cross-spawn "6.0.5"
lodash.mergewith "4.6.1"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment