Giter Site home page Giter Site logo

3g-new's Introduction

新闻客户端回流页

Startup

git clone https://github.com/NetEaseMobileFE/3g-new.git
cd 3g-new
npm i
npm i -g eslint
touch .profile

// dev
npm start

// test
gulp test            // all files
gulp test -w article // single file

// deploy
gulp deploy            // all files
gulp deploy -w article // single file

// lint 
npm run lint

Notes

  1. 开发中启动服务后,访问地址为http://localhost:3100/page/:type, type取值为src/:folder,一般一个src下的文件夹对应一个页面,commonimg例外
  2. 开发中,通过代理工具将线上地址重定向到本地,如: http://c.m.163.com/news/v/VBOOFPEVP.html -> http://localhost:3100/page/video
  3. src/common中存放公用模块,src/img中存放图片
  4. 如需增加页面,需要在package.json中,为pages属性数组中增加一个元素,元素名称为增加的文件夹名

Others

Eslint: airbnb && eslint rules

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.