This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp') | |
var concat = require('gulp-concat') | |
var sourcemaps = require('gulp-sourcemaps') | |
var uglify = require('gulp-uglify') | |
var ngAnnotate = require('gulp-ng-annotate') | |
gulp.task('js', function () { | |
gulp.src(['src/**/module.js', 'src/**/*.js']) | |
.pipe(sourcemaps.init()) | |
.pipe(concat('app.js')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright (c) Matan Shukry | |
* All rights reserved. | |
*/ | |
import { UrlSegment, UrlSegmentGroup, Route } from '@angular/router'; | |
// export type UrlMatchResult = { | |
// consumed: UrlSegment[]; posParams?: { [name: string]: UrlSegment }; | |
// }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_.fromPairs(_.differenceBy(_.entries(original), _.entries(target), ([key, val]) => val)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//copied from https://github.com/jayphelps/core-decorators | |
const { defineProperty, getOwnPropertyDescriptor, | |
getOwnPropertyNames, getOwnPropertySymbols } = Object; | |
export function isDescriptor(desc) { | |
if (!desc || !desc.hasOwnProperty) { | |
return false; | |
} |