Home > Mobile >  Based on the Taro rapid development of small procedures
Based on the Taro rapid development of small procedures

Time:09-25

Taro is jingdong front convex concave laboratory open source project, as it's official website said: multiterminal unified development solution, that is to write a code can be run on the different side, this is a feature of Taro, but beyond that, using the Taro can be used as the react development without considering the small program your own grammar, and NPM rely on management, such as the preprocessor can be used in small application project, for small new to application development, really save a lot of time,

Also quickly install Taro, Taro project based on the node, using NPM install Taro scaffolding @ tarojs/cli can create your own project, after

# use NPM to install CLI

@ $NPM install - g tarojs/cli

# OR installed with yarn CLI

$yarn global add @ tarojs/cli

# OR installed CNPM, installed with CNPM CLI

@ $CNPM install - g tarojs/cli


# initialization program
? $taro init yuwenlanzi
When the initialization program prompts for a project is introduced, whether or not to use the TypeScript, choose CSS preprocessor and template, choose according to their own needs,



Into the project directory, and then, like using the react or vue for development, build command also has written, in the package. The json file,

"Scripts" : {

"Build: weapp" : "taro build - type weapp",/* build WeChat applet */

"Build: swan" : "taro build - type swan", small program *//* build baidu

"Build: alipay" : "taro build - type alipay",/* build alipay applet */

"Build: tt", "taro build - type" tt,/* bytes to beat small program */

.

},
Finally packed file in the dist directory, release when the specified directory upload,

But the small program didn't thinking what to do, my little program [YuWenLanZi] currently put up a cast surely benefit calculation formula and mortgage calculators, and some of the online course, then I don't know what to do, to feel the body is a small program people a lot of components are not used, such as the webview, video, and even show some goods are not, alas,
What do you do in their own small program of how to do it all the time? Welcome to discuss,

CodePudding user response:

Use uniapp about ball made a small program: about online
  • Related