0.1.0 • Published 4 years ago

@webafe/create-taro v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

create-taro

Creates a Tarojs application using the command line.

Usage

$ yarn create @webafe/taro [appName?]

Boilerplates

  • dva - Create project with dva and typescript.
  • redux - WIP
  • mobx - WIP

Usage Example

$ yarn create @webafe/taro

? Select the boilerplate type (Use arrow keys)
❯ app             - Create taro project with dva & TypeScript.

? What functionality do you want to enable? (Press <space> to select, <a> to toggle all, <i> to invert selection)
❯◯ dva

  create abc/package.json
  create abc/.gitignore
  create abc/.editorconfig
  create abc/.env
  create abc/.eslintrc
  create abc/.prettierignore
  create abc/.prettierrc
  create abc/.tarorc.js
  create abc/mock/.gitkeep
  create abc/src/assets/yay.jpg
  create abc/src/global.css
  create abc/src/layouts/index.css
  create abc/src/layouts/index.tsx
  create abc/src/pages/index.css
  create abc/src/pages/index.tsx
  create abc/tsconfig.json
  create abc/typings.d.ts
 📋  Copied to clipboard, just use Ctrl+V
 ✨  File Generate Done

FAQ

yarn create @webafe/taro command failed

这个问题基本上都是因为没有添加 yarn global module 的路径到 PATH 环境变量引起的。

先执行 yarn global bin 拿到路径,然后添加到 PATH 环境变量里。

$ yarn global bin
/usr/local/bin

你也可以尝试用 npm,

$ npm create taro

或者手动安装 @webafe/create-taro,并执行他,

$ npm install @webafe/create-taro -g
$ create-taro

LICENSE

MIT

0.1.0

4 years ago

0.0.13

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.8

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1-beta.2

5 years ago

0.0.1-beta.1

5 years ago

0.0.1-beta.0

5 years ago