How sofyanach/emojitwo works
Project type and purpose
• This is an open-source asset pipeline and distribution tool for the Emojitwo emoji artwork (SVG, PNG, CSS, sprites). It takes raw emoji SVGs, applies metadata and templates, generates optimized raster assets and CSS sprites, and packages them for various package managers (npm, Bower, Composer, RubyGem).
File-structure analysis
• Top-level config/build files: Gruntfile.js, package.json, bower.json, composer.json, component.json, emojitwo.gemspec, .travis.yml
• Source assets:
• svg/ and svg_bw/ (raw SVG emoji files)
• emoji.json & emoji_strategy.json (metadata describing codepoints, variants, ordering)
• other/templates/ (Mustache templates for sprite generation)
• Build scripts and glue:
• index.js (Node module tying metadata and build tasks together)
• convert.bat (Windows helper)
• Grunt tasks invoking ImageOptim, spritesmith, mustache, etc.
• Outputs/distributions:
• png/ and png_bw/ (generated PNG files in multiple sizes)
• sprites/ (PNG sprite sheets + CSS, Mustache + CSS templates)
• css/ (prebuilt .css files for sprite usage)
• Documentation & CI:
• doc/ (HTML/MD docs, changelog, coverage)
• .travis.yml (continuous integration, test/coverage runs)
Essential elements
• Notes on external services or tools (ImageOptim, Travis CI)