diff --git a/angular.json b/angular.json index e66fe3d..3feea90 100644 --- a/angular.json +++ b/angular.json @@ -3,7 +3,7 @@ "version": 1, "newProjectRoot": "projects", "projects": { - "ng-immutable-example": { + "unpkg-immutable-example": { "root": "", "sourceRoot": "src", "projectType": "application", @@ -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", @@ -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": { @@ -106,7 +106,7 @@ } } }, - "ng-immutable-example-e2e": { + "unpkg-immutable-example-e2e": { "root": "e2e/", "projectType": "application", "prefix": "", @@ -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" } } }, @@ -135,5 +135,5 @@ } } }, - "defaultProject": "ng-immutable-example" + "defaultProject": "unpkg-immutable-example" } \ No newline at end of file diff --git a/e2e/src/app.e2e-spec.ts b/e2e/src/app.e2e-spec.ts index e7cc8b0..1877844 100644 --- a/e2e/src/app.e2e-spec.ts +++ b/e2e/src/app.e2e-spec.ts @@ -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!'); }); }); diff --git a/package-lock.json b/package-lock.json index 7076dcc..b72b534 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { - "name": "ng-immutable-example", - "version": "0.0.0", + "name": "@immutablewebapps/unpkg-immutable-example", + "version": "0.0.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 96d2964..366d403 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", @@ -44,5 +44,8 @@ "ts-node": "~7.0.0", "tslint": "~5.11.0", "typescript": "~3.1.1" - } + }, + "files": [ + "dist/unpkg-immutable-example" + ] } diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts index 273d863..302bf54 100644 --- a/src/app/app.component.spec.ts +++ b/src/app/app.component.spec.ts @@ -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!'); }); }); diff --git a/src/app/app.component.ts b/src/app/app.component.ts index dd71c97..a20ee05 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -6,5 +6,5 @@ import { Component } from '@angular/core'; styleUrls: ['./app.component.css'] }) export class AppComponent { - title = 'ng-immutable-example'; + title = 'unpkg-immutable-example'; }