Back to Farm

create-farm

packages/create-farm/README.md

1.7.111.2 KB
Original Source

create-farm

<div align="center"> <a href="https://github.com/farm-fe/farm"> </a> <p>Scaffolding Your First Farm Project</p> </div>

This package provides official templates for the Rust Web Bundler Farm.

Scaffolding Your First Farm Project

Compatibility Note: Farm requires Node.js version 16+. However, some templates require a higher Node.js version to work, please upgrade if your package manager warns about it.

With NPM:

bash
$ npm create farm@latest

With Yarn:

bash
$ yarn create farm

With PNPM:

bash
$ pnpm create farm

Then follow the prompts!

You can also directly specify the project name and the template you want to use via additional command line options run:

bash
# npm 6.x
npm create farm@latest my-vue-app --template react

# npm 7+, extra double-dash is needed:
npm create farm@latest my-vue-app -- --template vue

# yarn
yarn create farm my-vue-app --template react

# pnpm
pnpm create farm my-vue-app --template vue

Inspiration comes from create-tauri-app