Skip to content

Repository files navigation

🪄 make-magic-app

A tool for quickly scaffolding an app with Magic baked-in!

License · Contributing Guide

🚀 Usage

Getting started with the interactive scaffolding tool is easy. Just run the following command in your preferred shell:

npx make-magic-app

Follow the interactive prompts to customize your project. Done! ✨

Programmatic API

make-magic-app also supports a programmatic API, so you can generate boilerplate codes with Magic built-in from your own NodeJS scripts.

importmakeMagicAppfrom'make-magic-app';awaitmakeMagicApp({template: 'hello-world',// Same as --template, -tprojectName: 'my-app',// Same as --project-name, -pbranch: 'master',// Same as --branch, -b// The same, arbitrary data you can pass to a template via CLI flags.data: {publishableApiKey: 'pk_live_...',npmClient: 'yarn',}})

See npx make-magic-app --help for information about the available options. In general, most CLI flags map to camel-cased properties in the configuration given to makeMagicApp({ ... }).

For more information, you can print help text including template-specific options using npx make-magic-app --help --template [i.e.: hello-world]

About

No description, website, or topics provided.

Resources

Contributing

Stars

1 star

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages