Skip to content

Latest commit

 

History

History
84 lines (54 loc) · 1.25 KB

UPDATING.md

File metadata and controls

84 lines (54 loc) · 1.25 KB

Updating

This library features a NodeJS script for updating the Emoji images and the generated Java code.

Contents of the script

The script does three things:

  • Parsing and organizing the meta data.
  • Copy (and optimize) the images to the respective locations.
  • Generate the Java code.

Prerequisites

NodeJS 8
Npm or Yarn

Running the script

Go the the generator directory:

cd generator

Before running the script, you need to install the required dependencies.

npm install

or

yarn

After that you can start the script with:

npm start

or

yarn start

Parameters

Not all steps are always required. If you want to skip the time-consuming optimization for example, you could pass --no-optimize. The following parameters are available:

--no-optimize

Does not optimize the images.

--no-copy

Does not copy the images and also implicitly not optimize them.

--no-generate

Does not regenerate the code.

Running with parameters

Parameters are passed to the script like this:

npm start -- --no-optimize --no-copy

or

yarn start --no-optimize --no-copy