diff --git a/package.json b/package.json index 0838e76..895f2b3 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,8 @@ "build": "ng build", "test": "ng test", "lint": "ng lint", - "e2e": "ng e2e" + "e2e": "ng e2e", + "build:library": "node scripts/build.js" }, "cordova": { "plugins": { diff --git a/scripts/build.js b/scripts/build.js new file mode 100644 index 0000000..97652b6 --- /dev/null +++ b/scripts/build.js @@ -0,0 +1,15 @@ +var ngPackage = require('ng-packagr'); +var path = require('path'); + +var packageCfg = path.normalize(path.join(__dirname, '../ng-package.json')); +var tsConfig = path.normalize(path.join(__dirname, '../tsconfig.lib.json')); + +ngPackage + .ngPackagr() + .forProject(packageCfg) + .withTsConfig(tsConfig) + .build() + .catch(error => { + console.error(error); + process.exit(1); + }); diff --git a/src/app/components/ionic-selectable/ionic-selectable-modal.component.html b/src/app/components/ionic-selectable/ionic-selectable-modal.component.html index 9077a22..6520241 100644 --- a/src/app/components/ionic-selectable/ionic-selectable-modal.component.html +++ b/src/app/components/ionic-selectable/ionic-selectable-modal.component.html @@ -119,7 +119,7 @@ + (ionInfinite)="selectComponent._getMoreItems()"> { diff --git a/tsconfig.lib.json b/tsconfig.lib.json new file mode 100644 index 0000000..058c75f --- /dev/null +++ b/tsconfig.lib.json @@ -0,0 +1,11 @@ +{ + "extends": "./node_modules/ng-packagr/lib/ts/conf/tsconfig.ngc.json", + "angularCompilerOptions": { + "annotateForClosureCompiler": true, + "flatModuleId": "AUTOGENERATED", + "flatModuleOutFile": "AUTOGENERATED", + "skipTemplateCodegen": true, + "strictMetadataEmit": true, + "fullTemplateTypeCheck": true + } +}