repack
repack copied to clipboard
Template to create new apps
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?
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.
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
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