GithubHelp home page GithubHelp logo

uniapp-template's Introduction

使用方式

1.设置安装yarn

npm i yarn -g

2.设置yarn的node-sass代理,防止下载不了

yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
# 注: 如果是使用的npm,是可以把yarn替换为npm的

3.下载依赖

yarn install 或者 npm i 
# 注: 不要使用cnpm,因为cnpm不支持包重命名的写法,如npm@:@abc/npm: "0.0.1" 这种操作

4.运行小程序

npm run dev:weapp

5.打包

npm run build:weapp

6.注意

如果运行或者打包的执行过程中,出现“busyness”等错误,请关闭微信开发者工具后在尝试,因为刚开启后添加文件之后,可能存在权限问题,
所以先关闭开发者工具,然后运行或者打包,然后在开启开发者工具,之后在运行或者打包就不会出现错误

7.书写规范,很多提示类文件,需要在typings中写上对应的接口,这样代码中才会有语法提示

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.