Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

qiruiyin/elephant

Repository files navigation

大象医疗官网

开发环境

开发环境

以nodejs为基础,gulp+webpack+typings搭建前端自动化模块,并采用bower进行包模块管理

需安装nodejs 、 gulp 、webpack 、bower

  • 'npm install -g gulp'
  • 'npm install -g webpack'
  • 'npm install -g bower'

gulpfile 主要模块

  • gulp start 启动项目
    • browser-sync 启动服务器
    • watch 监听修改
    • sass scss翻译
    • html 静态模板渲染
  • gulp test js和css检查
    • jshint js校验
    • css-lint css校验
  • gulp 生成压缩包
    • image 图片压缩
    • dist js和css压缩及生成压缩包

项目运行

  • 'npm install'
  • 'bower install'
  • 'gulp start'

备注

如果使用typescript开发js,在'gulp start'之前

  • 'npm install -g typescript typings'
  • 'npm link typescript'

SCSS 文件说明

About

大象医疗官网

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published