repack icon indicating copy to clipboard operation
repack copied to clipboard

Template to create new apps

Open akinncar opened this issue 2 years ago • 2 comments

Template to create new apps

Is it possible to init a new app with re.pack already configured? if not, do you plan to create a template for that?

akinncar avatar Aug 01 '21 01:08 akinncar

The plan is to add at some point init command to Re.Pack CLI which would create webpack.config.js and migrate whatever files necessary. But that's a plan for the future and we have other high priority task to do first.

zamotany avatar Aug 09 '21 08:08 zamotany

I've created a simple template for bootstrapping new projects with RePack included. This is still an early effort, and will be streamlined in the future, but it works. Please let me know in the template repo if something doesn't work for you, or you have any ideas for improvements there: https://github.com/lukaszchopin/react-native-template-repack

You can use it by: npx react-native init MyApp --template https://github.com/lukaszchopin/react-native-template-repack.git

But be aware of the warnings I included in the readme

lukaszchopin avatar Nov 26 '21 08:11 lukaszchopin

Recently, we have added @callstack/repack-init package that will configure your project to use Re.Pack (as long as it doesn't stray away from general structure of React-Native projects)

You can use it via npx like this:

npx @callstack/repack-init@latest

jbroma avatar May 23 '23 15:05 jbroma