Skip to content

Commit

Permalink
rename to unpkg-immutable-example
Browse files Browse the repository at this point in the history
  • Loading branch information
Gene Connolly committed Nov 13, 2018
1 parent ffde95a commit a5ec142
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 20 deletions.
18 changes: 9 additions & 9 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
"ng-immutable-example": {
"unpkg-immutable-example": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
Expand All @@ -15,7 +15,7 @@
"options": {
"deployUrl": "<%=deployUrl%>",
"baseHref": "<%=baseHref%>",
"outputPath": "dist/ng-immutable-example",
"outputPath": "dist/unpkg-immutable-example",
"index": "src/index.ejs",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
Expand Down Expand Up @@ -61,18 +61,18 @@
"options": {
"baseHref": "/",
"deployUrl": "",
"browserTarget": "ng-immutable-example:build"
"browserTarget": "unpkg-immutable-example:build"
},
"configurations": {
"production": {
"browserTarget": "ng-immutable-example:build:production"
"browserTarget": "unpkg-immutable-example:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "ng-immutable-example:build"
"browserTarget": "unpkg-immutable-example:build"
}
},
"test": {
Expand Down Expand Up @@ -106,7 +106,7 @@
}
}
},
"ng-immutable-example-e2e": {
"unpkg-immutable-example-e2e": {
"root": "e2e/",
"projectType": "application",
"prefix": "",
Expand All @@ -115,11 +115,11 @@
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "ng-immutable-example:serve"
"devServerTarget": "unpkg-immutable-example:serve"
},
"configurations": {
"production": {
"devServerTarget": "ng-immutable-example:serve:production"
"devServerTarget": "unpkg-immutable-example:serve:production"
}
}
},
Expand All @@ -135,5 +135,5 @@
}
}
},
"defaultProject": "ng-immutable-example"
"defaultProject": "unpkg-immutable-example"
}
2 changes: 1 addition & 1 deletion e2e/src/app.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ describe('workspace-project App', () => {

it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to ng-immutable-example!');
expect(page.getParagraphText()).toEqual('Welcome to unpkg-immutable-example!');
});
});
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ng-immutable-example",
"version": "0.0.0",
"name": "@immutablewebapps/unpkg-immutable-example",
"version": "0.0.1",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand All @@ -9,7 +9,7 @@
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"private": false,
"dependencies": {
"@angular/animations": "~7.0.0",
"@angular/common": "~7.0.0",
Expand Down Expand Up @@ -44,5 +44,8 @@
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "~3.1.1"
}
},
"files": [
"dist/unpkg-immutable-example"
]
}
6 changes: 3 additions & 3 deletions src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ describe('AppComponent', () => {
expect(app).toBeTruthy();
});

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

it('should render title in a h1 tag', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.debugElement.nativeElement;
expect(compiled.querySelector('h1').textContent).toContain('Welcome to ng-immutable-example!');
expect(compiled.querySelector('h1').textContent).toContain('Welcome to unpkg-immutable-example!');
});
});
2 changes: 1 addition & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import { Component } from '@angular/core';
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'ng-immutable-example';
title = 'unpkg-immutable-example';
}

0 comments on commit a5ec142

Please sign in to comment.