Popovics András f84ea5da72
[AAE-4608] Use smartrunner version 2 and add SuperCache (workspaces + S3 combo)! (#6704)
* [AAE-4608] Use smartrunner version 2

* Fix npm installing and do not depend on develop cache

* Add Travis workspaces the simplest way

* Add missing dependencies

* Remove unnecessary npm install on lint

* Fix travis indentation

* Fix e2e missing adf packages

* Trying to fix Travis

* Remove debug information

* Use Travis workspaces for smartrunner and built artefacts caching instead of S3

* Implement nuclear caching for node_modules

* Quiet snyk running, since the log length kills Travis

* Maybe with -q

* Quieting snyk

* Why displaying the added packages??????

* Fix S3 persister/retriever scripts

* Restore back parallel build and lint, to gain 10 minutes
2021-02-22 08:57:08 +00:00
..
2020-09-04 13:27:55 +01:00
2020-07-13 22:23:46 +01:00
2019-06-11 19:44:17 +01:00
2020-05-04 17:46:22 +01:00
2020-12-08 16:31:26 +00:00

Running a demo project

The Alfresco application development framework comes with a demo project that you can run to get a feel of what's available.

  • Start by navigating into the app development framework source folder, and then the scripts folder:
 cd alfresco-ng2-components
 cd scripts

npm-check-bundles.sh check the bundles in the package npm are present

Options

Option Description
-h or --help show the help
-r or --registry against which register you want to do this check
-v or --version the version of the components to check

npm-add-pkg.sh

npm-add-pkg.sh check the bundles in the package npm are present

Add a package across all the pacakge json in the project

Options

Option Description
-h or --help show the help
--save save it in dependencies
--save-dev save it in dev dependencies
  • Add a package in the project

Examples

./npm-add-pkg.sh --save-dev NPM_NAME

extract-langs.sh

extract-langs.sh

Extract the i18n files from the repo and create a zip

Options

Option Description
-h or --help show the help
--output or o output folder otherwise will be 18n

Examples

./extract-langs.sh 

test-e2e-bc.sh

test-e2e-bc.sh

This script test that the update from 2.0.0 to 2.x.x is still smooth

Examples

./test-e2e-bc

test-e2e-bc.sh

test-e2e-bc.sh

This script test that the update from 2.0.0 to 2.x.x is still smooth

Examples

./test-e2e-bc

simulate-publish.sh

simulate-publish.sh

This script run a verdaccio server and simulate a publish on it

Examples

./simulate-publish

test-dist.sh

test-dist.sh

This script test the distribution of ADF against the demo shell

Examples

./test-dist

test-e2e-lib.sh

test-e2e-lib.sh

Script to run e2e test

Option Description
-u or --username username to use
-p or --password password to use
-e or --email email user to use
-b or --browser browser run the test in the browsrwer (No headless mode)
-s or --spec spec run a single test file
-dev or --dev run it against local development environment it will deploy on localhost:4200 the current version of your branch
-t or --timeout override the timeout foe the wait utils
-host or --host host against to run the test
-proxy or --proxy proxy Back end URL to use

Examples

./scripts/test-e2e-lib.sh -host adf.domain.com -u admin -p admin -e admin

Run on browser

./scripts/test-e2e-lib.sh -host adf.domain.com -u admin -p admin -e admin --browser

Run a single test

./scripts/test-e2e-lib.sh -host adf.domain.com -u admin -p admin -e admin --spec filenam.e2e.ts

if the test in a subfolder in e2e you need to add the subfolder in the path:

./scripts/test-e2e-lib.sh -host adf.domain.com -u admin -p admin -e admin --spec ./core/filenam.e2e.ts

Use a different backend

./scripts/test-e2e-lib.sh -host localhost:42000 -proxy adf.domain.com  -u admin -p admin -e admin