Loving Coding & Visual Design
Google starter kit前端开发工具
安装
web-starter-kit/npm install
编译
gulp
实时效果检视
gulp serve
编译前操作
编辑样式:web-starter-kit/apps/styles
脚本:web-starter-kit/app/scripts
速度测试:gulp pagespeed
更多参考:
https://developers.google.com/web/fundamentals/principles/
=========================================
发布流程:
gulp
make deploy
=========================================
Makefile:
@cp "dist/index.html" "dist/index.php"
@rm -rf "dist/index.html"
@xcopy "dist" "目标目录" /s
=========================================
遇到的问题
Can't get Gulp to run: cannot find module 'gulp-util'
需要在本地再次安装
try npm install gulp-util --save-dev
其他模块包括: module 'through2', 'object-assign', 'pretty-bytes', 'chalk', 'imagemin'
web-starter-kit/npm install
编译
gulp
实时效果检视
gulp serve
编译前操作
编辑样式:web-starter-kit/apps/styles
脚本:web-starter-kit/app/scripts
速度测试:gulp pagespeed
更多参考:
https://developers.google.com/web/fundamentals/principles/
=========================================
发布流程:
gulp
make deploy
=========================================
Makefile:
@cp "dist/index.html" "dist/index.php"
@rm -rf "dist/index.html"
@xcopy "dist" "目标目录" /s
=========================================
遇到的问题
Can't get Gulp to run: cannot find module 'gulp-util'
需要在本地再次安装
try npm install gulp-util --save-dev
其他模块包括: module 'through2', 'object-assign', 'pretty-bytes', 'chalk', 'imagemin'
最 近 文 章
- Rust-lang测试 - Mon, 30 Nov -0001 00:00:00 +0000
- More about PHP开发 - Mon, 30 Nov -0001 00:00:00 +0000
- Docker下安装PHP+Nginx环境 - Mon, 30 Nov -0001 00:00:00 +0000
- Nosql比较 - Mon, 30 Nov -0001 00:00:00 +0000
- CoreOS试用 - Mon, 30 Nov -0001 00:00:00 +0000
- CentOS 7 常见问题 - Mon, 30 Nov -0001 00:00:00 +0000
- Matrix知识 - Mon, 30 Nov -0001 00:00:00 +0000
- Swift精要 - Mon, 30 Nov -0001 00:00:00 +0000
- Cloud for Coder - Mon, 30 Nov -0001 00:00:00 +0000
- 复杂多维权限系统设计 - Mon, 30 Nov -0001 00:00:00 +0000