Skip to content
Benedikt Groß edited this page Dec 23, 2019 · 37 revisions

Development Environment Setup (OS X)

Install Node.js, see https://github.com/hfg-gmuend/openmoji/blob/master/CONTRIBUTING.md#developer-setup

Additional Dependencies

Some of the helper scripts have additional dependencies

  • librsvg, install via brew install librsvg
  • pngquant, install via brew install pngquant

Check List New Release

https://github.com/hfg-gmuend/openmoji

  • Double check all tests green? npm test
  • Exported production color/black files: npm run generate
  • Export svg for fonts: npm run export-svg-font
  • Generate the OpenMoji fonts: instructions
  • Generate css font embed file: node helpers/generate-font-css.js
  • Update changelog (version tag, date and text)
  • Update version tag in package.json
  • Export release zips (72x72, 618x618, svg): npm run export-zip
  • Publish release on Github (add release notes, add zips)
  • Publish node package: npm publish

https://github.com/hfg-gmuend/openmoji-website

  • Update openmoji.json and svg/png files in openmoji-website/data
  • Update release links on website
  • Add version tag in package.json
  • Publish website

Run individual test

e.g. all "xxx layer existing" tests

node_modules/.bin/mocha --grep "layer existing" --reporter mochawesome --reporter-options reportDir=test/report,reportFilename=report,json=false,code=false,cdn=true,reportTitle=OpenMoji-Tester,reportPageTitle=OpenMoji-Tester test/*.js --openmoji-data-json $PWD/data/openmoji.json --openmoji-src-folder $PWD/src

Run SVGO on individual file

node_modules/.bin/svgo src/activities/arts-crafts/1F3A8.svg --config helpers/beautify-svg.yml
Clone this wiki locally