Mercurial > gemma
view client/README.md @ 1883:76a6d334e681 dev-pdf-generation
Client: pdf-gen: refactor addScaleBar
* Change positioning from center to left-upper corner for a new
function addRoundedBox() that is now used before addScaleBar().
This is easier to calculate and is more like the model of jsPDF.
* Add more comments to show how this works.
* Move saving of the current vue instance to be the last command
before the callback is set.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Wed, 16 Jan 2019 20:58:59 +0100 |
parents | 70573eea890e |
children | 72d6fcb2147d |
line wrap: on
line source
N.N === * Install dependencies * Install (`xgettext`) tool (e.g. for Debian xgettext (GNU gettext-tools) 0.19.8.1) * Javascript `yarn install` * Extend or overwrite configuration via `.env.local`-file ``` cp .env .env.local ```` Modify `.env.local` according to your needs. * Start Development servers * Javascript Run webpack-dev-server with `yarn serve` * Build `yarn build` builds the production ready assets to `web` folder. * Build `yarn build-demo` sets the hg revision as a node env var and builds the production ready assets to `web` folder. * Translation * Extract Messages via `make makemessages` * Translations are converted via `make translations` which is executed automatically with yarn serve/build For more information see [developer documentation](./docs/developer.md) * Tests * Unit tests are started via `yarn test:unit` * e2e tests are started via `yarn test:e2e` Vue cli supports the Chrome selenium driver out of the box If you are interested in using the Firefox variant of the driver see [Vue CLI Plugin Docs](https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-e2e-nightwatch) and see also [Nightwatch documentation](http://nightwatchjs.org/gettingstarted#geckodriver)