To upgrade a library based on create-react-library
- Clone updated
create-react-library
in a new foldergit clone https://github.com/dimimikadze/create-react-library.git new-create-react-library
- Copy
config
,public
,scripts
folders over to your project - Copy
.gitignore
,.npmignore
files over to your project - Copy and adapt
src/demo
folders over to your project - Copy and adapt
package.json
file over to your project - Update dependencies
yarn install
To upgrade create-react-library
project
-
Fork dimimikadze/create-react-library repository
-
Clone your fork
-
Create a new
create-react-app
project in another folder andeject
npx create-react-app my-app-tmp cd my-app-tmp yarn eject
-
Copy
config
,public
,scripts
folders over to yourcreate-react-library
fork folder -
Check each changed file and restore changes marked with
// CRL
comments -
Copy
scripts/build.js
fromcreate-react-app
toscripts/demo.js
of yourcreate-react-library
fork folder -
Edit changes to
scripts/demo.js
and restore changes marked with// CRL
comments -
Copy files inside
src
fromcreate-react-app
tosrc/demo
of yourcreate-react-library
fork folder -
Edit changes to files inside
src/demo
to keepcreate-react-library
changes -
Copy
.gitignore
to yourcreate-react-library
fork folder -
Edit
.gitignore
to keepcreate-react-library
changes -
Copy
package.json
fromcreate-react-app
-
Edit
package.json
to keepcreate-react-library
changes -
Edit
package.json
to have version equals tocreate-react-app
version -
Check that
yarn start
,yarn test
,yarn build
andyarn demo
scripts still work and produce the same output as before. -
Open a
PR
to dimimikadze/create-react-library repository