Coder Social home page Coder Social logo

nathanwalker / angular2-seed-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pablodenadai/angular2-seed-project

0.0 3.0 0.0 799 KB

Angular 2 Seed Project – TypeScript, Gulp, Karma, Protractor, Sass and more.

Home Page: http://angular2-seed.io/

License: MIT License

JavaScript 39.76% HTML 6.18% TypeScript 44.45% CSS 9.61%

angular2-seed-project's Introduction

Angular 2 - Seed Project

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

Light-weight and easy to use seed project for Angular 2 apps.

Stack

Workflow Features

  • Gulp fully automated workflow.
  • Development and production environment targets.
  • Unit and E2E test samples.
  • Code coverage report with TypeScript mapping.
  • TypeScript 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

Install

$ git clone https://github.com/ghpabs/angular2-seed-project.git && cd angular2-seed-project
$ npm 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 test/unit/**/*.spec.js files.
  • $ gulp e2e: Run Protractor against all test/e2e/**/*.e2e.js files. The project must be being served before running end-to-end tests.
  • $ gulp build: Create distribution package. See environment targets below.
  • $ gulp serve: Start web-server and live-reload. See environment targets below.

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 Continuos 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.

Note that the commit messages must follow 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 npm run 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

angular2-seed-project's People

Contributors

0x-r4bbit avatar gitter-badger avatar maxime1992 avatar pablodenadai avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.