The error happens because we have husky in our template.json which causes the first commit to fail. To solve this is necessary to perform a manual step after using create-react-app. Since we'd already need to perform a manual step to suppress the error I added a node script that:
Add husky to package.json
Move the development dependencies to devDependencies on package.json
Delete itself after execution
Now projects that use this seed can use yarn install --prod to save time during deployment.
Dependency
N/A
Config
Are you adding a configuration file?
[X] Have you updated the publish scripts?
Are you adding a new feature
[X] Have you updated the README.md?
Testing
npx create-react-app PROJEC_NAME --template file:ui5-webcomponents-react-seed and then follow the README.md.
Automated Tests
[ ] Select this if your code has automated Tests for it.
Description
Initially investigating the error of this #70.
The error happens because we have husky in our
template.json
which causes the first commit to fail. To solve this is necessary to perform a manual step after usingcreate-react-app
. Since we'd already need to perform a manual step to suppress the error I added a node script that:package.json
package.json
Now projects that use this seed can use
yarn install --prod
to save time during deployment.Dependency
N/A
Config
Are you adding a configuration file?
publish
scripts?Are you adding a new feature
README.md
?Testing
npx create-react-app PROJEC_NAME --template file:ui5-webcomponents-react-seed
and then follow the README.md.Automated Tests
References
70