此仓库用于同步更新Angular.io上的内容并且将其翻译成中文。 目前翻译还处在初级阶段,希望各位朋友能一同参与翻译。
Angular.io is currently the preview site for Angular 2. This site also includes links to other helpful angular resources including Angular 1, Angular Material, and AngularFire.
- 安装 nvm
- 将此仓库和 angular 克隆到同一个父目录下
- 将工作路径切换到
angular.io/
- 运行
nvm use 4
来确保你使用的是最新版的node和npm - 运行
npm install
安装依赖的代码包
对于身在国内的朋友,可以用 淘宝NPM镜像 来提高npm包的下载速度
- 将工作目录切换到
angular.io/
- 运行
gulp serve-and-sync
- 浏览器将在 localhost:3000 启动并且会在你保存代码的时候自动刷新。
如果你还没安装gulp(在第2步出错)那么你需要运行
npm install -g gulp
来安装gulp
如果你只是要修改文档中特定的部分,诸如API或者开发指南,那么你可以使用如下一个或多个特定的gulp任务来指定监视文件系统中特定的部分:
serve-and-sync
: 监视所有本地的 Jade/Sass 文件, API 源码和样例,以及开发指南文件serve-and-sync
: watch all the local Jade/Sass files, the API source and examples, and the dev guide filesserve-and-sync-api-docs
: 只监视 API 源码和样例文件serve-and-sync-devGuide
: 只监视开发指南文件build-and-serve
: 只监视本地 Jade/Sass 文件
- Angular 1.x: The production ready version of Angular
- Angular Material: An implementation of Material Design in Angular.js
- Harp: The static web server with built-in preprocessing.
- Sass: A professional grade CSS extension language
- Normalize: A modern, HTML5-ready alternative to CSS resets
- Grids: A highly customizable CSS Grid Framework built with Sass
- Prettify: A JS module and CSS for syntax highlighting of source code snippets.
- Icomoon: Custom built icon fonts
Powered by Google ©2010-2015. Code licensed under the Apache License, Version 2.0. Documentation licensed under CC BY 3.0.