Skip to content

Commit

Permalink
add composer command to rebuild emoji database
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronpk committed Aug 27, 2021
1 parent 44a9443 commit 169f450
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/generate-map.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}
}

file_put_contents(dirname(__FILE__).'/../src/map.json', json_encode($map));
file_put_contents(dirname(__FILE__).'/../src/map.json', json_encode($map, JSON_PRETTY_PRINT));

$keys = array_keys($map);
usort($keys,function($a,$b){
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"phpunit/phpunit": "^8.5"
},
"scripts": {
"test": "vendor/bin/phpunit"
"test": "vendor/bin/phpunit",
"build": "php build/generate-map.php"
}
}

0 comments on commit 169f450

Please sign in to comment.