GithubHelp home page GithubHelp logo

zancun's Introduction

前端开发大致流程

1.克隆代码库

获得项目结构

2.安装依赖

npm install npm install ** --save-dev 局部安装

3.运行项目

npm run dev

4.打包项目

打包命令:npm run build 打包前注意查看配置信息:

查看 config -- index.js 里面的 assetsPublicPath路径k
查看 src -- api -- index.js 里面的配置API接口地址 root 的值
配置API接口地址
打包时最好按分支打包
  • master 主分支 正式环境和测试打包,区别在于配置的API接口地址
  • root 非万年历分支 非万年历渠道直接打包
  • wnl 万年历分支 万年历渠道直接打包,注意微信分享url要加上 wnl/
  • 52dd 52dd分支 52dd渠道直接打包

5.开发完成后的测试

  1. 优先本地测试
  2. 打包测试优先打包测试环境
  3. 测试环境测试通过后打包各渠道正式环境分别测试
  4. 以上测试都通过后可以告诉产品自测验证,通过后再正式提测

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.