- simply run the command
ant
in your terminal in the rqzh2 folder and install the data package (see below).
This app uses data stored in the Github repository https://github.com/stazh/erqzh-data.
Clone the repository
git clone git@github.com:stazh/erqzh-data.git
build the xar file by running ant
and install the data xar file.
- clone tei-publisher-components ( github.com/eeditiones/tei-publisher-components/ )
- in rqzh2 modules/config.xqm set $config:webcomponents-cdn to ‘local’
- call
ant xar-local
- remove tei-publisher-components from resources/scripts (
rm -rf resources/scripts/*.js
) - in tei-publisher-components repo execute
npm i && npm run build
- copy generated .js and .map files from the tei-publisher-components ( e.g.
cp dist/*.js dist/*.map $RQZH/rqzh2/resources/scripts/
) - call
ant xar-local
again
- configure the branch / PR in
package.json
like this"@teipublisher/pb-components": "git+https://github.com/eeditiones/tei-publisher-components.git#develop"
- in modules/config.xqm set
config:webcomponents
tolocal
- call
ant clean xar-local
- clone tei-publisher-components ( github.com/eeditiones/tei-publisher-components/ ) or use your existing clone
- in rqzh2 modules/config.xqm set
$config:webcomponents :="dev"
; - in rqzh2 modules/config.xqm set
$config:webcomponents-cdn
to ‘http://localhost:8000’ (default port) - run
npm i
to load dependencies - run 'npm run start' to start the devserver which by default listens on port 8000
- wait until server is running and start eXist-db with rqzh2
Inside /cypress/…
you can find end-to-end tests for the deployed application, which is expected to run on localhost:8080
. To execute the tests run either npm or npx command below:
npm run e2e
npx cypress run
To add new tests you might prefer the GUI overlay
npx cypress open
Select e2e test and then your preferred browser.