Giter Club home page Giter Club logo

davidalphafox / taro-shop-hooks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from whowrongswhere/taro-shop-hooks

0.0 1.0 0.0 3.37 MB

taro_shop是一款多端开源在线商城,后台是基于linjiashop(基础上进行开发,前端采用Taro框架编写,使用hooks全新api,未来将对各类小程序、H5移动端、app进行适配

Home Page: https://github.com/microapp-store/linjiashop

License: MIT License

JavaScript 81.52% CSS 16.48% HTML 2.00%

taro-shop-hooks's Introduction

Taro简介

github地址: https://github.com/NervJS/taro Taro 是由凹凸实验室打造的一套遵循 React 语法规范的多端统一开发框架。 Taro-UI: https://taro-ui.aotu.io/#/docs/introduction

解决依赖问题

rm -rf node_modules && npm install

微信小程序编译预览模式:

npm script

npm run dev:weapp

或 仅限全局安装

taro build --type weapp --watch

#npm run build

H5编译预览模式:

npm script

npm run dev:h5

或 仅限全局安装

taro build --type h5 --watch

浏览器调试

debugger

###文件目录如下: ├── dist 编译结果目录 ├── config 配置目录 | ├── dev.js 开发时配置 | ├── index.js 默认配置 | └── prod.js 打包时配置 ├── src 源码目录 | ├── pages 页面文件目录 | | ├── index index页面目录 | | | ├── index.js index页面逻辑 | | | └── index.css index页面样式 | ├── app.css 项目总通用样式 | └── app.js 项目入口文件 └── package.json

进入项目目录开始开发,可以选择小程序预览模式,或者h5预览模式,若使用微信小程序预览模式,则需要自行下载并打开[微信开发者工具]选择预览项目根目录。

开发前注意

若使用 微信小程序预览模式 ,则需下载并使用微信开发者工具添加项目进行预览,此时需要注意微信开发者工具的项目设置

  • 需要设置关闭ES6转ES5功能,开启可能报错
  • 需要设置关闭上传代码时样式自动补全,开启可能报错
  • 需要设置关闭代码压缩上传,开启可能报错

开发记录

2020-03-02 项目初始化

taro-shop-hooks's People

Contributors

whowrongswhere avatar

Watchers

 avatar

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.