Giter Site home page Giter Site logo

react's Introduction

Install

需要nodejs环境,请至https://nodejs.org下载。

安装npm开发工具

#全局安装都需要sudo,npm太慢可使用cnpm代替
npm install gulp -g # 编译工具
npm install pm2 -g # 服务部署,进程监护工具
npm install supervisor -g # 开发工具
npm install mocha -g # 集成测试工具 
#eslint
npm install -g eslint
npm install -g eslint-plugin-react
npm install -g eslint-plugin-html

开发

进入工程文件夹,执行npm install,这里千万不能sudo,否则以后都需要sudo。 执行gulp构建工程,浏览器访问http://localhost:3000

部署

执行sh devtools/git-hook-publish.sh即可

测试

工程目录下执行mocha,测试资源在test目录中。

gulp工具使用

gulp  # 进入开发调试模式
gulp release  # 编译发布release版本
gulp init --name xxx  # 新建一个子项目
gulp publish --name xxx  # 将子项目打包到dist
gulp apply --path /path/folder  # 从指定目录部署打包好的子项目
gulp clean  # 清理编译文件

react's People

Contributors

naivechild 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.