Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

chore(docs): change npmcdn to unpkg #2227

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/docs/_examples/animations/ts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<link rel="stylesheet" href="styles.css">

<!-- Polyfill for Web Animations -->
<script src="https://npmcdn.com/[email protected]"></script>
<script src="https://unpkg.com/[email protected]"></script>

<!-- Polyfill(s) for older browsers -->
<script src="node_modules/core-js/client/shim.min.js"></script>
Expand Down
10 changes: 5 additions & 5 deletions public/docs/_examples/homepage-hello-world/ts/index.1.html
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]"></script>
<script src="https://npmcdn.com/[email protected]"></script>
<script src="https://npmcdn.com/[email protected]/dist/system.src.js"></script>
<script src="https://npmcdn.com/[email protected]/lib/typescript.js"></script>
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/[email protected]/dist/system.src.js"></script>
<script src="https://unpkg.com/[email protected]/lib/typescript.js"></script>

<!-- 2. Configure SystemJS -->
<script src="systemjs.config.js"></script>
Expand Down
10 changes: 5 additions & 5 deletions public/docs/_examples/homepage-tabs/ts/index.1.html
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]"></script>
<script src="https://npmcdn.com/[email protected]"></script>
<script src="https://npmcdn.com/[email protected]/dist/system.src.js"></script>
<script src="https://npmcdn.com/[email protected]/lib/typescript.js"></script>
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/[email protected]/dist/system.src.js"></script>
<script src="https://unpkg.com/[email protected]/lib/typescript.js"></script>

<!-- 2. Configure SystemJS -->
<script src="systemjs.config.js"></script>
Expand Down
10 changes: 5 additions & 5 deletions public/docs/_examples/homepage-todo/ts/index.1.html
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]"></script>
<script src="https://npmcdn.com/[email protected]"></script>
<script src="https://npmcdn.com/[email protected]/dist/system.src.js"></script>
<script src="https://npmcdn.com/[email protected]/lib/typescript.js"></script>
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/[email protected]"></script>
<script src="https://unpkg.com/[email protected]/dist/system.src.js"></script>
<script src="https://unpkg.com/[email protected]/lib/typescript.js"></script>

<!-- 2. Configure SystemJS -->
<script src="systemjs.config.js"></script>
Expand Down
8 changes: 4 additions & 4 deletions public/docs/_examples/systemjs.config.plunker.build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]',
'ts': 'https://npmcdn.com/[email protected]/lib/plugin.js',
'typescript': 'https://npmcdn.com/[email protected]/lib/typescript.js',
'rxjs': 'https://unpkg.com/[email protected]',
'ts': 'https://unpkg.com/[email protected]/lib/plugin.js',
'typescript': 'https://unpkg.com/[email protected]/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
Expand Down
18 changes: 9 additions & 9 deletions public/docs/_examples/systemjs.config.plunker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]',
'ts': 'https://npmcdn.com/[email protected]/lib/plugin.js',
'typescript': 'https://npmcdn.com/[email protected]/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/[email protected]',
'ts': 'https://unpkg.com/[email protected]/lib/plugin.js',
'typescript': 'https://unpkg.com/[email protected]/lib/typescript.js',
};

//packages tells the System loader how to load when no filename and/or no extension
Expand All @@ -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
Expand Down
14 changes: 7 additions & 7 deletions tools/plunker-builder/indexHtmlTranslator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>/,
Expand All @@ -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/[email protected]?main=browser'
to: 'https://unpkg.com/[email protected]?main=browser'
},
{
pattern: 'script',
from: 'node_modules/reflect-metadata/Reflect.js',
to: 'https://npmcdn.com/[email protected]'
to: 'https://unpkg.com/[email protected]'
},
{
pattern: 'script',
from: 'node_modules/rxjs/bundles/Rx.umd.js',
to: 'https://npmcdn.com/[email protected]/bundles/Rx.umd.js'
to: 'https://unpkg.com/[email protected]/bundles/Rx.umd.js'
},
{
pattern: 'script',
from: 'node_modules/systemjs/dist/system.src.js',
to: 'https://npmcdn.com/[email protected]/dist/system.src.js'
to: 'https://unpkg.com/[email protected]/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',
Expand Down