chore(docs): change npmcdn to unpkg
This commit is contained in:
parent
c995de09bb
commit
b2781d96dc
|
@ -7,7 +7,7 @@
|
|||
<link rel="stylesheet" href="styles.css">
|
||||
|
||||
<!-- 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 -->
|
||||
<script src="node_modules/core-js/client/shim.min.js"></script>
|
||||
|
|
|
@ -9,12 +9,12 @@
|
|||
|
||||
<!-- 1. Load libraries -->
|
||||
<!-- 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://npmcdn.com/reflect-metadata@0.1.3"></script>
|
||||
<script src="https://npmcdn.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/zone.js@0.6.12"></script>
|
||||
<script src="https://unpkg.com/reflect-metadata@0.1.3"></script>
|
||||
<script src="https://unpkg.com/systemjs@0.19.27/dist/system.src.js"></script>
|
||||
<script src="https://unpkg.com/typescript@1.8.10/lib/typescript.js"></script>
|
||||
|
||||
<!-- 2. Configure SystemJS -->
|
||||
<script src="systemjs.config.js"></script>
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
|
||||
<!-- 1. Load libraries -->
|
||||
<!-- 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://npmcdn.com/reflect-metadata@0.1.3"></script>
|
||||
<script src="https://npmcdn.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/zone.js@0.6.12"></script>
|
||||
<script src="https://unpkg.com/reflect-metadata@0.1.3"></script>
|
||||
<script src="https://unpkg.com/systemjs@0.19.27/dist/system.src.js"></script>
|
||||
<script src="https://unpkg.com/typescript@1.8.10/lib/typescript.js"></script>
|
||||
|
||||
<!-- 2. Configure SystemJS -->
|
||||
<script src="systemjs.config.js"></script>
|
||||
|
|
|
@ -10,12 +10,12 @@
|
|||
|
||||
<!-- 1. Load libraries -->
|
||||
<!-- 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://npmcdn.com/reflect-metadata@0.1.3"></script>
|
||||
<script src="https://npmcdn.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/zone.js@0.6.12"></script>
|
||||
<script src="https://unpkg.com/reflect-metadata@0.1.3"></script>
|
||||
<script src="https://unpkg.com/systemjs@0.19.27/dist/system.src.js"></script>
|
||||
<script src="https://unpkg.com/typescript@1.8.10/lib/typescript.js"></script>
|
||||
|
||||
<!-- 2. Configure SystemJS -->
|
||||
<script src="systemjs.config.js"></script>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.*".*%tag%".*>.*<\/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',
|
||||
|
|
Loading…
Reference in New Issue