Skip to content

Commit

Permalink
Add ansyn libraries (@ansyn/*) (#1792)
Browse files Browse the repository at this point in the history
* add general library (ng-ansyn)

* remvoe all effects docs

* build(ngc): fix all ngc errors

* fix: types of tests

* rename ng-ansyn to @ansyn/ansyn

* feat(ansyn-lib):add fetchConfigProviders to public_api

* remove ng-ansyn pck

* fix: configuration add needToUseLayerExtent

* login, router out off @AnSyn

* login, router out of @AnSyn

* fix: ngc

* mv context to core

* mv context to core

* overlays to core

* fix all not relative imports on core

* rmv not relative paths from map-facade

* add necessary path

* feat: menu library

* feat: status-bar library

* feat: menu items

* feat: plugins lib

* revert configuration path

* feat: overlays, context libraries

* feat: add test for travis

* fix to relative path

* fix testing

* menu item to fetch config

* fix: moment with rollup issue

* fix: root path only for packagejson

* remove comments

* remove redundant path from menu-items

* export context actions, reducers

* replace all context imports

* only public_api import path for core

* ansyn import only from public_api

* add protections tsconfig files

* tsconfig fixing

* update versions

* styles less fixing imports

* add script for publish

* feat(script): add script for build libs

* lint(@AnSyn)

* public less files to css

* fix: ansyn/ansyn packagejson

* ng lint to travis (instead of precommit)

* add indexing for libraries

* fix: ngc compile

* fix builder compile
  • Loading branch information
yairtawil authored Sep 13, 2018
1 parent fdc28e4 commit 7528189
Show file tree
Hide file tree
Showing 476 changed files with 4,471 additions and 3,976 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,5 @@ yarn.lock
confd/dev
confd/confd.exe
confd/confd

src/ng-ansyn.metadata.json
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ before_script:
#- apt-get install graphicsmagick # for e2e screenshots

script:
- npm run lint
- npm run test:single-run
- npm run test:e2e
- npm run build:libs
- sh -x scripts/build.sh ansyn $TRAVIS_COMMIT $TRAVIS_TAG

cache:
Expand Down
208 changes: 178 additions & 30 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"src/favicon.ico"
],
"styles": [
"src/app/@ansyn/assets/styles/styles.less"
"src/app/@ansyn/assets/styles/styles.css"
],
"stylePreprocessorOptions": {
"includePaths": [
Expand All @@ -43,6 +43,10 @@
{
"replace": "src/configuration/configuration.ts",
"with": "src/configuration/configuration.dev.ts"
},
{
"replace": "src/app/@ansyn/ansyn/config/ansyn.config.ts",
"with": "src/app/@ansyn/ansyn/config/ansyn.config.dev.ts"
}
]
},
Expand All @@ -60,6 +64,10 @@
{
"replace": "src/configuration/configuration.ts",
"with": "src/configuration/configuration.prod.ts"
},
{
"replace": "src/app/@ansyn/ansyn/config/ansyn.config.ts",
"with": "src/app/@ansyn/ansyn/config/ansyn.config.prod.ts"
}
]
}
Expand Down Expand Up @@ -94,7 +102,7 @@
"tsConfig": "src/tsconfig.spec.json",
"scripts": [],
"styles": [
"src/app/@ansyn/assets/styles/styles.less"
"src/app/@ansyn/assets/styles/styles.css"
],
"stylePreprocessorOptions": {
"includePaths": [
Expand Down Expand Up @@ -178,7 +186,7 @@
"src/favicon.ico"
],
"styles": [
"src/app/@ansyn/assets/styles/styles.less"
"src/app/@ansyn/assets/styles/styles.css"
],
"scripts": []
},
Expand Down Expand Up @@ -239,7 +247,7 @@
"tsConfig": "src/tsconfig.spec.json",
"scripts": [],
"styles": [
"src/app/@ansyn/assets/styles/styles.less"
"src/app/@ansyn/assets/styles/styles.css"
],
"assets": [
{
Expand Down Expand Up @@ -293,7 +301,7 @@
"src/favicon.ico"
],
"styles": [
"src/app/@ansyn/assets/styles/styles.less"
"src/app/@ansyn/assets/styles/styles.css"
],
"scripts": []
},
Expand Down Expand Up @@ -354,7 +362,7 @@
"tsConfig": "src/tsconfig.spec.json",
"scripts": [],
"styles": [
"src/app/@ansyn/assets/styles/styles.less"
"src/app/@ansyn/assets/styles/styles.css"
],
"assets": [
{
Expand All @@ -380,62 +388,202 @@
}
}
},
"@ansyn/ansyn": {
"root": "src/app/@ansyn/ansyn",
"sourceRoot": "src/app/@ansyn/ansyn/src",
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "src/app/@ansyn/ansyn/tsconfig.lib.json",
"project": "src/app/@ansyn/ansyn/ng-package.json"
},
"configurations": {
"production": {
"project": "src/app/@ansyn/ansyn/ng-package.json"
}
}
}
}
},
"@ansyn/map-facade": {
"root": "src/app/@ansyn/map-facade",
"sourceRoot": "projects/ansyn/map-facade/src",
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "src/app/@ansyn/map-facade/tsconfig.lib.json",
"project": "src/app/@ansyn/map-facade/ng-package.json"
},
"configurations": {
"production": {
"project": "src/app/@ansyn/map-facade/ng-package.json"
}
}
}
}
},
"@ansyn/core": {
"root": "projects/ansyn/core",
"root": "projectssrc/app/@ansyn/ansyn/core",
"sourceRoot": "src/app/@ansyn/core",
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/ansyn/core/tsconfig.lib.json",
"project": "projects/ansyn/core/ng-package.json"
"tsConfig": "src/app/@ansyn/core/tsconfig.lib.json",
"project": "src/app/@ansyn/core/ng-package.json"
},
"configurations": {
"production": {
"project": "projects/ansyn/core/ng-package.json"
"project": "src/app/@ansyn/core/ng-package.json"
}
}
}
}
},
"@ansyn/imagery": {
"root": "projects/ansyn/imagery",
"root": "src/app/@ansyn/imagery",
"sourceRoot": "src/app/@ansyn/imagery",
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/ansyn/imagery/tsconfig.lib.json",
"project": "projects/ansyn/imagery/ng-package.json"
"tsConfig": "src/app/@ansyn/imagery/tsconfig.lib.json",
"project": "src/app/@ansyn/imagery/ng-package.json"
},
"configurations": {
"production": {
"project": "projects/ansyn/imagery/ng-package.prod.json"
"project": "src/app/@ansyn/imagery/ng-package.json"
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
}
}
},
"@ansyn/menu": {
"root": "src/app/@ansyn/menu",
"sourceRoot": "src/app/@ansyn/menu",
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"main": "projects/ansyn/imagery/src/test.ts",
"tsConfig": "projects/ansyn/imagery/tsconfig.spec.json",
"karmaConfig": "projects/ansyn/imagery/karma.conf.js"
"tsConfig": "src/app/@ansyn/menu/tsconfig.lib.json",
"project": "src/app/@ansyn/menu/ng-package.json"
},
"configurations": {
"production": {
"project": "src/app/@ansyn/menu/ng-package.json"
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
}
}
},
"@ansyn/status-bar": {
"root": "src/app/@ansyn/status-bar",
"sourceRoot": "src/app/@ansyn/status-bar",
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": [
"projects/ansyn/imagery/tsconfig.lib.json",
"projects/ansyn/imagery/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
"tsConfig": "src/app/@ansyn/status-bar/tsconfig.lib.json",
"project": "src/app/@ansyn/status-bar/ng-package.json"
},
"configurations": {
"production": {
"project": "src/app/@ansyn/menu/ng-package.json"
}
}
}
}
},
"@ansyn/menu-items": {
"root": "src/app/@ansyn/menu-items",
"sourceRoot": "src/app/@ansyn/menu-items",
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "src/app/@ansyn/menu-items/tsconfig.lib.json",
"project": "src/app/@ansyn/menu-items/ng-package.json"
},
"configurations": {
"production": {
"project": "src/app/@ansyn/menu/ng-package.json"
}
}
}
}
},
"@ansyn/plugins": {
"root": "src/app/@ansyn/plugins",
"sourceRoot": "src/app/@ansyn/plugins",
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "src/app/@ansyn/plugins/tsconfig.lib.json",
"project": "src/app/@ansyn/plugins/ng-package.json"
},
"configurations": {
"production": {
"project": "src/app/@ansyn/plugins/ng-package.json"
}
}
}
}
},
"@ansyn/overlays": {
"root": "src/app/@ansyn/overlays",
"sourceRoot": "src/app/@ansyn/overlays",
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "src/app/@ansyn/overlays/tsconfig.lib.json",
"project": "src/app/@ansyn/overlays/ng-package.json"
},
"configurations": {
"production": {
"project": "src/app/@ansyn/overlays/ng-package.json"
}
}
}
}
},
"@ansyn/context": {
"root": "src/app/@ansyn/context",
"sourceRoot": "src/app/@ansyn/context",
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "src/app/@ansyn/context/tsconfig.lib.json",
"project": "src/app/@ansyn/context/ng-package.json"
},
"configurations": {
"production": {
"project": "src/app/@ansyn/context/ng-package.json"
}
}
}
}
Expand Down
19 changes: 8 additions & 11 deletions confd/templates/production.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@
},
"overlaysConfig": {
"limit": 249,
"overlayOverviewFailed": "assets/icons/preview-failed-to-find-overlay-preview.svg"
},
"mapFacadeConfig": {
"overlayCoverage": 0.1,
"displayDebounceTime": 400,
"sourceTypeNotices": {
"PLANET": {
"Default": "Open California Satellite Imagery © 2016 Planet Labs Inc. licensed under CC BY-SA 4.0.",
Expand All @@ -126,11 +131,7 @@
"OPEN_AERIAL": {
"Default": "© Copyright 2010, OpenAerialMap contributors"
}
}
},
"mapFacadeConfig": {
"overlayCoverage": 0.1,
"displayDebounceTime": 400,
},
"sensorTypeShortcuts": {
"Panchromatic": "P",
"8-band (Coastal, Blue, Green, Yellow, Red, Red-edge, NIR1, NIR2) Multispectral": "8B",
Expand Down Expand Up @@ -348,12 +349,8 @@
"default": {
"Sentinel-2A": "Sentinel 2A"
}
}
},
"loginConfig": {
"baseUrl": "{{ getv "/ansyn/login/baseurl" "http://ansyn.io:9001/api/v1/login" }}",
"active": "{{ getv "/ansyn/login/active" "" }}",
"authorizedPath": "/"
},
"needToUseLayerExtent": false
},
"menuConfig": {
"path": "assets/logo.svg",
Expand Down
Loading

0 comments on commit 7528189

Please sign in to comment.