Skip to content

Commit

Permalink
chore(build): build warn ng-packagr No name was provided for external…
Browse files Browse the repository at this point in the history
… module (#609)

* chore(*) build warn ng-packagr  No name was provided for external module '...' in output.globals – guessing '...'

* chore(*) combineLatest(a,b,c) deprecated
  • Loading branch information
pelord authored Mar 31, 2020
1 parent e84ae8c commit 3cb814f
Show file tree
Hide file tree
Showing 16 changed files with 242 additions and 17 deletions.
7 changes: 6 additions & 1 deletion packages/auth/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
"dest": "../../dist/auth",
"deleteDestPath": false,
"lib": {
"entryFile": "src/public_api.ts"
"entryFile": "src/public_api.ts",
"umdModuleIds": {
"@igo2/core" : "core",
"@igo2/utils" : "utils",
"jwt-decode" : "jwt"
}
},
"whitelistedNonPeerDependencies": ["jwt-decode", "ngx-cacheable", "ts-md5"]
}
7 changes: 6 additions & 1 deletion packages/auth/ng-package.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/auth",
"lib": {
"entryFile": "src/public_api.ts"
"entryFile": "src/public_api.ts",
"umdModuleIds": {
"@igo2/core" : "core",
"@igo2/utils" : "utils",
"jwt-decode" : "jwt"
}
},
"whitelistedNonPeerDependencies": ["jwt-decode", "ngx-cacheable", "ts-md5"]
}
8 changes: 7 additions & 1 deletion packages/common/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"dest": "../../dist/common",
"deleteDestPath": false,
"lib": {
"entryFile": "src/public_api.ts"
"entryFile": "src/public_api.ts",
"umdModuleIds": {
"@igo2/core" : "core",
"@igo2/utils" : "utils",
"scroll-into-view-if-needed" : "scrollIntoView",
"typy" : "typy"
}
}
}
8 changes: 7 additions & 1 deletion packages/common/ng-package.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/common",
"lib": {
"entryFile": "src/public_api.ts"
"entryFile": "src/public_api.ts",
"umdModuleIds": {
"@igo2/core" : "core",
"@igo2/utils" : "utils",
"scroll-into-view-if-needed" : "scrollIntoView",
"typy" : "typy"
}
}
}
4 changes: 2 additions & 2 deletions packages/common/src/lib/entity/shared/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,10 @@ export class EntityView<E extends object, V extends object = E> {
*/
private liftJoinedSource(): Observable<V[]> {
const sources$ = [this.source$, combineLatest(
...this.joins.map((join: EntityJoinClause) => join.source)
this.joins.map((join: EntityJoinClause) => join.source)
)];

return combineLatest(...sources$)
return combineLatest(sources$)
.pipe(
map((bunch: [E[], any[]]) => {
const [entities, joinData] = bunch;
Expand Down
13 changes: 12 additions & 1 deletion packages/context/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
"dest": "../../dist/context",
"deleteDestPath": false,
"lib": {
"entryFile": "src/public_api.ts"
"entryFile": "src/public_api.ts",
"umdModuleIds": {
"ol/proj" : "olproj",
"ol/easing" : "oleasing",
"ol/geom/Point" : "olPoint",
"@igo2/utils" : "utils",
"@igo2/auth" : "auth",
"@igo2/core" : "core",
"@igo2/common" : "common",
"@igo2/geo" : "geo",
"ol/format/GeoJSON" : "olFormatGeoJSON"
}
}
}
13 changes: 12 additions & 1 deletion packages/context/ng-package.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,18 @@
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/context",
"lib": {
"entryFile": "src/public_api.ts"
"entryFile": "src/public_api.ts",
"umdModuleIds": {
"ol/proj" : "olproj",
"ol/easing" : "oleasing",
"ol/geom/Point" : "olPoint",
"@igo2/utils" : "utils",
"@igo2/auth" : "auth",
"@igo2/core" : "core",
"@igo2/common" : "common",
"@igo2/geo" : "geo",
"ol/format/GeoJSON" : "olFormatGeoJSON"
}
},
"whitelistedNonPeerDependencies": ["ts-md5"]
}
7 changes: 6 additions & 1 deletion packages/core/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
"dest": "../../dist/core",
"deleteDestPath": false,
"lib": {
"entryFile": "src/public_api.ts"
"entryFile": "src/public_api.ts",
"umdModuleIds": {
"@igo2/utils" : "utils",
"angular2-notifications" : "ng2notify",
"@ngx-translate/core" : "ngxt-core"
}
},
"whitelistedNonPeerDependencies": ["@ngx-translate", "angular2-notifications"]
}
7 changes: 6 additions & 1 deletion packages/core/ng-package.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/core",
"lib": {
"entryFile": "src/public_api.ts"
"entryFile": "src/public_api.ts",
"umdModuleIds": {
"@igo2/utils" : "utils",
"angular2-notifications" : "ng2notify",
"@ngx-translate/core" : "ngxt-core"
}
},
"whitelistedNonPeerDependencies": ["@ngx-translate", "angular2-notifications"]
}
2 changes: 1 addition & 1 deletion packages/core/src/lib/language/shared/language.loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class LanguageLoader implements TranslateLoader {

const appLocale$ = this.http.get(`${this.prefix}${lang}${this.suffix}`);

const locale$ = combineLatest(igoLocale$, appLocale$);
const locale$ = combineLatest([igoLocale$, appLocale$]);

return locale$.pipe(
map(translations => {
Expand Down
78 changes: 77 additions & 1 deletion packages/geo/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,83 @@
"dest": "../../dist/geo",
"deleteDestPath": false,
"lib": {
"entryFile": "src/public_api.ts"
"entryFile": "src/public_api.ts",
"umdModuleIds": {
"ol-mapbox-style/stylefunction" : "stylefunction",
"ol/source/OSM" : "olSourceOSM",
"ol/source/XYZ" : "olSourceXYZ",
"ol/format/filter" : "olfilter",
"ol/format/WFS" : "olFormatWFS",
"ol/format/GML32" : "olFormatGML32",
"ol/format/OSMXML" : "olFormatOSMXML",
"ol/source/ImageWMS" : "olSourceImageWMS",
"ol/source/WMTS" : "olSourceWMTS",
"ol/tilegrid/WMTS" : "olTileGridWMTS",
"ol/extent.js" : "extent_js",
"ol/source/CartoDB" : "olSourceCarto",
"ol/loadingstrategy" : "OlLoadingStrategy",
"ol/source/TileArcGISRest" : "olSourceTileArcGISRest",
"ts-md5" : "tsMd5",
"ol/source/VectorTile" : "olSourceVectorTile",
"ol/format/MVT" : "olFormatMVT",
"ol/source/Cluster" : "olSourceCluster",
"ngx-cacheable" : "ngxCacheable",
"ol/source/WMTS.js" : "WMTS_js",
"ol/Map" : "olMap",
"ol/View" : "olView",
"ol/Geolocation" : "olGeolocation",
"ol/control/Attribution" : "olAttribution",
"ol/control/ScaleLine" : "olControlScaleLine",
"ol/geom/Circle" : "olCircle",
"ol/layer/Image" : "olLayerImage",
"ol/layer/Tile" : "olLayerTile",
"ol/color" : "color",
"ol/layer/VectorTile" : "olLayerVectorTile",
"ol/easing" : "oleasing",
"ol/has" : "has",
"proj4" : "proj4",
"ol/proj/proj4" : "olproj4",
"ol/format/GML2" : "olFormatGML2",
"ol/format/GML3" : "olFormatGML3",
"ol/format/EsriJSON" : "olFormatEsriJSON",
"ol/proj/Projection" : "olProjection",
"@mat-datetimepicker/core" : "datepickercore",
"ol/geom/Point" : "OlPoint",
"ol/Overlay" : "OlOverlay",
"ol/sphere" : "sphere",
"ol/style/Style" : "OlStyle",
"ol/geom/LineString" : "OlLineString",
"@turf/line-intersect" : "lineIntersect",
"@turf/helpers" : "helpers",
"ol/interaction/Modify" : "OlModify",
"ol/interaction/Translate" : "OlTranslate",
"ol/interaction/Draw" : "OlDraw",
"ol/geom/Polygon" : "OlPolygon",
"ol/geom/LinearRing" : "OlLinearRing",
"ol/interaction/DragBox" : "OlDragBoxInteraction",
"ol/source/Vector" : "OlVectorSource",
"ol/layer/Vector" : "OlVectorLayer",
"moment" : "moment",
"ol/format/WKT" : "olWKT",
"file-saver" : "fileSaver",
"jspdf" : "jsPDF",
"html2canvas" : "_html2canvas",
"jszip" : "JSZip",
"ol/Feature" : "olFeature",
"ol/geom" : "olgeom",
"ol/proj" : "olproj",
"ol/style" : "olstyle",
"ol/events/condition" : "olcondition",
"ol/interaction" : "olinteraction",
"ol/extent" : "olextent",
"ol/Observable" : "olobservable",
"@igo2/auth" : "auth",
"ol/format/GeoJSON" : "OlGeoJSON",
"@igo2/common" : "common",
"ol/format" : "olformat",
"@igo2/utils" : "utils",
"@igo2/core" : "core"
}
},
"whitelistedNonPeerDependencies": [
"ngx-cacheable",
Expand Down
78 changes: 77 additions & 1 deletion packages/geo/ng-package.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,83 @@
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/geo",
"lib": {
"entryFile": "src/public_api.ts"
"entryFile": "src/public_api.ts",
"umdModuleIds": {
"ol-mapbox-style/stylefunction" : "stylefunction",
"ol/source/OSM" : "olSourceOSM",
"ol/source/XYZ" : "olSourceXYZ",
"ol/format/filter" : "olfilter",
"ol/format/WFS" : "olFormatWFS",
"ol/format/GML32" : "olFormatGML32",
"ol/format/OSMXML" : "olFormatOSMXML",
"ol/source/ImageWMS" : "olSourceImageWMS",
"ol/source/WMTS" : "olSourceWMTS",
"ol/tilegrid/WMTS" : "olTileGridWMTS",
"ol/extent.js" : "extent_js",
"ol/source/CartoDB" : "olSourceCarto",
"ol/loadingstrategy" : "OlLoadingStrategy",
"ol/source/TileArcGISRest" : "olSourceTileArcGISRest",
"ts-md5" : "tsMd5",
"ol/source/VectorTile" : "olSourceVectorTile",
"ol/format/MVT" : "olFormatMVT",
"ol/source/Cluster" : "olSourceCluster",
"ngx-cacheable" : "ngxCacheable",
"ol/source/WMTS.js" : "WMTS_js",
"ol/Map" : "olMap",
"ol/View" : "olView",
"ol/Geolocation" : "olGeolocation",
"ol/control/Attribution" : "olAttribution",
"ol/control/ScaleLine" : "olControlScaleLine",
"ol/geom/Circle" : "olCircle",
"ol/layer/Image" : "olLayerImage",
"ol/layer/Tile" : "olLayerTile",
"ol/color" : "color",
"ol/layer/VectorTile" : "olLayerVectorTile",
"ol/easing" : "oleasing",
"ol/has" : "has",
"proj4" : "proj4",
"ol/proj/proj4" : "olproj4",
"ol/format/GML2" : "olFormatGML2",
"ol/format/GML3" : "olFormatGML3",
"ol/format/EsriJSON" : "olFormatEsriJSON",
"ol/proj/Projection" : "olProjection",
"@mat-datetimepicker/core" : "datepickercore",
"ol/geom/Point" : "OlPoint",
"ol/Overlay" : "OlOverlay",
"ol/sphere" : "sphere",
"ol/style/Style" : "OlStyle",
"ol/geom/LineString" : "OlLineString",
"@turf/line-intersect" : "lineIntersect",
"@turf/helpers" : "helpers",
"ol/interaction/Modify" : "OlModify",
"ol/interaction/Translate" : "OlTranslate",
"ol/interaction/Draw" : "OlDraw",
"ol/geom/Polygon" : "OlPolygon",
"ol/geom/LinearRing" : "OlLinearRing",
"ol/interaction/DragBox" : "OlDragBoxInteraction",
"ol/source/Vector" : "OlVectorSource",
"ol/layer/Vector" : "OlVectorLayer",
"moment" : "moment",
"ol/format/WKT" : "olWKT",
"file-saver" : "fileSaver",
"jspdf" : "jsPDF",
"html2canvas" : "_html2canvas",
"jszip" : "JSZip",
"ol/Feature" : "olFeature",
"ol/geom" : "olgeom",
"ol/proj" : "olproj",
"ol/style" : "olstyle",
"ol/events/condition" : "olcondition",
"ol/interaction" : "olinteraction",
"ol/extent" : "olextent",
"ol/Observable" : "olobservable",
"@igo2/auth" : "auth",
"ol/format/GeoJSON" : "OlGeoJSON",
"@igo2/common" : "common",
"ol/format" : "olformat",
"@igo2/utils" : "utils",
"@igo2/core" : "core"
}
},
"whitelistedNonPeerDependencies": [
"ngx-cacheable",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class FeatureStoreSelectionStrategy extends EntityStoreStrategy {
map((records: EntityRecord<Feature>[]) => records.map(record => record.entity))
);
});
this.stores$$ = combineLatest(...stores$)
this.stores$$ = combineLatest(stores$)
.pipe(
debounceTime(5),
skip(1), // Skip intial selection
Expand Down
10 changes: 9 additions & 1 deletion packages/integration/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
"dest": "../../dist/integration",
"deleteDestPath": false,
"lib": {
"entryFile": "src/public_api.ts"
"entryFile": "src/public_api.ts",
"umdModuleIds": {
"@igo2/geo" : "geo",
"ol/format/GeoJSON" : "olFormatGeoJSON",
"ol/style" : "olstyle",
"@igo2/core" : "core",
"@igo2/context" : "context",
"@igo2/common" : "common"
}
}
}
10 changes: 9 additions & 1 deletion packages/integration/ng-package.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/integration",
"lib": {
"entryFile": "src/public_api.ts"
"entryFile": "src/public_api.ts",
"umdModuleIds": {
"@igo2/geo" : "igoGeo",
"ol/format/GeoJSON" : "olFormatGeoJSON",
"ol/style" : "olstyle",
"@igo2/core" : "igoCore",
"@igo2/context" : "igoContext",
"@igo2/common" : "igoCommon"
}
}
}
5 changes: 4 additions & 1 deletion packages/utils/ng-package.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/utils",
"lib": {
"entryFile": "src/public_api.ts"
"entryFile": "src/public_api.ts",
"umdModuleIds": {
"bowser" : "bowser"
}
},
"whitelistedNonPeerDependencies": ["bowser"]
}

0 comments on commit 3cb814f

Please sign in to comment.