From f0dff4d0110eb84bb115eff55d532f859113de68 Mon Sep 17 00:00:00 2001 From: Maurizio Vitale Date: Mon, 19 Nov 2018 13:28:02 +0000 Subject: [PATCH] Travis cache (#3972) * Use name instead of env * Enable cache dist * enable only master and dev * rename e2e lib * add nx and smart build * disable packaging and create demo shell stages * use same name * Enable affected e2e for core and process * Enable affected libs check on all the e2e * fix e2e condition * Enable unit tests * Manage case deps not present * add name typo * add affected folder to check e2e * change an e2e test * remove branch typo * Update .travis.yml --- .gitignore | 1 + .travis.yml | 179 ++++--- angular.json | 4 +- e2e/core/error_component.e2e.ts | 2 +- lib/config/bundle-content-services-scss.js | 6 + lib/config/bundle-core-scss.js | 6 + lib/config/bundle-insights-scss.js | 6 + .../bundle-process-services-cloud-scss.js | 7 + lib/config/bundle-process-services-scss.js | 6 + nx.json | 39 ++ package-lock.json | 459 +++++++++++++----- package.json | 5 +- scripts/affected-folder.sh | 49 ++ scripts/affected-libs.sh | 113 +++++ scripts/build-content-services.sh | 24 + scripts/build-core.sh | 24 + scripts/build-extensions.sh | 14 + scripts/build-insights.sh | 24 + scripts/build-process-services-cloud.sh | 24 + scripts/build-process-services.sh | 24 + scripts/smart-build.sh | 52 ++ 21 files changed, 864 insertions(+), 204 deletions(-) create mode 100644 lib/config/bundle-content-services-scss.js create mode 100644 lib/config/bundle-core-scss.js create mode 100644 lib/config/bundle-insights-scss.js create mode 100644 lib/config/bundle-process-services-cloud-scss.js create mode 100644 lib/config/bundle-process-services-scss.js create mode 100644 nx.json create mode 100755 scripts/affected-folder.sh create mode 100755 scripts/affected-libs.sh create mode 100755 scripts/build-content-services.sh create mode 100755 scripts/build-core.sh create mode 100755 scripts/build-extensions.sh create mode 100755 scripts/build-insights.sh create mode 100755 scripts/build-process-services-cloud.sh create mode 100755 scripts/build-process-services.sh create mode 100755 scripts/smart-build.sh diff --git a/.gitignore b/.gitignore index b8dafabd52..2981047220 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ bundles workspace.xml .idea/ dist/ +tmp e2e-output/ e2e/downloads/ ng2-components/coverage/ diff --git a/.travis.yml b/.travis.yml index d58778a262..f4a7c14e56 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,21 @@ node_js: # Use the explicit NodeJS LTS version 8.9.4 to avoid any automatic upgrade of the version. - '8.9.4' +branches: + only: + - master + - development + +stages: + - name: Warm Up Cache + if: branch = master + - name: Warm Up Cache & Lint & Build Dist + if: branch != master + - name: Unit test + - name: e2e Test + - name: Create Docker PR + - name: Deploy Docker PR + addons: chrome: stable before_script: @@ -25,42 +40,71 @@ branches: jobs: include: - stage: Warm Up Cache - script: if ([ "$TRAVIS_BRANCH" = "master" ]); then - (./scripts/npm-build-all.sh || exit 1;); - else - (./scripts/update-version.sh -gnu -alpha && ././scripts/npm-build-all.sh -sb --skip-lint || exit 1;); - fi - - stage: Lint script: - - ./scripts/lint.sh - - npm run spellcheck + - ./scripts/npm-build-all.sh || exit 1 + - stage: Warm Up Cache & Lint & Build Dist + script: + - ./scripts/update-version.sh -gnu -alpha || exit 1 + - npm install + - ./scripts/lint.sh || exit 1 + - npm run spellcheck || exit 1 + - rm -rf tmp && (./scripts/smart-build.sh || exit 1;); + - npm run build:dist || exit 1 - stage: Unit test - env: STAGE=core - script: (./scripts/npm-build-all.sh -si -sb -t "core" --skip-lint || exit 1;); + name: core + script: + AFFECTED_LIBS="$(./scripts/affected-libs.sh -b $TRAVIS_BRANCH)"; + if [[ $AFFECTED_LIBS =~ "core$" ]]; + then + ng test core --watch=false || exit 1; + fi - stage: Unit test - env: STAGE=extensions - script: (./scripts/npm-build-all.sh -si -sb -t "extensions" --skip-lint || exit 1;); + name: extensions + script: + AFFECTED_LIBS="$(./scripts/affected-libs.sh -b $TRAVIS_BRANCH)"; + if [[ $AFFECTED_LIBS =~ "extensions$" ]]; + then + ng test extensions --watch=false || exit 1; + fi - stage: Unit test - env: STAGE=process-services - script: (./scripts/npm-build-all.sh -si -sb -t "process-services" --skip-lint|| exit 1;); + name: process-services + script: + AFFECTED_LIBS="$(./scripts/affected-libs.sh -b $TRAVIS_BRANCH)"; + if [[ $AFFECTED_LIBS =~ "process-services$" ]]; + then + ng test process-services --watch=false || exit 1; + fi - stage: Unit test - env: STAGE=insights - script: (./scripts/npm-build-all.sh -si -sb -t "insights" --skip-lint || exit 1;); + name: insights + script: + AFFECTED_LIBS="$(./scripts/affected-libs.sh -b $TRAVIS_BRANCH)"; + if [[ $AFFECTED_LIBS =~ "insights$" ]]; + then + ng test insights --watch=false || exit 1; + fi - stage: Unit test - env: STAGE=content-services - script: (./scripts/npm-build-all.sh -si -sb -t "content-services" --skip-lint|| exit 1;); + name: content-services + script: + AFFECTED_LIBS="$(./scripts/affected-libs.sh -b $TRAVIS_BRANCH)"; + if [[ $AFFECTED_LIBS =~ "content-services$" ]]; + then + ng test content-services --watch=false || exit 1; + fi - stage: Unit test - env: STAGE=process-services-cloud - script: (./scripts/npm-build-all.sh -si -sb -t "process-services-cloud" --skip-lint|| exit 1;); + name: process-services-cloud + script: + AFFECTED_LIBS="$(./scripts/affected-libs.sh -b $TRAVIS_BRANCH)"; + if [[ $AFFECTED_LIBS =~ "process-services-cloud$" ]]; + then + ng test process-services-cloud --watch=false || exit 1; + fi - stage: Unit test - env: STAGE=demo-shell + name: demo-shell script: if ([ "$TRAVIS_BRANCH" = "master" ]); then (./scripts/start.sh -t -ss || exit 1;); else (./scripts/start.sh -dev -t -ss -vjsapi alpha || exit 1;); fi - - stage: Packaging test - script: (npm run build-lib || exit 1;) && node ./scripts/upload-build-lib-in-cs.js -u "$E2E_USERNAME" -p "$E2E_PASSWORD" --host "$E2E_HOST" -f $TRAVIS_BUILD_NUMBER - stage: Update children projects dependency #Update generator-ng2-alfresco-app if: tag =~ .*beta.* script: ./scripts/update-project.sh -gnu -t $GITHUB_TOKEN -n generator-ng2-alfresco-app @@ -76,59 +120,56 @@ jobs: - stage: Update children projects dependency # Test Update alfresco-modeler-app if: tag =~ .*beta.* script: ./scripts/update-project.sh -gnu -t $GITHUB_TOKEN -n alfresco-modeler-app - - stage: Create Shell dist - script: rm -rf ./node_modules/@alfresco; node ./scripts/download-build-lib-in-cs.js -u "$E2E_USERNAME" -p "$E2E_PASSWORD" --host "$E2E_HOST" -f $TRAVIS_BUILD_NUMBER || exit 1; npm run build:dist || exit 1; node ./scripts/upload-build-in-cs.js -u "$E2E_USERNAME" -p "$E2E_PASSWORD" --host "$E2E_HOST" -f $TRAVIS_BUILD_NUMBER || exit 1 - stage: e2e Test # Test core - env: STAGE=core - script: node ./scripts/download-build-in-cs.js --username "$E2E_USERNAME" --password "$E2E_PASSWORD" --host "$E2E_HOST" --folder $TRAVIS_BUILD_NUMBER; ./scripts/test-e2e-lib.sh -host localhost:4200 --host_sso "$E2E_HOST_SSO" -proxy "$E2E_HOST" -u "$E2E_USERNAME" -p "$E2E_PASSWORD" -e $E2E_EMAIL -b -save --folder core --skip-lint --use-dist --timeout 7000 + name: core + script: + AFFECTED_E2E="$(./scripts/affected-folder.sh -b $TRAVIS_BRANCH -f "e2e")"; + AFFECTED_LIBS="$(./scripts/affected-libs.sh -b $TRAVIS_BRANCH)"; + if [[ $AFFECTED_LIBS =~ "core$" || $AFFECTED_E2E = "e2e" ]]; + then + (./scripts/test-e2e-lib.sh -host localhost:4200 --host_sso "$E2E_HOST_SSO" -proxy "$E2E_HOST" -u "$E2E_USERNAME" -p "$E2E_PASSWORD" -e $E2E_EMAIL -b -save --folder core --skip-lint --use-dist --timeout 7000 || exit 1;); + fi - stage: e2e Test # Test process-services - env: STAGE=process-services - script: node ./scripts/download-build-in-cs.js --username "$E2E_USERNAME" --password "$E2E_PASSWORD" --host "$E2E_HOST" --folder $TRAVIS_BUILD_NUMBER; ./scripts/test-e2e-lib.sh -host localhost:4200 -proxy "$E2E_HOST" -u "$E2E_USERNAME" -p "$E2E_PASSWORD" -e $E2E_EMAIL -b -save --folder process-services --skip-lint --use-dist --timeout 7000 + name: process-services + script: + AFFECTED_E2E="$(./scripts/affected-folder.sh -b $TRAVIS_BRANCH -f "e2e")"; + AFFECTED_LIBS="$(./scripts/affected-libs.sh -b $TRAVIS_BRANCH)"; + if [[ $AFFECTED_LIBS =~ "process-services$" || $AFFECTED_E2E = "e2e" ]]; + then + (./scripts/test-e2e-lib.sh -host localhost:4200 -proxy "$E2E_HOST" -u "$E2E_USERNAME" -p "$E2E_PASSWORD" -e $E2E_EMAIL -b -save --folder process-services --skip-lint --use-dist --timeout 7000 || exit 1;); + fi - stage: e2e Test # Test content-services - env: STAGE=content-services - script: node ./scripts/download-build-in-cs.js --username "$E2E_USERNAME" --password "$E2E_PASSWORD" --host "$E2E_HOST" --folder $TRAVIS_BUILD_NUMBER; ./scripts/test-e2e-lib.sh -host localhost:4200 -proxy "$E2E_HOST" -u "$E2E_USERNAME" -p "$E2E_PASSWORD" -e $E2E_EMAIL -b -save --folder content-services --skip-lint --use-dist --timeout 7000 - - stage: e2e Test # Test process-services - env: STAGE=process-services-cloud - script: node ./scripts/download-build-in-cs.js --username "$E2E_USERNAME" --password "$E2E_PASSWORD" --host "$E2E_HOST" --folder $TRAVIS_BUILD_NUMBER; ./scripts/test-e2e-lib.sh -host localhost:4200 -proxy "$E2E_HOST" -u "$E2E_USERNAME" -p "$E2E_PASSWORD" -e $E2E_EMAIL -b -save --folder process-services-cloud --skip-lint --use-dist --timeout 7000 + name: content-services + script: + AFFECTED_E2E="$(./scripts/affected-folder.sh -b $TRAVIS_BRANCH -f "e2e")"; + AFFECTED_LIBS="$(./scripts/affected-libs.sh -b $TRAVIS_BRANCH)"; + if [[ $AFFECTED_LIBS =~ "content-services$" || $AFFECTED_E2E = "e2e" ]]; + then + (./scripts/test-e2e-lib.sh -host localhost:4200 -proxy "$E2E_HOST" -u "$E2E_USERNAME" -p "$E2E_PASSWORD" -e $E2E_EMAIL -b -save --folder content-services --skip-lint --use-dist --timeout 7000 || exit 1;); + fi + - stage: e2e Test # Test process-services-cloud + name: process-services-cloud + script: + AFFECTED_E2E="$(./scripts/affected-folder.sh -b $TRAVIS_BRANCH -f "e2e")"; + AFFECTED_LIBS="$(./scripts/affected-libs.sh -b $TRAVIS_BRANCH)"; + if [[ $AFFECTED_LIBS =~ "process-services-cloud$" || $AFFECTED_E2E = "e2e" ]]; + then + (./scripts/test-e2e-lib.sh -host localhost:4200 -proxy "$E2E_HOST" -u "$E2E_USERNAME" -p "$E2E_PASSWORD" -e $E2E_EMAIL -b -save --folder process-services-cloud --skip-lint --use-dist --timeout 7000 || exit 1;); + fi - stage: e2e Test # Test insights - env: STAGE=insights - script: node ./scripts/download-build-in-cs.js --username "$E2E_USERNAME" --password "$E2E_PASSWORD" --host "$E2E_HOST" --folder $TRAVIS_BUILD_NUMBER; ./scripts/test-e2e-lib.sh -host localhost:4200 -proxy "$E2E_HOST" -u "$E2E_USERNAME" -p "$E2E_PASSWORD" -e $E2E_EMAIL -b -save --folder insights --skip-lint --use-dist --timeout 7000 -# - stage: Test Update version 2.0.0 -# if: branch = development -# env: STAGE=test-BC -# script: ./scripts/test-e2e-bc.sh -b $TRAVIS_BUILD_NUMBER -# - stage: Test Update version 2.0.0 -# env: STAGE=test-export -# script: npm run test-export + name: insights + script: + AFFECTED_E2E="$(./scripts/affected-folder.sh -b $TRAVIS_BRANCH -f "e2e")"; + AFFECTED_LIBS="$(./scripts/affected-libs.sh -b $TRAVIS_BRANCH)"; + if [[ $AFFECTED_LIBS =~ "process-services-cloud$" || $AFFECTED_E2E = "e2e" ]]; + then + (./scripts/test-e2e-lib.sh -host localhost:4200 -proxy "$E2E_HOST" -u "$E2E_USERNAME" -p "$E2E_PASSWORD" -e $E2E_EMAIL -b -save --folder insights --skip-lint --use-dist --timeout 7000 || exit 1;); + fi - stage: Create Docker PR - script: node ./scripts/download-build-in-cs.js --username "$E2E_USERNAME" --password "$E2E_PASSWORD" --host "$E2E_HOST" --folder $TRAVIS_BUILD_NUMBER --base-href $TRAVIS_BUILD_NUMBER && (./scripts/pr-publish.sh -n $TRAVIS_BUILD_NUMBER -r $REPO_DOCKER -u $USERNAME_DOCKER -p $PASSWORD_DOCKER || exit 1) + script: (./scripts/pr-publish.sh -n $TRAVIS_BUILD_NUMBER -r $REPO_DOCKER -u $USERNAME_DOCKER -p $PASSWORD_DOCKER || exit 1) - stage: Deploy Docker PR script: node --no-deprecation ./scripts/pr-deploy.js -n $TRAVIS_BUILD_NUMBER -u $RANCHER_TOKEN -p $RANCHER_SECRET -s $REPO_RANCHER --image "docker:$REPO_DOCKER/adf/demo-shell:$TRAVIS_BUILD_NUMBER" --env $ENVIRONMENT_NAME -r $ENVIRONMENT_URL || exit 1 -# jobs: -# include: -# - stage: Publish alpha to NPM -# before_install: skip -# install: skip -# script: skip -# deploy: -# provider: script -# script: (./scripts/update-version.sh -v $(./scripts/next_version.sh)-$(git rev-parse HEAD) -vj $(npm view alfresco-js-api@alpha version) -gnu) && (./scripts/npm-publish.sh -r $NPM_REGISTRY_ADDRESS -token $NPM_REGISTRY_TOKEN -t alpha --sleep 20 || exit 1;); -# on: -# branch: development -# skip_cleanup: true -# - stage: Publish beta to NPM -# before_install: skip -# install: skip -# script: skip -# deploy: -# provider: script -# script: (./scripts/update-version.sh -v $TRAVIS_TAG -gnu) && (./scripts/npm-publish.sh -r $NPM_REGISTRY_ADDRESS -token $NPM_REGISTRY_TOKEN -t beta --sleep 20 || exit 1;); -# on: -# tags: true -# skip_cleanup: true - - # Send coverage data to codecov after_success: bash <(curl -s https://codecov.io/bash) -X gcov @@ -137,3 +178,5 @@ after_success: cache: directories: - node_modules + - demo-shell/dist + - tmp diff --git a/angular.json b/angular.json index 716eb1e94c..ec80c303ed 100644 --- a/angular.json +++ b/angular.json @@ -495,7 +495,7 @@ } } }, - "lib-e2e": { + "lib-e2e-test": { "root": "demo-shell", "sourceRoot": "./demo-shell", "projectType": "application", @@ -517,7 +517,7 @@ "builder": "@angular-devkit/build-angular:protractor", "options": { "protractorConfig": "./protractor.conf.js", - "devServerTarget": "lib-e2e:serve" + "devServerTarget": "lib-e2e-test:serve" } }, "lint": { diff --git a/e2e/core/error_component.e2e.ts b/e2e/core/error_component.e2e.ts index dae3982eca..3a1b2745e4 100644 --- a/e2e/core/error_component.e2e.ts +++ b/e2e/core/error_component.e2e.ts @@ -44,7 +44,7 @@ describe('Error Component', () => { }); - it('[C277302] Should display the error 403 when access to unauthorized page', () => { + it('[C277302] Should display the error 403 when access to unauthorized page - My Change', () => { browser.get(TestConfig.adf.url + '/error/403'); expect(errorPage.getErrorCode()).toBe('403'); expect(errorPage.getErrorTitle()).toBe('You don\'t have permission to access this server.'); diff --git a/lib/config/bundle-content-services-scss.js b/lib/config/bundle-content-services-scss.js new file mode 100644 index 0000000000..8e94df7586 --- /dev/null +++ b/lib/config/bundle-content-services-scss.js @@ -0,0 +1,6 @@ +var Bundler = require('scss-bundle').Bundler; +var writeFileSync = require('fs-extra').writeFileSync; + +new Bundler().Bundle('./lib/content-services/styles/_index.scss', '**/*.scss').then(result => { + writeFileSync('./lib/dist/content-services/_theming.scss', result.bundledContent); +}); diff --git a/lib/config/bundle-core-scss.js b/lib/config/bundle-core-scss.js new file mode 100644 index 0000000000..7a07377fe9 --- /dev/null +++ b/lib/config/bundle-core-scss.js @@ -0,0 +1,6 @@ +var Bundler = require('scss-bundle').Bundler; +var writeFileSync = require('fs-extra').writeFileSync; + +new Bundler().Bundle('./lib/core/styles/_index.scss', '**/*.scss').then(result => { + writeFileSync('./lib/dist/core/_theming.scss', result.bundledContent); +}); diff --git a/lib/config/bundle-insights-scss.js b/lib/config/bundle-insights-scss.js new file mode 100644 index 0000000000..637381f79d --- /dev/null +++ b/lib/config/bundle-insights-scss.js @@ -0,0 +1,6 @@ +var Bundler = require('scss-bundle').Bundler; +var writeFileSync = require('fs-extra').writeFileSync; + +new Bundler().Bundle('./lib/insights/styles/_index.scss', '**/*.scss').then(result => { + writeFileSync('./lib/dist/insights/_theming.scss', result.bundledContent); +}); diff --git a/lib/config/bundle-process-services-cloud-scss.js b/lib/config/bundle-process-services-cloud-scss.js new file mode 100644 index 0000000000..043329a60a --- /dev/null +++ b/lib/config/bundle-process-services-cloud-scss.js @@ -0,0 +1,7 @@ +var Bundler = require('scss-bundle').Bundler; +var writeFileSync = require('fs-extra').writeFileSync; +var mkdirpSync = require('fs-extra').mkdirpSync; + +new Bundler().Bundle('./lib/process-services-cloud/src/lib/styles/_index.scss', '**/*.scss').then(result => { + writeFileSync('./lib/dist/process-services-cloud/_theming.scss', result.bundledContent); +}); diff --git a/lib/config/bundle-process-services-scss.js b/lib/config/bundle-process-services-scss.js new file mode 100644 index 0000000000..ac086bfc71 --- /dev/null +++ b/lib/config/bundle-process-services-scss.js @@ -0,0 +1,6 @@ +var Bundler = require('scss-bundle').Bundler; +var writeFileSync = require('fs-extra').writeFileSync; + +new Bundler().Bundle('./lib/process-services/styles/_index.scss', '**/*.scss').then(result => { + writeFileSync('./lib/dist/process-services/_theming.scss', result.bundledContent); +}); diff --git a/nx.json b/nx.json new file mode 100644 index 0000000000..c09678e78d --- /dev/null +++ b/nx.json @@ -0,0 +1,39 @@ +{ + "npmScope": "my-company", + "implicitDependencies": { + "angular.json": "*", + "package.json": "*", + "tsconfig.json": "*", + "tslint.json": "*", + "nx.json": "*" + }, + "projects": { + "dev": { + "tags": [] + }, + "dist": { + "tags": [] + }, + "core": { + "tags": [] + }, + "content-services": { + "tags": [] + }, + "process-services": { + "tags": [] + }, + "process-services-cloud": { + "tags": [] + }, + "insights": { + "tags": [] + }, + "lib-e2e-test": { + "tags": [] + }, + "extensions": { + "tags": [] + } + } +} diff --git a/package-lock.json b/package-lock.json index d57b5c81d5..08edeeb89f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,45 +1,45 @@ { "name": "alfresco-components", - "version": "2.7.0-858584bcf0db96433770ecea50d4aaff6252e911", + "version": "2.7.0-beta5", "lockfileVersion": 1, "requires": true, "dependencies": { "@alfresco/adf-content-services": { - "version": "2.7.0-858584bcf0db96433770ecea50d4aaff6252e911", - "resolved": "https://registry.npmjs.org/@alfresco/adf-content-services/-/adf-content-services-2.7.0-858584bcf0db96433770ecea50d4aaff6252e911.tgz", - "integrity": "sha512-plHtih0HcgCXEN1u/dxbZI3DORDphaiy1jfEvOoJj1nX8AxINcnPxmv2XVT0uEq20UiPnqHfAH8O0b0R2fVYVg==", + "version": "2.7.0-beta5", + "resolved": "https://registry.npmjs.org/@alfresco/adf-content-services/-/adf-content-services-2.7.0-beta5.tgz", + "integrity": "sha512-aD2IfsiS1vbFBSKpKheLHSYrFDMiGPSLXlLhocE7mt+YqKUB5AAb6TeWFDjYMq4/Xi3CTwHcrzK47zy1UZFZtA==", "requires": { "tslib": "1.9.3" } }, "@alfresco/adf-core": { - "version": "2.7.0-858584bcf0db96433770ecea50d4aaff6252e911", - "resolved": "https://registry.npmjs.org/@alfresco/adf-core/-/adf-core-2.7.0-858584bcf0db96433770ecea50d4aaff6252e911.tgz", - "integrity": "sha512-PL+HsQK6oifXjKf840wHq0pEfp69GimOGiAZ7EiqVKO2W7e5bFISZH7WPrSxQ5hIU4zPznYHiEgHN09vBgfmgA==", + "version": "2.7.0-beta5", + "resolved": "https://registry.npmjs.org/@alfresco/adf-core/-/adf-core-2.7.0-beta5.tgz", + "integrity": "sha512-WjReRby8OPipCrYMDSWRiEPlmiYXujjh7heK8buHYMnwfTeDC9MSa+VUEUmcnN6JQJ+AagqElHXJ2dzQSNnNVg==", "requires": { "tslib": "1.9.3" } }, "@alfresco/adf-insights": { - "version": "2.7.0-858584bcf0db96433770ecea50d4aaff6252e911", - "resolved": "https://registry.npmjs.org/@alfresco/adf-insights/-/adf-insights-2.7.0-858584bcf0db96433770ecea50d4aaff6252e911.tgz", - "integrity": "sha512-XyOz8QYr5xaTvhniUYgGh93B4Lu0j9xuL4hhn74361EEbMsY1swdqGMRfmv3esUOd7/+ium9s2N6Ya2pfwnobA==", + "version": "2.7.0-beta5", + "resolved": "https://registry.npmjs.org/@alfresco/adf-insights/-/adf-insights-2.7.0-beta5.tgz", + "integrity": "sha512-eyu1ZWYDigHXflqSy/ukY3z9/kE8I1QbTEbH8H1SdDrYuUf+PvTKQ9RMqlYwYhGsKeHDfe44j2tgM8Nq41r5cw==", "requires": { "tslib": "1.9.3" } }, "@alfresco/adf-process-services": { - "version": "2.7.0-858584bcf0db96433770ecea50d4aaff6252e911", - "resolved": "https://registry.npmjs.org/@alfresco/adf-process-services/-/adf-process-services-2.7.0-858584bcf0db96433770ecea50d4aaff6252e911.tgz", - "integrity": "sha512-A/5yQpY+scGIoZ3rOCJNAg4KfSd5vLHT7KyZxzntXg9OJoL8Kxi5sEdsHfHoKE/oJwQhVAhtO+GwX3XGWxdubg==", + "version": "2.7.0-beta5", + "resolved": "https://registry.npmjs.org/@alfresco/adf-process-services/-/adf-process-services-2.7.0-beta5.tgz", + "integrity": "sha512-JIcsFj6cpxAiKEDqDzV4WyYLnVBnPdybyGg+WsTgBuDItCfCg4V+23YN94qGj7p0+b1njF8xV8edabJJ+346Lg==", "requires": { "tslib": "1.9.3" } }, "@alfresco/adf-process-services-cloud": { - "version": "2.7.0-858584bcf0db96433770ecea50d4aaff6252e911", - "resolved": "https://registry.npmjs.org/@alfresco/adf-process-services-cloud/-/adf-process-services-cloud-2.7.0-858584bcf0db96433770ecea50d4aaff6252e911.tgz", - "integrity": "sha512-U/MhypA7atUgWGLDe/XPLxz4QITXjIGDcVAwxPKGBKqZcn3xzU3pdPRJ+twvZErNm6xJEqzWLrlTtWeuDwT3GQ==", + "version": "2.7.0-beta5", + "resolved": "https://registry.npmjs.org/@alfresco/adf-process-services-cloud/-/adf-process-services-cloud-2.7.0-beta5.tgz", + "integrity": "sha512-EFFeZVEXc5Wo0kBVLJUpicVSNo1Q2ExLOpXdj89fJAAq7aaDyDaMp/3Xk0rykiIqIQZh0eMCqXEifFA59ioKjA==", "requires": { "tslib": "1.9.3" } @@ -769,6 +769,64 @@ "tslib": "1.9.3" } }, + "@nrwl/nx": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@nrwl/nx/-/nx-6.3.1.tgz", + "integrity": "sha512-jp0nCIFNdBeeyyxQPg74uy9QGtYsTVrX64HIOJD9G2LkIt32uktghvCYU2eBfn/0xInCxwcF8SRC6PTtrod3MQ==" + }, + "@nrwl/schematics": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@nrwl/schematics/-/schematics-6.3.1.tgz", + "integrity": "sha512-Dy4D6RaD+4BZFMfRr+5QaE9J5AjZ7UlldIpsyWvh6VofR9JseVpbetsvcSUsTT3fpjmORIHGMQM7Kpp+gnHaeA==", + "requires": { + "@types/yargs": "11.1.2", + "app-root-path": "2.0.1", + "cosmiconfig": "4.0.0", + "fs-extra": "6.0.0", + "graphviz": "0.0.8", + "npm-run-all": "4.1.2", + "opn": "5.4.0", + "semver": "5.4.1", + "strip-json-comments": "2.0.1", + "tmp": "0.0.33", + "viz.js": "1.8.2", + "yargs": "11.1.0", + "yargs-parser": "10.0.0" + }, + "dependencies": { + "fs-extra": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.0.tgz", + "integrity": "sha512-lk2cUCo8QzbiEWEbt7Cw3m27WMiRG321xsssbcIpfMhpRjrlC08WBOVQqj1/nQYYNnPtyIhP1oqLO3QwT2tPCw==", + "requires": { + "graceful-fs": "4.1.11", + "jsonfile": "4.0.0", + "universalify": "0.1.2" + } + }, + "semver": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", + "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==" + }, + "tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "requires": { + "os-tmpdir": "1.0.2" + } + }, + "yargs-parser": { + "version": "10.0.0", + "resolved": "http://registry.npmjs.org/yargs-parser/-/yargs-parser-10.0.0.tgz", + "integrity": "sha512-+DHejWujTVYeMHLff8U96rLc4uE4Emncoftvn5AjhB1Jw1pWxLzgBUT/WYbPrHmy6YPEBTZQx5myHhVcuuu64g==", + "requires": { + "camelcase": "4.1.0" + } + } + } + }, "@phenomnomnominal/tsquery": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/@phenomnomnominal/tsquery/-/tsquery-2.1.1.tgz", @@ -943,6 +1001,11 @@ "integrity": "sha512-7NQmHra/JILCd1QqpSzl8+mJRc8ZHz3uDm8YV1Ks9IhK0epEiTw8aIErbvH9PI+6XbqhyIQy3462nEsn7UVzjQ==", "dev": true }, + "@types/yargs": { + "version": "11.1.2", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-11.1.2.tgz", + "integrity": "sha512-zG61PAp2OcoIBjRV44wftJj6AJgzJrOc32LCYOBqk9bdgcdzK5DCJHV9QZJ60+Fu+fOn79g8Ks3Gixm4CfkZ+w==" + }, "@webassemblyjs/ast": { "version": "1.7.8", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.7.8.tgz", @@ -1278,18 +1341,18 @@ } }, "alfresco-js-api": { - "version": "2.7.0-6d1e61de7e274a14eda3fcd30efe30396889b3b0", - "resolved": "https://registry.npmjs.org/alfresco-js-api/-/alfresco-js-api-2.7.0-6d1e61de7e274a14eda3fcd30efe30396889b3b0.tgz", - "integrity": "sha512-xGB2oQ0BpY/57g7hXeMNQz4LmOvqMwZlDBsJs5A9CjjfZNeNKzA8ICpsQ1fSf506zA8Ex8doPdV3xEJ7JfecZA==", + "version": "2.7.0-beta5", + "resolved": "https://registry.npmjs.org/alfresco-js-api/-/alfresco-js-api-2.7.0-beta5.tgz", + "integrity": "sha512-y/DkrfanNq/kR7nBSqA+dTu7YsVmCl/calvqZUWlmUPlVWMAqzmnteFt2FBZivlo6FYVAZbVWqAaSkvKqEQSFg==", "requires": { "event-emitter": "0.3.4", "superagent": "3.8.2" } }, "alfresco-js-api-node": { - "version": "2.7.0-6d1e61de7e274a14eda3fcd30efe30396889b3b0", - "resolved": "https://registry.npmjs.org/alfresco-js-api-node/-/alfresco-js-api-node-2.7.0-6d1e61de7e274a14eda3fcd30efe30396889b3b0.tgz", - "integrity": "sha512-XTzRpDdEMzAs/qrlrtFIa0KvBwe3gyqMbn1Ice6o+MiE6Q5BwvB+PAiUIbP6KiP49KeJMRgm9o02QrrZ5DRa3w==", + "version": "2.7.0-beta5", + "resolved": "https://registry.npmjs.org/alfresco-js-api-node/-/alfresco-js-api-node-2.7.0-beta5.tgz", + "integrity": "sha512-HzJiz3Hg7fDMxvqzHbLbpkiJlFKTmpjPjGJ6o7/pvTKyI657Ut/P2qOUGxkVwaXJt5iX1qIpyrXuSFDiP2N57A==", "requires": { "event-emitter": "0.3.4", "superagent": "3.8.2" @@ -1415,7 +1478,7 @@ }, "ansi-escapes": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.4.0.tgz", + "resolved": "http://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.4.0.tgz", "integrity": "sha1-06ioOzGapneTZisT52HHkRQiMG4=", "dev": true }, @@ -1452,7 +1515,6 @@ "version": "3.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, "requires": { "color-convert": "1.9.3" }, @@ -1461,7 +1523,6 @@ "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, "requires": { "color-name": "1.1.3" } @@ -1469,8 +1530,7 @@ "color-name": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" } } }, @@ -1584,7 +1644,6 @@ "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, "requires": { "sprintf-js": "1.0.3" } @@ -1613,6 +1672,11 @@ "integrity": "sha1-7/UuN1gknTO+QCuLuOVkuytdQDE=", "dev": true }, + "array-filter": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/array-filter/-/array-filter-0.0.1.tgz", + "integrity": "sha1-fajPLiZijtcygDWB/SH2fKzS7uw=" + }, "array-find-index": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", @@ -1625,6 +1689,16 @@ "integrity": "sha1-Qmu52oQJDBg42BLIFQryCoMx4pY=", "dev": true }, + "array-map": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/array-map/-/array-map-0.0.0.tgz", + "integrity": "sha1-iKK6tz0c97zVwbEYoAP2b2ZfpmI=" + }, + "array-reduce": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/array-reduce/-/array-reduce-0.0.0.tgz", + "integrity": "sha1-FziZ0//Rx9k4PkR5Ul2+J4yrXys=" + }, "array-slice": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/array-slice/-/array-slice-0.2.3.tgz", @@ -1706,7 +1780,7 @@ }, "util": { "version": "0.10.3", - "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", + "resolved": "http://registry.npmjs.org/util/-/util-0.10.3.tgz", "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", "dev": true, "requires": { @@ -2510,7 +2584,7 @@ }, "boom": { "version": "2.10.1", - "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz", + "resolved": "http://registry.npmjs.org/boom/-/boom-2.10.1.tgz", "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=", "dev": true, "requires": { @@ -2688,7 +2762,7 @@ }, "engine.io-client": { "version": "3.2.1", - "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-3.2.1.tgz", + "resolved": "http://registry.npmjs.org/engine.io-client/-/engine.io-client-3.2.1.tgz", "integrity": "sha512-y5AbkytWeM4jQr7m/koQLc5AxpRKC1hEVUb/s1FUAWEJq5AzJJ4NLvzuKPuxtDi5Mq755WuDvZ6Iv2rXj4PTzw==", "dev": true, "requires": { @@ -2887,7 +2961,7 @@ }, "socket.io-parser": { "version": "3.2.0", - "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.2.0.tgz", + "resolved": "http://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.2.0.tgz", "integrity": "sha512-FYiBx7rc/KORMJlgsXysflWx/RIvtqZbyGLlHZvjfmPTPeuD/I8MaW7cfFrj5tRltICJdgwflhfZ3NVVbVLFQA==", "dev": true, "requires": { @@ -3197,8 +3271,7 @@ "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" }, "builtin-status-codes": { "version": "3.0.0", @@ -3294,7 +3367,7 @@ }, "cacache": { "version": "10.0.4", - "resolved": "https://registry.npmjs.org/cacache/-/cacache-10.0.4.tgz", + "resolved": "http://registry.npmjs.org/cacache/-/cacache-10.0.4.tgz", "integrity": "sha512-Dph0MzuH+rTQzGPNT9fAnrPmMmjKfST6trxJeK7NQuHRaVw24VzPRWTmg9MpcwOVQZO0E1FBICUlFeNaKPIfHA==", "dev": true, "requires": { @@ -3453,7 +3526,6 @@ "version": "2.4.1", "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", @@ -4191,7 +4263,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-4.0.0.tgz", "integrity": "sha512-6e5vDdrXZD+t5v0L8CrurPeybg4Fmf+FCSYxXKYVAqLUtyCSbuyqE059d0kDthTNRzKVjL7QMgNpEUlsoYH3iQ==", - "dev": true, "requires": { "is-directory": "0.3.1", "js-yaml": "3.12.0", @@ -4203,7 +4274,6 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", - "dev": true, "requires": { "error-ex": "1.3.2", "json-parse-better-errors": "1.0.2" @@ -4300,7 +4370,7 @@ }, "cryptiles": { "version": "2.0.5", - "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz", + "resolved": "http://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz", "integrity": "sha1-O9/s3GCBR8HGcgL6KR59ylnqo7g=", "dev": true, "optional": true, @@ -4572,7 +4642,7 @@ }, "css-selector-tokenizer": { "version": "0.7.0", - "resolved": "https://registry.npmjs.org/css-selector-tokenizer/-/css-selector-tokenizer-0.7.0.tgz", + "resolved": "http://registry.npmjs.org/css-selector-tokenizer/-/css-selector-tokenizer-0.7.0.tgz", "integrity": "sha1-5piEdK6MlTR3v15+/s/OzNnPTIY=", "requires": { "cssesc": "0.1.0", @@ -4633,7 +4703,7 @@ }, "d": { "version": "0.1.1", - "resolved": "https://registry.npmjs.org/d/-/d-0.1.1.tgz", + "resolved": "http://registry.npmjs.org/d/-/d-0.1.1.tgz", "integrity": "sha1-2hhMU10Y2O57oqoim5FACfrhEwk=", "requires": { "es5-ext": "0.10.46" @@ -4788,7 +4858,6 @@ "version": "1.1.3", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", - "dev": true, "requires": { "object-keys": "1.0.12" } @@ -5105,8 +5174,7 @@ "duplexer": { "version": "0.1.1", "resolved": "http://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", - "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=", - "dev": true + "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=" }, "duplexer2": { "version": "0.0.2", @@ -5281,7 +5349,7 @@ }, "engine.io": { "version": "3.1.5", - "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-3.1.5.tgz", + "resolved": "http://registry.npmjs.org/engine.io/-/engine.io-3.1.5.tgz", "integrity": "sha512-D06ivJkYxyRrcEe0bTpNnBQNgP9d3xog+qZlLbui8EsMr/DouQpf5o9FzJnWYHEYE0YsFHllUv2R1dkgYZXHcA==", "dev": true, "requires": { @@ -5313,7 +5381,7 @@ }, "engine.io-client": { "version": "3.1.6", - "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-3.1.6.tgz", + "resolved": "http://registry.npmjs.org/engine.io-client/-/engine.io-client-3.1.6.tgz", "integrity": "sha512-hnuHsFluXnsKOndS4Hv6SvUrgdYx1pk2NqfaDMW+GWdgfU3+/V25Cj7I8a0x92idSpa5PIhJRKxPvp9mnoLsfg==", "dev": true, "requires": { @@ -5396,7 +5464,6 @@ "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, "requires": { "is-arrayish": "0.2.1" } @@ -5405,7 +5472,6 @@ "version": "1.12.0", "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.12.0.tgz", "integrity": "sha512-C8Fx/0jFmV5IPoMOFPA9P9G5NtqW+4cOPit3MIuvR2t7Ag2K15EJTpxnHAYTzL+aYQJIESYeXZmDBfOBE1HcpA==", - "dev": true, "requires": { "es-to-primitive": "1.2.0", "function-bind": "1.1.1", @@ -5418,7 +5484,6 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz", "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==", - "dev": true, "requires": { "is-callable": "1.1.4", "is-date-object": "1.0.1", @@ -5447,7 +5512,7 @@ "dependencies": { "d": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", + "resolved": "http://registry.npmjs.org/d/-/d-1.0.0.tgz", "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", "requires": { "es5-ext": "0.10.46" @@ -5481,7 +5546,7 @@ "dependencies": { "d": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", + "resolved": "http://registry.npmjs.org/d/-/d-1.0.0.tgz", "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", "requires": { "es5-ext": "0.10.46" @@ -5508,8 +5573,7 @@ "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "escodegen": { "version": "1.8.1", @@ -5566,7 +5630,7 @@ "dependencies": { "d": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", + "resolved": "http://registry.npmjs.org/d/-/d-1.0.0.tgz", "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", "dev": true, "requires": { @@ -5653,6 +5717,21 @@ "es5-ext": "0.10.46" } }, + "event-stream": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-3.3.6.tgz", + "integrity": "sha512-dGXNg4F/FgVzlApjzItL+7naHutA3fDqbV/zAZqDDlXTjiMnQmZKu+prImWKszeBM5UQeGvAl3u1wBiKeDh61g==", + "requires": { + "duplexer": "0.1.1", + "flatmap-stream": "0.1.1", + "from": "0.1.7", + "map-stream": "0.0.7", + "pause-stream": "0.0.11", + "split": "1.0.1", + "stream-combiner": "0.2.2", + "through": "2.3.8" + } + }, "eventemitter3": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-3.1.0.tgz", @@ -6251,6 +6330,11 @@ "locate-path": "2.0.0" } }, + "flatmap-stream": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/flatmap-stream/-/flatmap-stream-0.1.1.tgz", + "integrity": "sha512-lAq4tLbm3sidmdCN8G3ExaxH7cUCtP5mgDvrYowsx84dcYkJJ4I28N7gkxA6+YlSXzaGLJYIDEi9WGfXzMiXdw==" + }, "flush-write-stream": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.0.3.tgz", @@ -6360,6 +6444,11 @@ "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", "dev": true }, + "from": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", + "integrity": "sha1-g8YK/Fi5xWmXAH7Rp2izqzA6RP4=" + }, "from2": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", @@ -6378,7 +6467,7 @@ }, "fs-access": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/fs-access/-/fs-access-1.0.1.tgz", + "resolved": "http://registry.npmjs.org/fs-access/-/fs-access-1.0.1.tgz", "integrity": "sha1-1qh/JiJxzv6+wwxVNAf7mV2od3o=", "dev": true, "requires": { @@ -7011,8 +7100,7 @@ "function-bind": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" }, "gauge": { "version": "2.7.4", @@ -7377,8 +7465,7 @@ "graceful-fs": { "version": "4.1.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" }, "graceful-readlink": { "version": "1.0.1", @@ -7386,6 +7473,14 @@ "integrity": "sha1-TK+tdrxi8C+gObL5Tpo906ORpyU=", "dev": true }, + "graphviz": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/graphviz/-/graphviz-0.0.8.tgz", + "integrity": "sha1-5ZnkBzPvgOFlO/6JpfAx7PKqSqo=", + "requires": { + "temp": "0.4.0" + } + }, "gray-matter": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-2.1.1.tgz", @@ -7516,7 +7611,7 @@ }, "handle-thing": { "version": "1.2.5", - "resolved": "https://registry.npmjs.org/handle-thing/-/handle-thing-1.2.5.tgz", + "resolved": "http://registry.npmjs.org/handle-thing/-/handle-thing-1.2.5.tgz", "integrity": "sha1-/Xqtcmvxpf0W38KbL3pmAdJxOcQ=", "dev": true }, @@ -7595,7 +7690,6 @@ "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, "requires": { "function-bind": "1.1.1" } @@ -7643,8 +7737,7 @@ "has-flag": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" }, "has-gulplog": { "version": "0.1.0", @@ -7658,8 +7751,7 @@ "has-symbols": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", - "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", - "dev": true + "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=" }, "has-unicode": { "version": "2.0.1", @@ -7721,7 +7813,7 @@ }, "hawk": { "version": "3.1.3", - "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz", + "resolved": "http://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz", "integrity": "sha1-B4REvXwWQLD+VA0sm3PVlnjo4cQ=", "dev": true, "optional": true, @@ -7768,7 +7860,7 @@ }, "hoek": { "version": "2.16.3", - "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz", + "resolved": "http://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz", "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=", "dev": true }, @@ -7794,8 +7886,7 @@ "hosted-git-info": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz", - "integrity": "sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==", - "dev": true + "integrity": "sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==" }, "hpack.js": { "version": "2.1.6", @@ -8417,8 +8508,7 @@ "is-arrayish": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", - "dev": true + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=" }, "is-binary-path": { "version": "1.0.1", @@ -8439,7 +8529,6 @@ "version": "1.0.0", "resolved": "http://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", - "dev": true, "requires": { "builtin-modules": "1.1.1" } @@ -8447,8 +8536,7 @@ "is-callable": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", - "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==", - "dev": true + "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==" }, "is-ci": { "version": "1.2.1", @@ -8482,8 +8570,7 @@ "is-date-object": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", - "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", - "dev": true + "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=" }, "is-decimal": { "version": "1.0.2", @@ -8513,8 +8600,7 @@ "is-directory": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz", - "integrity": "sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=", - "dev": true + "integrity": "sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE=" }, "is-dotfile": { "version": "1.0.3", @@ -8723,7 +8809,6 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", - "dev": true, "requires": { "has": "1.0.3" } @@ -8743,7 +8828,6 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz", "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", - "dev": true, "requires": { "has-symbols": "1.0.0" } @@ -8781,8 +8865,7 @@ "is-wsl": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz", - "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=", - "dev": true + "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=" }, "isarray": { "version": "1.0.0", @@ -8923,7 +9006,7 @@ }, "fast-deep-equal": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", + "resolved": "http://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=", "dev": true }, @@ -9132,7 +9215,6 @@ "version": "3.12.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz", "integrity": "sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A==", - "dev": true, "requires": { "argparse": "1.0.10", "esprima": "4.0.1" @@ -9141,8 +9223,7 @@ "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" } } }, @@ -9160,8 +9241,7 @@ "json-parse-better-errors": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", - "dev": true + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==" }, "json-parser": { "version": "1.1.5", @@ -9201,7 +9281,7 @@ }, "fast-deep-equal": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", + "resolved": "http://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=", "dev": true }, @@ -9239,11 +9319,15 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "dev": true, "requires": { "graceful-fs": "4.1.11" } }, + "jsonify": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", + "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=" + }, "jsonpointer": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.0.1.tgz", @@ -9278,7 +9362,7 @@ "dependencies": { "core-js": { "version": "2.3.0", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.3.0.tgz", + "resolved": "http://registry.npmjs.org/core-js/-/core-js-2.3.0.tgz", "integrity": "sha1-+rg/uwstjchfpjbEudNMdUIMbWU=", "dev": true }, @@ -9427,7 +9511,7 @@ }, "karma-jasmine-html-reporter": { "version": "0.2.2", - "resolved": "https://registry.npmjs.org/karma-jasmine-html-reporter/-/karma-jasmine-html-reporter-0.2.2.tgz", + "resolved": "http://registry.npmjs.org/karma-jasmine-html-reporter/-/karma-jasmine-html-reporter-0.2.2.tgz", "integrity": "sha1-SKjl7xiAdhfuK14zwRlMNbQ5Ukw=", "dev": true, "requires": { @@ -9503,7 +9587,7 @@ }, "through2": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.1.tgz", + "resolved": "http://registry.npmjs.org/through2/-/through2-2.0.1.tgz", "integrity": "sha1-OE51MU1J8y3hLuu4E2uOtrXVnak=", "dev": true, "requires": { @@ -10301,7 +10385,7 @@ }, "har-validator": { "version": "2.0.6", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-2.0.6.tgz", + "resolved": "http://registry.npmjs.org/har-validator/-/har-validator-2.0.6.tgz", "integrity": "sha1-zcvAgYgmWtEZtqWnyKtw7s+10n0=", "dev": true, "optional": true, @@ -10608,6 +10692,11 @@ "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", "dev": true }, + "map-stream": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.0.7.tgz", + "integrity": "sha1-ih8HiW2CsQkmvTdEokIACfiJdKg=" + }, "map-visit": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", @@ -10853,6 +10942,11 @@ "readable-stream": "2.3.6" } }, + "memorystream": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", + "integrity": "sha1-htcJCzDORV1j+64S3aUaR93K+bI=" + }, "meow": { "version": "3.7.0", "resolved": "http://registry.npmjs.org/meow/-/meow-3.7.0.tgz", @@ -10993,7 +11087,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { "brace-expansion": "1.1.11" } @@ -11287,7 +11380,7 @@ }, "next-tick": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", + "resolved": "http://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=" }, "ng-packagr": { @@ -11682,7 +11775,7 @@ }, "fast-deep-equal": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", + "resolved": "http://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=", "dev": true }, @@ -11802,7 +11895,7 @@ }, "socks": { "version": "1.1.9", - "resolved": "https://registry.npmjs.org/socks/-/socks-1.1.9.tgz", + "resolved": "http://registry.npmjs.org/socks/-/socks-1.1.9.tgz", "integrity": "sha1-Yo1+TQSRJDVEWsC25Fk3bLPm1pE=", "dev": true, "optional": true, @@ -11882,7 +11975,6 @@ "version": "2.4.0", "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", - "dev": true, "requires": { "hosted-git-info": "2.7.1", "is-builtin-module": "1.0.0", @@ -11937,6 +12029,59 @@ "ssri": "5.3.0" } }, + "npm-run-all": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/npm-run-all/-/npm-run-all-4.1.2.tgz", + "integrity": "sha512-Z2aRlajMK4SQ8u19ZA75NZZu7wupfCNQWdYosIi8S6FgBdGf/8Y6Hgyjdc8zU2cYmIRVCx1nM80tJPkdEd+UYg==", + "requires": { + "ansi-styles": "3.2.1", + "chalk": "2.4.1", + "cross-spawn": "5.1.0", + "memorystream": "0.3.1", + "minimatch": "3.0.4", + "ps-tree": "1.1.0", + "read-pkg": "3.0.0", + "shell-quote": "1.6.1", + "string.prototype.padend": "3.0.0" + }, + "dependencies": { + "load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "requires": { + "graceful-fs": "4.1.11", + "parse-json": "4.0.0", + "pify": "3.0.0", + "strip-bom": "3.0.0" + } + }, + "parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "requires": { + "error-ex": "1.3.2", + "json-parse-better-errors": "1.0.2" + } + }, + "read-pkg": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz", + "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", + "requires": { + "load-json-file": "4.0.0", + "normalize-package-data": "2.4.0", + "path-type": "3.0.0" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=" + } + } + }, "npm-run-path": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", @@ -12035,8 +12180,7 @@ "object-keys": { "version": "1.0.12", "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.12.tgz", - "integrity": "sha512-FTMyFUm2wBcGHnH2eXmz7tC6IwlqQZ6mVZ+6dm6vZ4IQIHjs6FdNsQBuKGPuUUUY6NfJw2PshC08Tn6LzLDOag==", - "dev": true + "integrity": "sha512-FTMyFUm2wBcGHnH2eXmz7tC6IwlqQZ6mVZ+6dm6vZ4IQIHjs6FdNsQBuKGPuUUUY6NfJw2PshC08Tn6LzLDOag==" }, "object-path": { "version": "0.9.2", @@ -12220,7 +12364,6 @@ "version": "5.4.0", "resolved": "https://registry.npmjs.org/opn/-/opn-5.4.0.tgz", "integrity": "sha512-YF9MNdVy/0qvJvDtunAOzFw9iasOQHpVthTCvGzxt61Il64AYSGdK+rYwld7NAfk9qJ7dt+hymBNSc9LNYS+Sw==", - "dev": true, "requires": { "is-wsl": "1.1.0" } @@ -12274,7 +12417,7 @@ }, "os-homedir": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "resolved": "http://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", "dev": true }, @@ -12290,9 +12433,8 @@ }, "os-tmpdir": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "dev": true + "resolved": "http://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=" }, "osenv": { "version": "0.1.5", @@ -12553,7 +12695,7 @@ }, "path-is-absolute": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "resolved": "http://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true }, @@ -12603,11 +12745,18 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", - "dev": true, "requires": { "pify": "3.0.0" } }, + "pause-stream": { + "version": "0.0.11", + "resolved": "http://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", + "integrity": "sha1-/lo0sMvOErWqaitAPuLnO2AvFEU=", + "requires": { + "through": "2.3.8" + } + }, "pbkdf2": { "version": "3.0.17", "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.17.tgz", @@ -12639,8 +12788,7 @@ "pify": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", - "dev": true + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=" }, "pinkie": { "version": "2.0.4", @@ -13111,7 +13259,7 @@ "dependencies": { "fs-extra": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-1.0.0.tgz", + "resolved": "http://registry.npmjs.org/fs-extra/-/fs-extra-1.0.0.tgz", "integrity": "sha1-zTzl9+fLYUWIP8rjGR6Yd/hYeVA=", "dev": true, "requires": { @@ -13202,6 +13350,14 @@ "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=", "dev": true }, + "ps-tree": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/ps-tree/-/ps-tree-1.1.0.tgz", + "integrity": "sha1-tCGyQUDWID8e08dplrRCewjowBQ=", + "requires": { + "event-stream": "3.3.6" + } + }, "pseudomap": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", @@ -13597,7 +13753,7 @@ }, "regjsgen": { "version": "0.2.0", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz", + "resolved": "http://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz", "integrity": "sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc=" }, "regjsparser": { @@ -13662,7 +13818,7 @@ }, "through2": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.1.tgz", + "resolved": "http://registry.npmjs.org/through2/-/through2-2.0.1.tgz", "integrity": "sha1-OE51MU1J8y3hLuu4E2uOtrXVnak=", "dev": true, "requires": { @@ -13878,8 +14034,7 @@ "require-from-string": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==" }, "require-main-filename": { "version": "1.0.1", @@ -14253,7 +14408,7 @@ }, "safe-regex": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "resolved": "http://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", "dev": true, "requires": { @@ -14809,6 +14964,17 @@ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" }, + "shell-quote": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.6.1.tgz", + "integrity": "sha1-9HgZSczkAmlxJ0MOo7PFR29IF2c=", + "requires": { + "array-filter": "0.0.1", + "array-map": "0.0.0", + "array-reduce": "0.0.0", + "jsonify": "0.0.0" + } + }, "shelljs": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.2.tgz", @@ -14993,7 +15159,7 @@ }, "sntp": { "version": "1.0.9", - "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", + "resolved": "http://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=", "dev": true, "optional": true, @@ -15077,7 +15243,7 @@ }, "socket.io-parser": { "version": "3.1.3", - "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.1.3.tgz", + "resolved": "http://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.1.3.tgz", "integrity": "sha512-g0a2HPqLguqAczs3dMECuA1RgoGFPyvDqcbaDEdCWY9g59kdUAz3YRmaJBNKXflrHNwB7Q12Gkf/0CZXfdHR7g==", "dev": true, "requires": { @@ -15256,7 +15422,6 @@ "version": "3.0.2", "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.0.2.tgz", "integrity": "sha512-q9hedtzyXHr5S0A1vEPoK/7l8NpfkFYTq6iCY+Pno2ZbdZR6WexZFtqeVGkGxW3TEJMN914Z55EnAGMmenlIQQ==", - "dev": true, "requires": { "spdx-expression-parse": "3.0.0", "spdx-license-ids": "3.0.1" @@ -15265,14 +15430,12 @@ "spdx-exceptions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", - "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==", - "dev": true + "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==" }, "spdx-expression-parse": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", - "dev": true, "requires": { "spdx-exceptions": "2.2.0", "spdx-license-ids": "3.0.1" @@ -15281,8 +15444,7 @@ "spdx-license-ids": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.1.tgz", - "integrity": "sha512-TfOfPcYGBB5sDuPn3deByxPhmfegAhpDYKSOXZQN81Oyrrif8ZCodOLzK3AesELnCx03kikhyDwh0pfvvQvF8w==", - "dev": true + "integrity": "sha512-TfOfPcYGBB5sDuPn3deByxPhmfegAhpDYKSOXZQN81Oyrrif8ZCodOLzK3AesELnCx03kikhyDwh0pfvvQvF8w==" }, "spdy": { "version": "3.4.7", @@ -15347,6 +15509,14 @@ } } }, + "split": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", + "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==", + "requires": { + "through": "2.3.8" + } + }, "split-string": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", @@ -15454,6 +15624,15 @@ "readable-stream": "2.3.6" } }, + "stream-combiner": { + "version": "0.2.2", + "resolved": "http://registry.npmjs.org/stream-combiner/-/stream-combiner-0.2.2.tgz", + "integrity": "sha1-rsjLrBd7Vrb0+kec7YwZEs7lKFg=", + "requires": { + "duplexer": "0.1.1", + "through": "2.3.8" + } + }, "stream-each": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/stream-each/-/stream-each-1.2.3.tgz", @@ -15514,6 +15693,16 @@ "strip-ansi": "4.0.0" } }, + "string.prototype.padend": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/string.prototype.padend/-/string.prototype.padend-3.0.0.tgz", + "integrity": "sha1-86rvfBcZ8XDF6rHDK/eA2W4h8vA=", + "requires": { + "define-properties": "1.1.3", + "es-abstract": "1.12.0", + "function-bind": "1.1.1" + } + }, "string_decoder": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", @@ -15566,7 +15755,7 @@ }, "strip-eof": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "resolved": "http://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=" }, "strip-indent": { @@ -15581,8 +15770,7 @@ "strip-json-comments": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" }, "style-loader": { "version": "0.21.0", @@ -15679,7 +15867,6 @@ "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, "requires": { "has-flag": "3.0.0" } @@ -15877,7 +16064,7 @@ }, "tar": { "version": "2.2.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz", + "resolved": "http://registry.npmjs.org/tar/-/tar-2.2.1.tgz", "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=", "dev": true, "requires": { @@ -15901,6 +16088,11 @@ "xtend": "4.0.1" } }, + "temp": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/temp/-/temp-0.4.0.tgz", + "integrity": "sha1-ZxrWPVe+D+nXKUZks/xABjZnimA=" + }, "term-size": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/term-size/-/term-size-1.2.0.tgz", @@ -16711,8 +16903,7 @@ "universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" }, "unpipe": { "version": "1.0.0", @@ -16985,7 +17176,6 @@ "version": "3.0.4", "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dev": true, "requires": { "spdx-correct": "3.0.2", "spdx-expression-parse": "3.0.0" @@ -17071,6 +17261,11 @@ } } }, + "viz.js": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/viz.js/-/viz.js-1.8.2.tgz", + "integrity": "sha512-W+1+N/hdzLpQZEcvz79n2IgUE9pfx6JLdHh3Kh8RGvLL8P1LdJVQmi2OsDcLdY4QVID4OUy+FPelyerX0nJxIQ==" + }, "vm-browserify": { "version": "0.0.4", "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz", diff --git a/package.json b/package.json index 40c85cea5e..cef8fb0b3c 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "lint-e2e": "./node_modules/.bin/tslint -p ./e2e/tsconfig.e2e.json -c ./tslint.json", "test-export": "ts-node ./tools/export-check/exportCheck.ts ./lib/core/public-api.ts ./lib/process-services/public-api.ts ./lib/content-services/public-api.ts ./lib/insights/public-api.ts ./lib/process-services-cloud/public-api.ts", "ng": "ng", + "affected:libs": "./node_modules/.bin/nx affected:libs", "validate-config": "ajv validate -s ./lib/core/app-config/schema.json -d ./demo-shell/src/app.config.json --errors=text --verbose", "start": "ng lint dist && npm run validate-config && npm run server-versions && ng serve dist --host 0.0.0.0 --proxy-config ./demo-shell/proxy.conf.js --open", "start:dev": "ng lint dev && npm run validate-config && npm run server-versions && concurrently \"ng serve dev --host 0.0.0.0 --disable-host-check --proxy-config ./demo-shell/proxy.conf.js --open\" \"npm run style:dev --watch\" ", @@ -25,7 +26,7 @@ "webpack-bundle-analyzer": "webpack-bundle-analyzer demo-shell/dist/stats.json", "test": "npm run validate-config && ng test dev --watch=false", "e2e": "./scripts/test-e2e-lib.sh -host 'localhost:4200' -dev --folder demo-shell", - "e2e-lib": "ng e2e lib-e2e --port=4200", + "e2e-lib": "ng e2e lib-e2e-test --port=4200", "server-versions": "rimraf ./demo-shell/src/versions.json && npm list --depth=0 --json=true --prod=true > ./demo-shell/src/versions.json || exit 0", "clean": "rimraf dist ./node_modules typings", "clean-lock": "rimraf package-lock.json", @@ -81,6 +82,8 @@ "adf-tslint-rules": "0.0.4", "alfresco-js-api": "2.7.0-beta5", "alfresco-js-api-node": "2.7.0-beta5", + "@nrwl/schematics": "6.3.1", + "@nrwl/nx": "6.3.1", "chart.js": "2.5.0", "classlist.js": "1.1.20150312", "core-js": "^2.5.4", diff --git a/scripts/affected-folder.sh b/scripts/affected-folder.sh new file mode 100755 index 0000000000..433a989ba7 --- /dev/null +++ b/scripts/affected-folder.sh @@ -0,0 +1,49 @@ +#!/usr/bin/env bash + +eval BRANCH_NAME="" +eval HEAD_SHA_BRANCH="" +eval SHA_2="HEAD" + +show_help() { + echo "Usage: affected-folder.sh" + echo "" + echo "-b branch name" + echo "-folder" +} + +branch_name(){ + BRANCH_NAME=$1 +} + +folder_name(){ + FOLDER_NAME=$1 +} + +while [[ $1 == -* ]]; do + case "$1" in + -b) branch_name $2; shift 2;; + -f) folder_name $2; shift 2;; + -*) echo "invalid option: $1" 1>&2; show_help; exit 0;; + esac +done + +if [[ "$BRANCH_NAME" == "" ]] +then + echo "The branch name is mandatory" + exit 0 +fi + +if [[ "$FOLDER_NAME" == "" ]] +then + echo "The folder name is mandatory" + exit 0 +fi + +HEAD_SHA_BRANCH="$(git merge-base origin/$BRANCH_NAME HEAD)" +#echo "Branch name $BRANCH_NAME HEAD sha " $HEAD_SHA_BRANCH + +if git diff --name-only $HEAD_SHA_BRANCH HEAD | grep "^${FOLDER_NAME}" &> /dev/null +then + echo ${FOLDER_NAME} +fi + diff --git a/scripts/affected-libs.sh b/scripts/affected-libs.sh new file mode 100755 index 0000000000..4034d62a38 --- /dev/null +++ b/scripts/affected-libs.sh @@ -0,0 +1,113 @@ +#!/usr/bin/env bash + +eval BRANCH_NAME="" +eval HEAD_SHA_BRANCH="" +eval SHA_2="HEAD" +eval DIRECTORY="tmp" + +show_help() { + echo "Usage: smart-build.sh" + echo "" + echo "-b branch name" +} + +branch_name(){ + BRANCH_NAME=$1 +} + +while [[ $1 == -* ]]; do + case "$1" in + -b) branch_name $2; shift 2;; + -*) echo "invalid option: $1" 1>&2; show_help; exit 0;; + esac +done + +if [[ "$BRANCH_NAME" == "" ]] +then + echo "The branch name is mandatory" + exit 0 +fi + +#HEAD_SHA_BRANCH=(`git merge-base origin/$BRANCH_NAME HEAD`) +HEAD_SHA_BRANCH="$(git merge-base origin/$BRANCH_NAME HEAD)" +echo "Branch name $BRANCH_NAME HEAD sha " $HEAD_SHA_BRANCH + +# tmp folder doesn't exist. +if [ ! -d "$DIRECTORY" ]; then + #find affected libs + echo "Directory tmp created"; + mkdir $DIRECTORY; +fi + +if [ ! -f $DIRECTORY/deps.txt ]; then + npm run affected:libs -- $HEAD_SHA_BRANCH "HEAD" > $DIRECTORY/deps.txt +fi + +#echo "extensions" > deps.txt + +#clean file +sed -i '/^$/d' ./$DIRECTORY/deps.txt +sed -i '/alfresco-components/d' ./$DIRECTORY/deps.txt +sed -i '/nx affected:libs/d' ./$DIRECTORY/deps.txt +sed -i '/^$/d' ./$DIRECTORY/deps.txt + +#read result from file +while IFS= read -r var +do + fileLine=$var +done < "./$DIRECTORY/deps.txt" + +#transform string to array +libs=(`echo $fileLine | sed 's/^$/\n/g'`) + +#core +for i in "${libs[@]}" +do + if [ "$i" == "core" ] ; then + AFFECTED_LIBS="core$ content-services$ process-services$ process-services-cloud$ insights$ extensions$ " + echo "${AFFECTED_LIBS}" + exit 0 + fi +done + +#process-services +for i in "${libs[@]}" +do + if [ "$i" == "process-services" ] ; then + AFFECTED_LIBS=$AFFECTED_LIBS" process-services$" + fi +done + +#content-services +for i in "${libs[@]}" +do + if [ "$i" == "content-services" ] ; then + AFFECTED_LIBS=$AFFECTED_LIBS" content-services$" + fi +done + +#insights +for i in "${libs[@]}" +do + if [ "$i" == "insights" ] ; then + AFFECTED_LIBS=$AFFECTED_LIBS" insights$" + fi +done + +#extensions +for i in "${libs[@]}" +do + if [ "$i" == "extensions" ] ; then + AFFECTED_LIBS=$AFFECTED_LIBS" extensions$" + fi +done + +#process-services-cloud +for i in "${libs[@]}" +do + if [ "$i" == "process-services-cloud" ] ; then + AFFECTED_LIBS=$AFFECTED_LIBS" process-services-cloud$" + fi +done + +echo "${AFFECTED_LIBS}" diff --git a/scripts/build-content-services.sh b/scripts/build-content-services.sh new file mode 100755 index 0000000000..b6076f471e --- /dev/null +++ b/scripts/build-content-services.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +cd $DIR/.. + +echo "====== Content Services ======" +echo "====== Build ======" +npm run ng-packagr -- -p ./lib/content-services/ || exit 1 + +echo "====== Build style ======" +node ./lib/config/bundle-content-services-scss.js || exit 1 + +echo "====== Copy i18n ======" +mkdir -p ./lib/dist/content-services/bundles/assets/adf-content-services/i18n +cp -R ./lib/content-services/i18n/* ./lib/dist/content-services/bundles/assets/adf-content-services/i18n + +echo "====== Copy assets ======" +cp -R ./lib/content-services/assets/* ./lib/dist/content-services/bundles/assets + +echo "====== Move to node_modules ======" +rm -rf ./node_modules/@alfresco/adf-content-services/ && \ +mkdir -p ./node_modules/@alfresco/adf-content-services/ && \ +cp -R ./lib/dist/content-services/* ./node_modules/@alfresco/adf-content-services/ diff --git a/scripts/build-core.sh b/scripts/build-core.sh new file mode 100755 index 0000000000..377414d4dc --- /dev/null +++ b/scripts/build-core.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +cd $DIR/.. + +echo "====== Core ======" +echo "====== Build ======" +npm run ng-packagr -- -p ./lib/core/ || exit 1 + +echo "====== Build style ======" +node ./lib/config/bundle-core-scss.js || exit 1 + +echo "====== Copy i18n ======" +mkdir -p ./lib/dist/core/bundles/assets/adf-core/i18n +cp -R ./lib/core/i18n/* ./lib/dist/core/bundles/assets/adf-core/i18n + +echo "====== Copy assets ======" +cp -R ./lib/core/assets/* ./lib/dist/core/bundles/assets + +echo "====== Move to node_modules ======" +rm -rf ./node_modules/@alfresco/adf-core/ && \ +mkdir -p ./node_modules/@alfresco/adf-core/ && \ +cp -R ./lib/dist/core/* ./node_modules/@alfresco/adf-core/ diff --git a/scripts/build-extensions.sh b/scripts/build-extensions.sh new file mode 100755 index 0000000000..431584b1bd --- /dev/null +++ b/scripts/build-extensions.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +cd $DIR/.. + +echo "====== Extensions ======" +echo "====== Build ======" +ng build extensions || exit 1 + +echo "====== Move to node_modules ======" +rm -rf ./node_modules/@alfresco/adf-extensions/ && \ +mkdir -p ./node_modules/@alfresco/adf-extensions/ && \ +cp -R ./lib/dist/extensions/* ./node_modules/@alfresco/adf-extensions/ diff --git a/scripts/build-insights.sh b/scripts/build-insights.sh new file mode 100755 index 0000000000..c9b0c44f84 --- /dev/null +++ b/scripts/build-insights.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +cd $DIR/.. + +echo "====== Insights ======" +echo "====== Build ======" +npm run ng-packagr -- -p ./lib/insights/ || exit 1 + +echo "====== Build style ======" +node ./lib/config/bundle-insights-scss.js || exit 1 + +echo "====== Copy i18n ======" +mkdir -p ./lib/dist/insights/bundles/assets/adf-insights/i18n +cp -R ./lib/insights/i18n/* ./lib/dist/insights/bundles/assets/adf-insights/i18n + +echo "====== Copy assets ======" +cp -R ./lib/insights/assets/* ./lib/dist/insights/bundles/assets + +echo "====== Move to node_modules ======" +rm -rf ./node_modules/@alfresco/adf-insights/ && \ +mkdir -p ./node_modules/@alfresco/adf-insights/ && \ +cp -R ./lib/dist/insights/* ./node_modules/@alfresco/adf-insights/ diff --git a/scripts/build-process-services-cloud.sh b/scripts/build-process-services-cloud.sh new file mode 100755 index 0000000000..98397e97c7 --- /dev/null +++ b/scripts/build-process-services-cloud.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +cd $DIR/.. + +echo "====== Process Services Cloud ======" +echo "====== Build ======" +ng build process-services-cloud || exit 1 + +echo "====== Build style ======" +node ./lib/config/bundle-process-services-cloud-scss.js || exit 1 + +echo "====== Copy i18n ======" +mkdir -p ./lib/dist/process-services-cloud/bundles/assets/adf-process-services-cloud/i18n +cp -R ./lib/process-services-cloud/src/lib/i18n/* ./lib/dist/process-services-cloud/bundles/assets/adf-process-services-cloud/i18n + +echo "====== Copy assets ======" +cp -R ./lib/process-services-cloud/src/lib/assets/* ./lib/dist/process-services-cloud/bundles/assets + +echo "====== Move to node_modules ======" +rm -rf ./node_modules/@alfresco/adf-process-services-cloud/ && \ +mkdir -p ./node_modules/@alfresco/adf-process-services-cloud/ && \ +cp -R ./lib/dist/process-services-cloud/* ./node_modules/@alfresco/adf-process-services-cloud/ diff --git a/scripts/build-process-services.sh b/scripts/build-process-services.sh new file mode 100755 index 0000000000..6c982cfe6d --- /dev/null +++ b/scripts/build-process-services.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +cd $DIR/.. + +echo "====== Process Services ======" +echo "====== Build ======" +npm run ng-packagr -- -p ./lib/process-services/ || exit 1 + +echo "====== Build style ======" +node ./lib/config/bundle-process-services-scss.js || exit 1 + +echo "====== Copy i18n ======" +mkdir -p ./lib/dist/process-services/bundles/assets/adf-process-services/i18n +cp -R ./lib/process-services/i18n/* ./lib/dist/process-services/bundles/assets/adf-process-services/i18n + +echo "====== Copy assets ======" +cp -R ./lib/process-services/assets/* ./lib/dist/process-services/bundles/assets + +echo "====== Move to node_modules ======" +rm -rf ./node_modules/@alfresco/adf-process-services/ && \ +mkdir -p ./node_modules/@alfresco/adf-process-services/ && \ +cp -R ./lib/dist/process-services/* ./node_modules/@alfresco/adf-process-services/ diff --git a/scripts/smart-build.sh b/scripts/smart-build.sh new file mode 100755 index 0000000000..a5910027b3 --- /dev/null +++ b/scripts/smart-build.sh @@ -0,0 +1,52 @@ +#!/usr/bin/env bash + +affected="$(./scripts/affected-libs.sh -b "$TRAVIS_BRANCH")" +libs=(`echo $affected | sed 's/^$/\n/g'`) + +#core +for i in "${libs[@]}" +do + if [ "$i" == "core$" ] ; then + ./scripts/build-core.sh + fi +done + +#content-services +for i in "${libs[@]}" +do + if [ "$i" == "content-services$" ] ; then + ./scripts/build-content-services.sh + fi +done + +#process-services +for i in "${libs[@]}" +do + if [ "$i" == "process-services$" ] ; then + ./scripts/build-process-services.sh + fi +done + +#process-services-cloud +for i in "${libs[@]}" +do + if [ "$i" == "process-services-cloud$" ] ; then + ./scripts/build-process-services-cloud.sh + fi +done + +#insights +for i in "${libs[@]}" +do + if [ "$i" == "insights$" ] ; then + ./scripts/build-insights.sh + fi +done + +#extensions +for i in "${libs[@]}" +do + if [ "$i" == "extensions$" ] ; then + ./scripts/build-extensions.sh + fi +done