mirror of
https://github.com/jawira/emoji-catalog.git
synced 2023-08-10 21:12:49 +03:00
Remove leading whitespaces #15
This commit is contained in:
parent
b03d0252d3
commit
bff303bfa6
BIN
build.png
BIN
build.png
Binary file not shown.
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 62 KiB |
28
build.xml
28
build.xml
@ -13,13 +13,13 @@
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="setup" description="Prepare project for dev" depends="composer:install, visualizer"/>
|
||||
<target name="qa" description="Quality assurance" depends="composer:validate, php:lint"/>
|
||||
<target name="update" description="Update class and catalog" depends="emoji:update, catalog:update"/>
|
||||
<target name="setup" description="Prepare project for dev" depends="composer:install,visualizer"/>
|
||||
<target name="qa" description="Quality assurance" depends="composer:validate,php:lint"/>
|
||||
<target name="update" description="Update class and catalog" depends="emoji:update,catalog:update,emoji:count"/>
|
||||
<target name="emoji:update" description="Update Emoji.php"
|
||||
depends="emoji-list:download, emoji:parse, emoji:build, emoji:clean"/>
|
||||
depends="emoji-list:download,emoji:parse,emoji:build"/>
|
||||
<target name="catalog:update" description="Update catalog.md"
|
||||
depends="emoji-list:download, catalog:parse, catalog:build"/>
|
||||
depends="emoji-list:download,catalog:parse,catalog:build"/>
|
||||
|
||||
<target name="composer:validate" description="Validate composer.json">
|
||||
<composer command="validate">
|
||||
@ -36,6 +36,7 @@
|
||||
|
||||
<target name="composer:install" description="Install for dev">
|
||||
<composer command="install">
|
||||
<arg value="--quiet"/>
|
||||
<arg value="--no-suggest"/>
|
||||
<arg value="--no-interaction"/>
|
||||
<arg value="--profile"/>
|
||||
@ -66,9 +67,9 @@
|
||||
</target>
|
||||
|
||||
<target name="emoji-list:download">
|
||||
<mkdir dir="resources/unicode/"/>
|
||||
<httpget dir="resources/unicode/" url="https://unicode.org/emoji/charts/full-emoji-list.html"/>
|
||||
<httpget dir="resources/unicode/" url="https://unicode.org/emoji/charts/full-emoji-modifiers.html"/>
|
||||
<mkdir dir="resources/unicode"/>
|
||||
<httpget dir="resources/unicode" url="https://unicode.org/emoji/charts/full-emoji-list.html"/>
|
||||
<httpget dir="resources/unicode" url="https://unicode.org/emoji/charts/full-emoji-modifiers.html"/>
|
||||
</target>
|
||||
|
||||
<target name="emoji:parse">
|
||||
@ -97,17 +98,6 @@
|
||||
<append file="resources/templates/emoji-footer.php.dist" destFile="src/Emoji.php"/>
|
||||
</target>
|
||||
|
||||
<target name="emoji:clean" description="Reduce Emoji.php size">
|
||||
<reflexive file="src/Emoji.php">
|
||||
<filterchain>
|
||||
<stripphpcomments/>
|
||||
<linecontainsregexp>
|
||||
<regexp pattern="\S"/>
|
||||
</linecontainsregexp>
|
||||
</filterchain>
|
||||
</reflexive>
|
||||
</target>
|
||||
|
||||
<target name="catalog:parse">
|
||||
<mkdir dir="resources/output"/>
|
||||
<delete file="resources/output/catalog-1.txt"/>
|
||||
|
@ -6,20 +6,11 @@
|
||||
|
||||
<xsl:template match="/">
|
||||
<xsl:for-each select="//table//tr[./td//img]">
|
||||
<xsl:text> /** </xsl:text>
|
||||
<xsl:text> * </xsl:text>
|
||||
<xsl:call-template name="get-name"/>
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:text> * </xsl:text>
|
||||
<xsl:text> * Code point(s): </xsl:text>
|
||||
<xsl:call-template name="get-code"/>
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:text> */ </xsl:text>
|
||||
<xsl:text> const </xsl:text>
|
||||
<xsl:text>const </xsl:text>
|
||||
<xsl:call-template name="get-constant-name"/>
|
||||
<xsl:text> = "</xsl:text>
|
||||
<xsl:call-template name="get-emoji"/>
|
||||
<xsl:text>"; </xsl:text>
|
||||
<xsl:text>"; </xsl:text>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
|
7056
src/Emoji.php
7056
src/Emoji.php
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user