chore(docs): change npmcdn to unpkg

This commit is contained in:
Rob Wormald 2016-08-30 22:21:47 -07:00 committed by Naomi Black
parent c995de09bb
commit b2781d96dc
7 changed files with 36 additions and 36 deletions

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" href="styles.css"> <link rel="stylesheet" href="styles.css">
<!-- Polyfill for Web Animations --> <!-- Polyfill for Web Animations -->
<script src="https://npmcdn.com/web-animations-js@2.2.1"></script> <script src="https://unpkg.com/web-animations-js@2.2.1"></script>
<!-- Polyfill(s) for older browsers --> <!-- Polyfill(s) for older browsers -->
<script src="node_modules/core-js/client/shim.min.js"></script> <script src="node_modules/core-js/client/shim.min.js"></script>

View File

@ -9,12 +9,12 @@
<!-- 1. Load libraries --> <!-- 1. Load libraries -->
<!-- Polyfill(s) for older browsers --> <!-- Polyfill(s) for older browsers -->
<script src="https://npmcdn.com/core-js/client/shim.min.js"></script> <script src="https://unpkg.com/core-js/client/shim.min.js"></script>
<script src="https://npmcdn.com/zone.js@0.6.12"></script> <script src="https://unpkg.com/zone.js@0.6.12"></script>
<script src="https://npmcdn.com/reflect-metadata@0.1.3"></script> <script src="https://unpkg.com/reflect-metadata@0.1.3"></script>
<script src="https://npmcdn.com/systemjs@0.19.27/dist/system.src.js"></script> <script src="https://unpkg.com/systemjs@0.19.27/dist/system.src.js"></script>
<script src="https://npmcdn.com/typescript@1.8.10/lib/typescript.js"></script> <script src="https://unpkg.com/typescript@1.8.10/lib/typescript.js"></script>
<!-- 2. Configure SystemJS --> <!-- 2. Configure SystemJS -->
<script src="systemjs.config.js"></script> <script src="systemjs.config.js"></script>

View File

@ -10,12 +10,12 @@
<!-- 1. Load libraries --> <!-- 1. Load libraries -->
<!-- Polyfill(s) for older browsers --> <!-- Polyfill(s) for older browsers -->
<script src="https://npmcdn.com/core-js/client/shim.min.js"></script> <script src="https://unpkg.com/core-js/client/shim.min.js"></script>
<script src="https://npmcdn.com/zone.js@0.6.12"></script> <script src="https://unpkg.com/zone.js@0.6.12"></script>
<script src="https://npmcdn.com/reflect-metadata@0.1.3"></script> <script src="https://unpkg.com/reflect-metadata@0.1.3"></script>
<script src="https://npmcdn.com/systemjs@0.19.27/dist/system.src.js"></script> <script src="https://unpkg.com/systemjs@0.19.27/dist/system.src.js"></script>
<script src="https://npmcdn.com/typescript@1.8.10/lib/typescript.js"></script> <script src="https://unpkg.com/typescript@1.8.10/lib/typescript.js"></script>
<!-- 2. Configure SystemJS --> <!-- 2. Configure SystemJS -->
<script src="systemjs.config.js"></script> <script src="systemjs.config.js"></script>

View File

@ -10,12 +10,12 @@
<!-- 1. Load libraries --> <!-- 1. Load libraries -->
<!-- Polyfill(s) for older browsers --> <!-- Polyfill(s) for older browsers -->
<script src="https://npmcdn.com/core-js/client/shim.min.js"></script> <script src="https://unpkg.com/core-js/client/shim.min.js"></script>
<script src="https://npmcdn.com/zone.js@0.6.12"></script> <script src="https://unpkg.com/zone.js@0.6.12"></script>
<script src="https://npmcdn.com/reflect-metadata@0.1.3"></script> <script src="https://unpkg.com/reflect-metadata@0.1.3"></script>
<script src="https://npmcdn.com/systemjs@0.19.27/dist/system.src.js"></script> <script src="https://unpkg.com/systemjs@0.19.27/dist/system.src.js"></script>
<script src="https://npmcdn.com/typescript@1.8.10/lib/typescript.js"></script> <script src="https://unpkg.com/typescript@1.8.10/lib/typescript.js"></script>
<!-- 2. Configure SystemJS --> <!-- 2. Configure SystemJS -->
<script src="systemjs.config.js"></script> <script src="systemjs.config.js"></script>

View File

@ -25,11 +25,11 @@
'@angular/platform-browser-dynamic': 'https://cdn.rawgit.com/angular/platform-browser-dynamic-builds/master', '@angular/platform-browser-dynamic': 'https://cdn.rawgit.com/angular/platform-browser-dynamic-builds/master',
'@angular/router': 'https://cdn.rawgit.com/angular/router-builds/master', '@angular/router': 'https://cdn.rawgit.com/angular/router-builds/master',
'rxjs': 'https://npmcdn.com/rxjs@5.0.0-beta.6', 'rxjs': 'https://unpkg.com/rxjs@5.0.0-beta.6',
'ts': 'https://npmcdn.com/plugin-typescript@4.0.10/lib/plugin.js', 'ts': 'https://unpkg.com/plugin-typescript@4.0.10/lib/plugin.js',
'typescript': 'https://npmcdn.com/typescript@1.9.0-dev.20160409/lib/typescript.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 //packages tells the System loader how to load when no filename and/or no extension

View File

@ -14,14 +14,14 @@
var map = { var map = {
'app': 'app', 'app': 'app',
'@angular': 'https://npmcdn.com/@angular', // sufficient if we didn't pin the version '@angular': 'https://unpkg.com/@angular', // sufficient if we didn't pin the version
'@angular/router': 'https://npmcdn.com/@angular/router' + routerVer, '@angular/router': 'https://unpkg.com/@angular/router' + routerVer,
'@angular/forms': 'https://npmcdn.com/@angular/forms' + formsVer, '@angular/forms': 'https://unpkg.com/@angular/forms' + formsVer,
'@angular/router-deprecated': 'https://npmcdn.com/@angular/router-deprecated' + routerDeprecatedVer, '@angular/router-deprecated': 'https://unpkg.com/@angular/router-deprecated' + routerDeprecatedVer,
'angular2-in-memory-web-api': 'https://npmcdn.com/angular2-in-memory-web-api', // get latest 'angular2-in-memory-web-api': 'https://unpkg.com/angular2-in-memory-web-api', // get latest
'rxjs': 'https://npmcdn.com/rxjs@5.0.0-beta.6', 'rxjs': 'https://unpkg.com/rxjs@5.0.0-beta.6',
'ts': 'https://npmcdn.com/plugin-typescript@4.0.10/lib/plugin.js', 'ts': 'https://unpkg.com/plugin-typescript@4.0.10/lib/plugin.js',
'typescript': 'https://npmcdn.com/typescript@1.9.0-dev.20160409/lib/typescript.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 //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 // Add map entries for each angular package
// only because we're pinning the version with `ngVer`. // only because we're pinning the version with `ngVer`.
ngPackageNames.forEach(function(pkgName) { 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 // Add package entries for angular packages

View File

@ -9,7 +9,7 @@ var _rxRules = {
}, },
angular_pkg: { angular_pkg: {
from: /src=".?node_modules\/@angular/g, from: /src=".?node_modules\/@angular/g,
to: 'src="https://npmcdn.com/@angular' to: 'src="https://unpkg.com/@angular'
}, },
script: { script: {
from: /<script.*".*%tag%".*>.*<\/script>/, from: /<script.*".*%tag%".*>.*<\/script>/,
@ -36,32 +36,32 @@ var _rxData = [
{ {
pattern: 'script', pattern: 'script',
from: 'node_modules/core-js/client/shim.min.js', 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', pattern: 'script',
from: 'node_modules/zone.js/dist/zone.js', 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', pattern: 'script',
from: 'node_modules/reflect-metadata/Reflect.js', 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', pattern: 'script',
from: 'node_modules/rxjs/bundles/Rx.umd.js', 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', pattern: 'script',
from: 'node_modules/systemjs/dist/system.src.js', 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', pattern: 'script',
from: 'node_modules/angular/in-memory-web-api/web-api.js', 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', pattern: 'link',