Git Product home page Git Product logo

webdev's Introduction

webdev

#删除远程文件(本地文件还保留) git rm -r --cached

git commit -m 'delete'

git push

#代码库中的文件完全覆盖本地 git reset --hard

git pull

weekStar 项目

host


环境要求

运行此项目, 你电脑上必须安装以下组件:

  • node
  • ruby
  • gulp
  • sass

初始化目录

$ gem install sass
$ gem install compass
$ npm install

gulp 命令

# 压缩合并 js
gulp js --name <project>

# 压缩合并 css
gulp css --name <project>

# 压缩合并 jade,html
gulp html --name <project>

# 压缩合并 image
gulp images

# 压缩合并 执行 js、css、html、images
gulp all --ver <version>

# 执行监听
gulp watch

# 压缩合并 执行 all 并且 监听
gulp watchAll --ver <version>

# 拷贝 config.copy 下的文件
gulp copy --name <project>

# 提交代码 到 测试/ 预发布环境
gulp commit --sub <branch> --ver <version>


# 提交代码 到 测试/ 预发布环境(不会自动提交)
gulp commitNoCmd --sub <branch> --ver <version>
@param  <branch>:  dev|commit|trunk
@param <version>:  线上 rev-manifest 版本,如要线上最新则填 remote

潜龙 svn 地址:

dev

https://svn.yy.com/yy-music/static/project/weekStar/branches/develop/

commit

https://svn.yy.com/yy-music/static/project/weekStar/branches/commit/

trunk

https://svn.yy.com/yy-music/static/project/weekStar/trunk/

livereload

  • 安装 插件这里

  • 打开chrome 扩展程序 [chrome://extensions/] 对插件 勾选 允许访问文件网址

  • 打开 html 文件时 点击 chrome 上面图标激活插件

webdev's People

Contributors

fanky-c avatar

Watchers

James Cloos avatar  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.