GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rangle/angular2-starter: Angular 2 Starter Repo

BranchesTags
Open more actions menu

Latest commit

 

History

274 Commits
274 Commits

Folders and files

NameName
Last commit message
Last commit date
e2e
e2e
 
 
src
src
 
 
webpack
webpack
 
 
.editorconfig
.editorconfig
 
 
.eslintrc
.eslintrc
 
 
.gitignore
.gitignore
 
 
.stylelintrc
.stylelintrc
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
Procfile
Procfile
 
 
README.md
README.md
 
 
app.json
app.json
 
 
browserslist
browserslist
 
 
circle.yml
circle.yml
 
 
karma.conf.js
karma.conf.js
 
 
package.json
package.json
 
 
server.js
server.js
 
 
tsconfig-aot.json
tsconfig-aot.json
 
 
tsconfig.json
tsconfig.json
 
 
tslint.json
tslint.json
 
 
webpack-aot.config.js
webpack-aot.config.js
 
 
webpack.config.js
webpack.config.js
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

Circle CI

Angular 2/TypeScript/Webpack Starter

This is the initial version of our starter project using Angular 2.x, TypeScript and Webpack to tie it all together.

Getting Started

Use our starter script, with angular2-starter as the techStack argument.

npm scripts

To see all available scripts:

$ npm run

Dev

$ npm run dev

This runs a development mode server with live reload etc.

Open http://localhost:8080 in your browser.

Production

$ npm install
$ npm start

or

$ npm run build
$ npm start

This runs a production-ready express server that serves up a bundled and minified version of the client.

Note: AoT is enabled by default. To disable AoT, use npm run build:jit.

Open http://localhost:8080 in your browser.

Tests

Single Run (with linting and coverage)

$ npm test
# or
$ npm t

Watch Files

$ npm run test:watch

Coverage

$ npm run cover

Webpack

Configurations:

  • For dev & jit: webpack.config.js
  • For production & AoT: webpack-aot.config.js

The webpack directory consists of:

  • loaders.js: definitions for all the loaders used in this project
  • plugins.js: definitions for all the plugins used in this project. These are grouped based on process.env.
  • postcss.js: configuration for the postcss plugin.

Bundle Profiling

If you want to analyze the contents and size of the production bundles you can run one of the following commands:

  • npm run profile-build for AoT builds
  • npm run profile-build:jit for JiT builds

These commands produce a stats.json manifest in the project root and also opens a web page using webpack-bundle-analyzer so that you can parse it visually.

Connecting to remote APIs

Both the devmode and production servers provide a way to proxy requests to remote HTTP APIs. This can be useful for working around CORS issues when developing your software.

Edit this file to mount such APIs at a given path.

Improvements

This is an initial version of this setup and will be expanded in the future. Refer to the issues section to see what needs to be done, or create a new one.

Issues for this particular starter project are tagged with the 'ng2' label.

If something doesn't work

We centralize issue management for all rangle starters in the rangle-starter repository, to help us keep things consistent.

Refer to the issues section to see if this has already been logged. Otherwise create a new issue.

Be sure to tag your new issue with the 'ng2' label so we can see which starter you're filing it for.

Example Application

An example app using this starter can be found here.

License

Copyright (c) 2016 rangle.io

MIT License

About

Angular 2 Starter Repo

Resources

Readme
MIT license
Activity
Custom properties

Stars

56 stars

Watchers

19 watching

Forks

35 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.