diff --git a/README.md b/README.md index 451d4d3..371a801 100644 --- a/README.md +++ b/README.md @@ -122,11 +122,15 @@ npm install ``` ```bash -npm run pack:build +npm run build ``` ```bash -cd playground +npm run pack:lib +``` + +```bash +cd playground && npm install ``` ```bash diff --git a/build.js b/build.js index 9c91a3e..cb5be60 100644 --- a/build.js +++ b/build.js @@ -12,6 +12,7 @@ const FESM5_DIR = `${NPM_DIR}/fesm5`; const BUNDLES_DIR = `${NPM_DIR}/bundles`; const OUT_DIR = `${NPM_DIR}/package`; const OUT_DIR_ESM5 = `${NPM_DIR}/package/esm5`; +const OUT_DIR_ESM5_ABS = `${__dirname}/${OUT_DIR_ESM5}`; shell.echo(`Start building...`); @@ -61,7 +62,7 @@ if (shell.exec(`rollup -c rollup.es.config.js -i ${NPM_DIR}/${PACKAGE}.js -o ${F } shell.echo(`Produce ESM5/FESM5 versions`); -shell.exec(`ngc -p ${OUT_DIR}/tsconfig-build.json --target es5 -d false --outDir ${OUT_DIR_ESM5} --sourceMap`); +shell.exec(`ngc -p ${OUT_DIR}/tsconfig-build.json --target es5 -d false --outDir ${OUT_DIR_ESM5_ABS} --sourceMap`); shell.cp(`-Rf`, [`${OUT_DIR_ESM5}/src/`, `${OUT_DIR_ESM5}/*.js`, `${OUT_DIR_ESM5}/*.js.map`], `${ESM5_DIR}`); if (shell.exec(`rollup -c rollup.es.config.js -i ${OUT_DIR_ESM5}/${PACKAGE}.js -o ${FESM5_DIR}/${PACKAGE}.js`).code !== 0) { shell.echo(chalk.red(`Error: FESM5 version failed`)); diff --git a/docs/classes/AppPage.html b/docs/classes/AppPage.html index 107c1b6..bc3d873 100644 --- a/docs/classes/AppPage.html +++ b/docs/classes/AppPage.html @@ -137,7 +137,7 @@

- Returns : any + Returns : Promise<string>
@@ -176,7 +176,7 @@

- Returns : any + Returns : Promise<unknown>
@@ -196,12 +196,12 @@

import { browser, by, element } from 'protractor';
 
 export class AppPage {
-  navigateTo() {
-    return browser.get(browser.baseUrl) as Promise<any>;
+  navigateTo(): Promise<unknown> {
+    return browser.get(browser.baseUrl) as Promise<unknown>;
   }
 
-  getTitleText() {
-    return element(by.css('app-root h1')).getText() as Promise<string>;
+  getTitleText(): Promise<string> {
+    return element(by.css('app-root .content span')).getText() as Promise<string>;
   }
 }
 
@@ -210,6 +210,7 @@

+ @@ -232,6 +233,7 @@

No results matching " diff --git a/docs/components/AppComponent.html b/docs/components/AppComponent.html index 1bd5eee..e626f99 100644 --- a/docs/components/AppComponent.html +++ b/docs/components/AppComponent.html @@ -491,6 +491,7 @@

+ @@ -513,6 +514,7 @@

No results matching " diff --git a/docs/coverage.html b/docs/coverage.html index 5f1bb33..7eae9e1 100644 --- a/docs/coverage.html +++ b/docs/coverage.html @@ -43,6 +43,7 @@ +