• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

pablodenadai/angular2-seed-project: [DEPRECATED] Angular 2 Seed Project – Gulp, ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

pablodenadai/angular2-seed-project

开源软件地址(OpenSource Url):

https://github.com/pablodenadai/angular2-seed-project

开源编程语言(OpenSource Language):

JavaScript 43.4%

开源软件介绍(OpenSource Introduction):

DEPRECATED

Alternatives:

Angular 2 - Seed Project

Build Status Join the chat at https://gitter.im/ghpabs/angular2-seed-project

Stack

Workflow Features

  • Gulp fully automated workflow.
  • Development and production environment targets.
  • Unit and E2E test samples.
  • Code coverage report with TypeScript mapping.
  • TypeScript definition manager, linting, sourcemaps and transpilation (ES5).
  • Sass linting, sourcemaps and transpilation.
  • TypeDoc documentation generator.
  • Change Log generated based on Git metadata.

Angular 2 Features

  • Directives
  • Pipes
  • Services
  • Router
  • REST API
  • Template Cache
  • Modular Components
  • Dependency Injection
  • Custom Events

Global Dependencies

Dependency Version Install
NodeJS 5.x.x http://node.org
npm 3.x.x http://node.org
Gulp CLI 0.4.x npm install gulpjs/gulp-cli#4.0 -g
Typings 0.6.x npm install typings -g

Install

$ git clone https://github.com/ghpabs/angular2-seed-project.git && cd angular2-seed-project
$ npm install
$ typings install
$ gulp build serve

Note: the serve task won't automatically launch the browser for you. To view the app please open a new tab and go to http://localhost:8080/.

Usage

Tasks

  • $ gulp clean: Remove generated folders - build, docs and coverage.
  • $ gulp unit: Run Karma against all src/scripts/**/*.spec.js files.
  • $ gulp e2e: Run Protractor against all e2e/**/*.spec.js files. The project must be being served before running end-to-end tests.
  • $ gulp build: Create distribution package.
  • $ gulp serve: Start web-server and live-reload.
  • $ gulp docs: Generate documentation.
  • $ gulp changelog: Generate CHANGELOG.md file from Git metadata. See Change Log for more info.

Environments

Default: NODE_ENV=development and PORT=8080.

Development:

  • $ gulp build serve is equivalent to $ NODE_ENV=development PORT=8080 gulp build serve.

Production

  • $ NODE_ENV=production gulp build serve.

Ecosystem

You might have noticed that we have quite a few files in our root folder. You might also be wondering why we need them and whether they are applicable to your use case. Here is a brief explanation:

  • .travis.yml: Travis is our Continuous Integration (CI) server and this is its configuration file. We have added hooks to GitHub so automated tests will kick in after each commit.
  • karma.shim.js: Unit testing Angular2 apps is still in its early days and this file helps us setup the test runner - Karma.

Change Log

This project generates the CHANGELOG.md from Git metadata using the conventional-changelog library. The commit message must follow the Angular conventions for this feature to work.

Recommended Workflow

  • Make changes
  • Commit those changes
  • Make sure Travis turns green
  • Bump version in package.json
  • Run gulp changelog
  • Commit package.json and CHANGELOG.md files
  • Tag
  • Push

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. When submitting a PR, make sure that the commit messages match the Angular conventions.

License

MIT




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap