Skip to content

Commit a5ec142

Browse files
author
Gene Connolly
committed
rename to unpkg-immutable-example
1 parent ffde95a commit a5ec142

6 files changed

+23
-20
lines changed

angular.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": 1,
44
"newProjectRoot": "projects",
55
"projects": {
6-
"ng-immutable-example": {
6+
"unpkg-immutable-example": {
77
"root": "",
88
"sourceRoot": "src",
99
"projectType": "application",
@@ -15,7 +15,7 @@
1515
"options": {
1616
"deployUrl": "<%=deployUrl%>",
1717
"baseHref": "<%=baseHref%>",
18-
"outputPath": "dist/ng-immutable-example",
18+
"outputPath": "dist/unpkg-immutable-example",
1919
"index": "src/index.ejs",
2020
"main": "src/main.ts",
2121
"polyfills": "src/polyfills.ts",
@@ -61,18 +61,18 @@
6161
"options": {
6262
"baseHref": "/",
6363
"deployUrl": "",
64-
"browserTarget": "ng-immutable-example:build"
64+
"browserTarget": "unpkg-immutable-example:build"
6565
},
6666
"configurations": {
6767
"production": {
68-
"browserTarget": "ng-immutable-example:build:production"
68+
"browserTarget": "unpkg-immutable-example:build:production"
6969
}
7070
}
7171
},
7272
"extract-i18n": {
7373
"builder": "@angular-devkit/build-angular:extract-i18n",
7474
"options": {
75-
"browserTarget": "ng-immutable-example:build"
75+
"browserTarget": "unpkg-immutable-example:build"
7676
}
7777
},
7878
"test": {
@@ -106,7 +106,7 @@
106106
}
107107
}
108108
},
109-
"ng-immutable-example-e2e": {
109+
"unpkg-immutable-example-e2e": {
110110
"root": "e2e/",
111111
"projectType": "application",
112112
"prefix": "",
@@ -115,11 +115,11 @@
115115
"builder": "@angular-devkit/build-angular:protractor",
116116
"options": {
117117
"protractorConfig": "e2e/protractor.conf.js",
118-
"devServerTarget": "ng-immutable-example:serve"
118+
"devServerTarget": "unpkg-immutable-example:serve"
119119
},
120120
"configurations": {
121121
"production": {
122-
"devServerTarget": "ng-immutable-example:serve:production"
122+
"devServerTarget": "unpkg-immutable-example:serve:production"
123123
}
124124
}
125125
},
@@ -135,5 +135,5 @@
135135
}
136136
}
137137
},
138-
"defaultProject": "ng-immutable-example"
138+
"defaultProject": "unpkg-immutable-example"
139139
}

e2e/src/app.e2e-spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ describe('workspace-project App', () => {
99

1010
it('should display welcome message', () => {
1111
page.navigateTo();
12-
expect(page.getParagraphText()).toEqual('Welcome to ng-immutable-example!');
12+
expect(page.getParagraphText()).toEqual('Welcome to unpkg-immutable-example!');
1313
});
1414
});

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "ng-immutable-example",
3-
"version": "0.0.0",
2+
"name": "@immutablewebapps/unpkg-immutable-example",
3+
"version": "0.0.1",
44
"scripts": {
55
"ng": "ng",
66
"start": "ng serve",
@@ -9,7 +9,7 @@
99
"lint": "ng lint",
1010
"e2e": "ng e2e"
1111
},
12-
"private": true,
12+
"private": false,
1313
"dependencies": {
1414
"@angular/animations": "~7.0.0",
1515
"@angular/common": "~7.0.0",
@@ -44,5 +44,8 @@
4444
"ts-node": "~7.0.0",
4545
"tslint": "~5.11.0",
4646
"typescript": "~3.1.1"
47-
}
47+
},
48+
"files": [
49+
"dist/unpkg-immutable-example"
50+
]
4851
}

src/app/app.component.spec.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ describe('AppComponent', () => {
1616
expect(app).toBeTruthy();
1717
});
1818

19-
it(`should have as title 'ng-immutable-example'`, () => {
19+
it(`should have as title 'unpkg-immutable-example'`, () => {
2020
const fixture = TestBed.createComponent(AppComponent);
2121
const app = fixture.debugElement.componentInstance;
22-
expect(app.title).toEqual('ng-immutable-example');
22+
expect(app.title).toEqual('unpkg-immutable-example');
2323
});
2424

2525
it('should render title in a h1 tag', () => {
2626
const fixture = TestBed.createComponent(AppComponent);
2727
fixture.detectChanges();
2828
const compiled = fixture.debugElement.nativeElement;
29-
expect(compiled.querySelector('h1').textContent).toContain('Welcome to ng-immutable-example!');
29+
expect(compiled.querySelector('h1').textContent).toContain('Welcome to unpkg-immutable-example!');
3030
});
3131
});

src/app/app.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ import { Component } from '@angular/core';
66
styleUrls: ['./app.component.css']
77
})
88
export class AppComponent {
9-
title = 'ng-immutable-example';
9+
title = 'unpkg-immutable-example';
1010
}

0 commit comments

Comments
 (0)