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

Commit b2781d9

Browse files
robwormaldnaomiblack
authored andcommitted
chore(docs): change npmcdn to unpkg
1 parent c995de0 commit b2781d9

File tree

7 files changed

+36
-36
lines changed

7 files changed

+36
-36
lines changed

public/docs/_examples/animations/ts/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<link rel="stylesheet" href="styles.css">
88

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

1212
<!-- Polyfill(s) for older browsers -->
1313
<script src="node_modules/core-js/client/shim.min.js"></script>

public/docs/_examples/homepage-hello-world/ts/index.1.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99

1010
<!-- 1. Load libraries -->
1111
<!-- Polyfill(s) for older browsers -->
12-
<script src="https://npmcdn.com/core-js/client/shim.min.js"></script>
12+
<script src="https://unpkg.com/core-js/client/shim.min.js"></script>
1313

14-
<script src="https://npmcdn.com/[email protected]"></script>
15-
<script src="https://npmcdn.com/[email protected]"></script>
16-
<script src="https://npmcdn.com/[email protected]/dist/system.src.js"></script>
17-
<script src="https://npmcdn.com/[email protected]/lib/typescript.js"></script>
14+
<script src="https://unpkg.com/[email protected]"></script>
15+
<script src="https://unpkg.com/[email protected]"></script>
16+
<script src="https://unpkg.com/[email protected]/dist/system.src.js"></script>
17+
<script src="https://unpkg.com/[email protected]/lib/typescript.js"></script>
1818

1919
<!-- 2. Configure SystemJS -->
2020
<script src="systemjs.config.js"></script>

public/docs/_examples/homepage-tabs/ts/index.1.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010

1111
<!-- 1. Load libraries -->
1212
<!-- Polyfill(s) for older browsers -->
13-
<script src="https://npmcdn.com/core-js/client/shim.min.js"></script>
13+
<script src="https://unpkg.com/core-js/client/shim.min.js"></script>
1414

15-
<script src="https://npmcdn.com/[email protected]"></script>
16-
<script src="https://npmcdn.com/[email protected]"></script>
17-
<script src="https://npmcdn.com/[email protected]/dist/system.src.js"></script>
18-
<script src="https://npmcdn.com/[email protected]/lib/typescript.js"></script>
15+
<script src="https://unpkg.com/[email protected]"></script>
16+
<script src="https://unpkg.com/[email protected]"></script>
17+
<script src="https://unpkg.com/[email protected]/dist/system.src.js"></script>
18+
<script src="https://unpkg.com/[email protected]/lib/typescript.js"></script>
1919

2020
<!-- 2. Configure SystemJS -->
2121
<script src="systemjs.config.js"></script>

public/docs/_examples/homepage-todo/ts/index.1.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010

1111
<!-- 1. Load libraries -->
1212
<!-- Polyfill(s) for older browsers -->
13-
<script src="https://npmcdn.com/core-js/client/shim.min.js"></script>
13+
<script src="https://unpkg.com/core-js/client/shim.min.js"></script>
1414

15-
<script src="https://npmcdn.com/[email protected]"></script>
16-
<script src="https://npmcdn.com/[email protected]"></script>
17-
<script src="https://npmcdn.com/[email protected]/dist/system.src.js"></script>
18-
<script src="https://npmcdn.com/[email protected]/lib/typescript.js"></script>
15+
<script src="https://unpkg.com/[email protected]"></script>
16+
<script src="https://unpkg.com/[email protected]"></script>
17+
<script src="https://unpkg.com/[email protected]/dist/system.src.js"></script>
18+
<script src="https://unpkg.com/[email protected]/lib/typescript.js"></script>
1919

2020
<!-- 2. Configure SystemJS -->
2121
<script src="systemjs.config.js"></script>

public/docs/_examples/systemjs.config.plunker.build.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
'@angular/platform-browser-dynamic': 'https://cdn.rawgit.com/angular/platform-browser-dynamic-builds/master',
2626
'@angular/router': 'https://cdn.rawgit.com/angular/router-builds/master',
2727

28-
'rxjs': 'https://npmcdn.com/[email protected]',
29-
'ts': 'https://npmcdn.com/[email protected]/lib/plugin.js',
30-
'typescript': 'https://npmcdn.com/[email protected]/lib/typescript.js',
28+
'rxjs': 'https://unpkg.com/[email protected]',
29+
'ts': 'https://unpkg.com/[email protected]/lib/plugin.js',
30+
'typescript': 'https://unpkg.com/[email protected]/lib/typescript.js',
3131

32-
'angular2-in-memory-web-api': 'https://npmcdn.com/angular2-in-memory-web-api',
32+
'angular2-in-memory-web-api': 'https://unpkg.com/angular2-in-memory-web-api',
3333
};
3434

3535
//packages tells the System loader how to load when no filename and/or no extension

public/docs/_examples/systemjs.config.plunker.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
var map = {
1515
'app': 'app',
1616

17-
'@angular': 'https://npmcdn.com/@angular', // sufficient if we didn't pin the version
18-
'@angular/router': 'https://npmcdn.com/@angular/router' + routerVer,
19-
'@angular/forms': 'https://npmcdn.com/@angular/forms' + formsVer,
20-
'@angular/router-deprecated': 'https://npmcdn.com/@angular/router-deprecated' + routerDeprecatedVer,
21-
'angular2-in-memory-web-api': 'https://npmcdn.com/angular2-in-memory-web-api', // get latest
22-
'rxjs': 'https://npmcdn.com/[email protected]',
23-
'ts': 'https://npmcdn.com/[email protected]/lib/plugin.js',
24-
'typescript': 'https://npmcdn.com/[email protected]/lib/typescript.js',
17+
'@angular': 'https://unpkg.com/@angular', // sufficient if we didn't pin the version
18+
'@angular/router': 'https://unpkg.com/@angular/router' + routerVer,
19+
'@angular/forms': 'https://unpkg.com/@angular/forms' + formsVer,
20+
'@angular/router-deprecated': 'https://unpkg.com/@angular/router-deprecated' + routerDeprecatedVer,
21+
'angular2-in-memory-web-api': 'https://unpkg.com/angular2-in-memory-web-api', // get latest
22+
'rxjs': 'https://unpkg.com/[email protected]',
23+
'ts': 'https://unpkg.com/[email protected]/lib/plugin.js',
24+
'typescript': 'https://unpkg.com/[email protected]/lib/typescript.js',
2525
};
2626

2727
//packages tells the System loader how to load when no filename and/or no extension
@@ -44,7 +44,7 @@
4444
// Add map entries for each angular package
4545
// only because we're pinning the version with `ngVer`.
4646
ngPackageNames.forEach(function(pkgName) {
47-
map['@angular/'+pkgName] = 'https://npmcdn.com/@angular/' + pkgName + ngVer;
47+
map['@angular/'+pkgName] = 'https://unpkg.com/@angular/' + pkgName + ngVer;
4848
});
4949

5050
// Add package entries for angular packages

tools/plunker-builder/indexHtmlTranslator.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var _rxRules = {
99
},
1010
angular_pkg: {
1111
from: /src=".?node_modules\/@angular/g,
12-
to: 'src="https://npmcdn.com/@angular'
12+
to: 'src="https://unpkg.com/@angular'
1313
},
1414
script: {
1515
from: /<script.*".*%tag%".*>.*<\/script>/,
@@ -36,32 +36,32 @@ var _rxData = [
3636
{
3737
pattern: 'script',
3838
from: 'node_modules/core-js/client/shim.min.js',
39-
to: 'https://npmcdn.com/core-js/client/shim.min.js'
39+
to: 'https://unpkg.com/core-js/client/shim.min.js'
4040
},
4141
{
4242
pattern: 'script',
4343
from: 'node_modules/zone.js/dist/zone.js',
44-
to: 'https://npmcdn.com/[email protected]?main=browser'
44+
to: 'https://unpkg.com/[email protected]?main=browser'
4545
},
4646
{
4747
pattern: 'script',
4848
from: 'node_modules/reflect-metadata/Reflect.js',
49-
to: 'https://npmcdn.com/[email protected]'
49+
to: 'https://unpkg.com/[email protected]'
5050
},
5151
{
5252
pattern: 'script',
5353
from: 'node_modules/rxjs/bundles/Rx.umd.js',
54-
to: 'https://npmcdn.com/[email protected]/bundles/Rx.umd.js'
54+
to: 'https://unpkg.com/[email protected]/bundles/Rx.umd.js'
5555
},
5656
{
5757
pattern: 'script',
5858
from: 'node_modules/systemjs/dist/system.src.js',
59-
to: 'https://npmcdn.com/[email protected]/dist/system.src.js'
59+
to: 'https://unpkg.com/[email protected]/dist/system.src.js'
6060
},
6161
{
6262
pattern: 'script',
6363
from: 'node_modules/angular/in-memory-web-api/web-api.js',
64-
to: 'https://npmcdn.com/angular/in-memory-web-api/web-api.js'
64+
to: 'https://unpkg.com/angular/in-memory-web-api/web-api.js'
6565
},
6666
{
6767
pattern: 'link',

0 commit comments

Comments
 (0)