From 904fbdbd5a67cbae17a2dc212c5bb9134393171f Mon Sep 17 00:00:00 2001 From: npmcdn-to-unpkg-bot Date: Wed, 31 Aug 2016 16:57:39 +0100 Subject: [PATCH] Replace npmcdn.com with unpkg.com --- public/docs/_examples/animations/ts/index.html | 2 +- .../homepage-hello-world/ts/index.1.html | 10 +++++----- .../_examples/homepage-tabs/ts/index.1.html | 10 +++++----- .../_examples/homepage-todo/ts/index.1.html | 10 +++++----- .../_examples/systemjs.config.plunker.build.js | 8 ++++---- .../docs/_examples/systemjs.config.plunker.js | 18 +++++++++--------- tools/plunker-builder/indexHtmlTranslator.js | 14 +++++++------- 7 files changed, 36 insertions(+), 36 deletions(-) diff --git a/public/docs/_examples/animations/ts/index.html b/public/docs/_examples/animations/ts/index.html index 9e36248524..76a7b93356 100644 --- a/public/docs/_examples/animations/ts/index.html +++ b/public/docs/_examples/animations/ts/index.html @@ -7,7 +7,7 @@ - + diff --git a/public/docs/_examples/homepage-hello-world/ts/index.1.html b/public/docs/_examples/homepage-hello-world/ts/index.1.html index ce0bdfbaf9..1cd0bdf701 100644 --- a/public/docs/_examples/homepage-hello-world/ts/index.1.html +++ b/public/docs/_examples/homepage-hello-world/ts/index.1.html @@ -9,12 +9,12 @@ - + - - - - + + + + diff --git a/public/docs/_examples/homepage-tabs/ts/index.1.html b/public/docs/_examples/homepage-tabs/ts/index.1.html index c790439682..d130974098 100644 --- a/public/docs/_examples/homepage-tabs/ts/index.1.html +++ b/public/docs/_examples/homepage-tabs/ts/index.1.html @@ -10,12 +10,12 @@ - + - - - - + + + + diff --git a/public/docs/_examples/homepage-todo/ts/index.1.html b/public/docs/_examples/homepage-todo/ts/index.1.html index d926bbe323..e27c7f640c 100644 --- a/public/docs/_examples/homepage-todo/ts/index.1.html +++ b/public/docs/_examples/homepage-todo/ts/index.1.html @@ -10,12 +10,12 @@ - + - - - - + + + + diff --git a/public/docs/_examples/systemjs.config.plunker.build.js b/public/docs/_examples/systemjs.config.plunker.build.js index 3ccf77808c..9441fdf0fb 100644 --- a/public/docs/_examples/systemjs.config.plunker.build.js +++ b/public/docs/_examples/systemjs.config.plunker.build.js @@ -25,11 +25,11 @@ '@angular/platform-browser-dynamic': 'https://cdn.rawgit.com/angular/platform-browser-dynamic-builds/master', '@angular/router': 'https://cdn.rawgit.com/angular/router-builds/master', - 'rxjs': 'https://npmcdn.com/rxjs@5.0.0-beta.6', - 'ts': 'https://npmcdn.com/plugin-typescript@4.0.10/lib/plugin.js', - 'typescript': 'https://npmcdn.com/typescript@1.9.0-dev.20160409/lib/typescript.js', + 'rxjs': 'https://unpkg.com/rxjs@5.0.0-beta.6', + 'ts': 'https://unpkg.com/plugin-typescript@4.0.10/lib/plugin.js', + 'typescript': 'https://unpkg.com/typescript@1.9.0-dev.20160409/lib/typescript.js', - 'angular2-in-memory-web-api': 'https://npmcdn.com/angular2-in-memory-web-api', + 'angular2-in-memory-web-api': 'https://unpkg.com/angular2-in-memory-web-api', }; //packages tells the System loader how to load when no filename and/or no extension diff --git a/public/docs/_examples/systemjs.config.plunker.js b/public/docs/_examples/systemjs.config.plunker.js index d55c4db274..a01135c192 100644 --- a/public/docs/_examples/systemjs.config.plunker.js +++ b/public/docs/_examples/systemjs.config.plunker.js @@ -14,14 +14,14 @@ var map = { 'app': 'app', - '@angular': 'https://npmcdn.com/@angular', // sufficient if we didn't pin the version - '@angular/router': 'https://npmcdn.com/@angular/router' + routerVer, - '@angular/forms': 'https://npmcdn.com/@angular/forms' + formsVer, - '@angular/router-deprecated': 'https://npmcdn.com/@angular/router-deprecated' + routerDeprecatedVer, - 'angular2-in-memory-web-api': 'https://npmcdn.com/angular2-in-memory-web-api', // get latest - 'rxjs': 'https://npmcdn.com/rxjs@5.0.0-beta.6', - 'ts': 'https://npmcdn.com/plugin-typescript@4.0.10/lib/plugin.js', - 'typescript': 'https://npmcdn.com/typescript@1.9.0-dev.20160409/lib/typescript.js', + '@angular': 'https://unpkg.com/@angular', // sufficient if we didn't pin the version + '@angular/router': 'https://unpkg.com/@angular/router' + routerVer, + '@angular/forms': 'https://unpkg.com/@angular/forms' + formsVer, + '@angular/router-deprecated': 'https://unpkg.com/@angular/router-deprecated' + routerDeprecatedVer, + 'angular2-in-memory-web-api': 'https://unpkg.com/angular2-in-memory-web-api', // get latest + 'rxjs': 'https://unpkg.com/rxjs@5.0.0-beta.6', + 'ts': 'https://unpkg.com/plugin-typescript@4.0.10/lib/plugin.js', + 'typescript': 'https://unpkg.com/typescript@1.9.0-dev.20160409/lib/typescript.js', }; //packages tells the System loader how to load when no filename and/or no extension @@ -44,7 +44,7 @@ // Add map entries for each angular package // only because we're pinning the version with `ngVer`. ngPackageNames.forEach(function(pkgName) { - map['@angular/'+pkgName] = 'https://npmcdn.com/@angular/' + pkgName + ngVer; + map['@angular/'+pkgName] = 'https://unpkg.com/@angular/' + pkgName + ngVer; }); // Add package entries for angular packages diff --git a/tools/plunker-builder/indexHtmlTranslator.js b/tools/plunker-builder/indexHtmlTranslator.js index 321cadf915..6d3298524b 100644 --- a/tools/plunker-builder/indexHtmlTranslator.js +++ b/tools/plunker-builder/indexHtmlTranslator.js @@ -9,7 +9,7 @@ var _rxRules = { }, angular_pkg: { from: /src=".?node_modules\/@angular/g, - to: 'src="https://npmcdn.com/@angular' + to: 'src="https://unpkg.com/@angular' }, script: { from: /.*<\/script>/, @@ -36,32 +36,32 @@ var _rxData = [ { pattern: 'script', from: 'node_modules/core-js/client/shim.min.js', - to: 'https://npmcdn.com/core-js/client/shim.min.js' + to: 'https://unpkg.com/core-js/client/shim.min.js' }, { pattern: 'script', from: 'node_modules/zone.js/dist/zone.js', - to: 'https://npmcdn.com/zone.js@0.6.12?main=browser' + to: 'https://unpkg.com/zone.js@0.6.12?main=browser' }, { pattern: 'script', from: 'node_modules/reflect-metadata/Reflect.js', - to: 'https://npmcdn.com/reflect-metadata@0.1.3' + to: 'https://unpkg.com/reflect-metadata@0.1.3' }, { pattern: 'script', from: 'node_modules/rxjs/bundles/Rx.umd.js', - to: 'https://npmcdn.com/rxjs@5.0.0-beta.6/bundles/Rx.umd.js' + to: 'https://unpkg.com/rxjs@5.0.0-beta.6/bundles/Rx.umd.js' }, { pattern: 'script', from: 'node_modules/systemjs/dist/system.src.js', - to: 'https://npmcdn.com/systemjs@0.19.27/dist/system.src.js' + to: 'https://unpkg.com/systemjs@0.19.27/dist/system.src.js' }, { pattern: 'script', from: 'node_modules/angular/in-memory-web-api/web-api.js', - to: 'https://npmcdn.com/angular/in-memory-web-api/web-api.js' + to: 'https://unpkg.com/angular/in-memory-web-api/web-api.js' }, { pattern: 'link',