Commit Graph

18 Commits

Author SHA1 Message Date
Doug Bird 651c5f457f typo fixes 2018-06-13 01:10:41 -07:00
Doug Bird 300cc523e0 version 2
- refactor js files to be proper module exportrs with an index.js
- fix inconsistent naming of TLD format files containing simple array of each TLD; now all named using the "list" suffix instead of some using "enum"
 - formats/js/tld-enum/list.js
 - formats/json/tld-list.json
 - formats/php/TldEnum/TldList.php
- new "desc" (description) format file; hashmap of each TLD with corresponding description
 - formats/js/tld-enum/desc.js
 - formats/json/tld-desc.json
 - formats/php/TldEnum/TldDesc.php
- new "type" format file; hashmap of each TLD with corresponding TLD type
 - formats/js/tld-enum/type.js
 - formats/json/tld-type.json
 - formats/php/TldEnum/TldType.php
- new "info" format file; array of each TLD with hashmap containing the "domain", "description", and "type" properties
 - formats/js/tld-enum/info.js
 - formats/json/tld-info.json
 - formats/php/TldEnum/TldInfo.php
- examples for new format files
 - examples/js-desc-demo.js
 - examples/js-info-demo.js
 - examples/js-type-demo.js
 - examples/php-TldDesc-demo.php
 - examples/php-TldInfo-demo.php
 - examples/php-TldType-demo.php
- fixes to bin/update-formats.sh
 - can now skip downloading data from IANA
 - creates new format files with newly created helpers
- created new helpers for new format files
 - bin/helpers/generate-js-tld-desc.js
 - bin/helpers/generate-js-tld-info.js
 - bin/helpers/generate-js-tld-type.js
 - bin/helpers/generate-json-tld-desc.js
 - bin/helpers/generate-json-tld-info.js
 - bin/helpers/generate-json-tld-type.js
 - bin/helpers/generate-php-tld-desc.php
 - bin/helpers/generate-php-tld-info.php
 - bin/helpers/generate-php-tld-type.php
2018-06-12 22:51:12 -07:00
Doug Bird e289011074 fixes
fix some typos
2018-06-12 18:46:39 -07:00
Doug Bird 506501f55e quiet mode 2018-06-12 18:39:58 -07:00
Doug Bird bdc2689beb skip php option
generating the PHP format file is now optional:
- if the PHP command is unavailable, the PHP format file is automatically skipped
- if the --skip-php option is provided, the PHP format file is always skipped
- if the --force-php option is provided, the PHP command line MUST exist
2018-06-12 17:13:24 -07:00
Doug Bird 99fb1b3eae cleanup 2018-06-12 15:53:57 -07:00
Doug Bird 7ccec55531 fixes
- fix "quiet mode"
- improve code comments
2018-06-12 15:43:04 -07:00
Doug Bird c209a1d3a1 refactoring
- rename bin/update-formats to bin/update-formats.sh
- fix unnecessary bashisms in bin/update-formats.sh
2018-06-12 15:11:55 -07:00
Doug Bird 59575f41d0
env bash 2018-06-12 13:56:25 -07:00
Doug Bird 17424095da automated format generation 2017-12-13 20:49:59 -08:00
Doug Bird 646e864e6f fix CRs and filemode 2017-12-13 13:36:06 -08:00
Doug Bird 150b8682b8 error status for helpers 2017-12-13 13:19:58 -08:00
Doug Bird 16159bb6cb refactor / simplify 2017-12-13 12:29:47 -08:00
Doug Bird 2fb8666e0e npm package and path refactoring
moved around paths to facilitate node project development and npm package
2017-12-13 12:01:28 -08:00
Doug Bird e803a7fa12 placeholders of format generation scripts 2017-12-04 15:33:08 -08:00
Doug Bird 24b5e6507f placeholders of format generation scripts 2017-12-04 15:14:09 -08:00
Doug Bird b2d86c5188 project init 2017-12-04 14:17:37 -08:00
Doug Bird f07f12c9c5 project init 2017-12-04 13:56:31 -08:00