# 工程化

# 运行环境

browserl.ist (opens new window)

# gulp

  • 使用 gulpfile.coffee 依赖插件
tnpm install coffee-script --save-dev
$ npm uninstall gulp --save-dev
$ npm install 'gulpjs/gulp.git#4.0' --save-dev
  • 如果想知道插件报错,需要安装 gulp-util 如果不打印错误,那么 gulp 只会告诉你 The following tasks did not complete: dev
gutil = require 'gulp-util'

# Did you forget to signal async completion?

you

# gulp-umd

文件名转为驼峰

capitalizeFilename = (file) ->
  relative = file.relative
  name = path.parse(relative).name
  capitalName = name.replace /[-_]\D/g, (res) ->
    res.charAt(1).toUpperCase()

# lest

# Server

# 区分线上线下环境

# 持续集成 Travis CI

如何简单入门使用Travis-CI持续集成 (opens new window)

Last Updated: 5/14/2022, 11:38:45 AM