Skip to content

Forking

Antony Budianto edited this page Jul 21, 2018 · 1 revision

⚠️WIP

Forking

This toolkit is easy to fork if you want to add your opinionated stuff.

  • First, you can reserve package names to replace react-kits-cli and react-kits-server
  • Next, you can decide whether to alias existing react-kits import name or update all imports into new names
    • For update all imports: It's clear, just update all react-kits + react-kits-server imports into new ones. (I might build a tool to automate this soon)
    • For alias: You add the alias for them in webpack.base.config.js
      {
        resolve: {
          alias: {
            'react-kits': 'mycustom-react-kits',
            'react-kits-server': 'mycustom-react-kits-server'
          }
        }
      }
  • You may change the binary name (react-kits ) if you wish on here (optional)
  • Run yarn bootstrap and check if nothing breaks
  • Finally run npm run release to release your new fork!
Clone this wiki locally