This file contains code snippets to be used while following the Angular 2 with Webpack Project Setup video tutorial.
You can find the full project in the angular2-course-webpack-starter repository.
<!DOCTYPE html>
| #!/bin/sh | |
| # | |
| # Automates signing and aligning Android APKs as per | |
| # http://developer.android.com/tools/publishing/app-signing.html#signing-manually | |
| # | |
| # USAGE: signalign platforms/android/build/outputs/apk/android-release-unsigned.apk | |
| # | |
| set -e | |
| # configure the next two properties for your own certificate |
| (function() { | |
| var app = angular.module('app', ['ionic', 'ngCordova']); | |
| app.factory('GeoService', function($ionicPlatform, $cordovaGeolocation) { | |
| var positionOptions = {timeout: 10000, enableHighAccuracy: true}; | |
| return { | |
| getPosition: function() { |
This file contains code snippets to be used while following the Angular 2 with Webpack Project Setup video tutorial.
You can find the full project in the angular2-course-webpack-starter repository.
<!DOCTYPE html>
| diff --git a/src/bundle.ts b/src/bundle.ts | |
| index a99651e..b995701 100644 | |
| --- a/src/bundle.ts | |
| +++ b/src/bundle.ts | |
| @@ -35,6 +35,9 @@ export function bundleUpdate(event: string, path: string, context: BuildContext, | |
| } | |
| +// used to track the cache for subsequent bundles | |
| +let bundleCache: RollupBundle = null; |
| diff --git a/package.json b/package.json | |
| index 7f9f117..293b4eb 100644 | |
| --- a/package.json | |
| +++ b/package.json | |
| @@ -15,25 +15,29 @@ | |
| "dependencies": { | |
| "@angular/common": "2.1.1", | |
| "@angular/compiler": "2.1.1", | |
| + "@angular/compiler-cli": "2.1.1", | |
| "@angular/core": "2.1.1", |
| #!/usr/bin/env node | |
| // | |
| // Concatenates multiple srt files together, adjusting the times | |
| // | |
| // Requires ffprobe and an mp4 file along with each srt file to calculate time offsets | |
| // | |
| // Usage: cat-srt.js video1.srt video2.srt video3.srt output.srt | |
| // | |
| const fs = require('fs'); | |
| const path = require('path'); |