diff options
| author | Ben Beltran <ben@nsovocal.com> | 2017-03-02 23:10:51 -0600 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2017-03-02 23:10:51 -0600 |
| commit | 35ab4aab6926fb6cd2b44eda8bc14c72a8759b75 (patch) | |
| tree | 0c08edd4f9b6a0bc9bb2780b8a496ed8c69e20a4 /atom/packages/pretty-json/node_modules/jsonminify/PORTING.txt | |
| parent | 0b4318740e55d6977d98872eff6bebfe948bf46f (diff) | |
| parent | 28cc50d9af1fd1314afde30169dc22bba5934380 (diff) | |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'atom/packages/pretty-json/node_modules/jsonminify/PORTING.txt')
| -rw-r--r-- | atom/packages/pretty-json/node_modules/jsonminify/PORTING.txt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/atom/packages/pretty-json/node_modules/jsonminify/PORTING.txt b/atom/packages/pretty-json/node_modules/jsonminify/PORTING.txt new file mode 100644 index 0000000..bcfde15 --- /dev/null +++ b/atom/packages/pretty-json/node_modules/jsonminify/PORTING.txt @@ -0,0 +1,22 @@ +As you can see comparing the PHP port to the original JS code, +the spirit of what I want to do is implement the code in as +similar a code algorithm as possible for now, until we're more +sure the algorithm is either solid (bug free) or perhaps we +decide on a better universal algorithm. + +But the more similar the code algorithm implementations are, +the easier it will be to maintain the various ports if changes +must occur. + +In as much as possible, my preference is to use core/built-in +parts of each language rather than plugins. That lets the most +people have a chance to use it. If that's not practical in some +situation, fine, document it. But if possible, that's preferred. + +The test.minify.html file shows 4 different test inputs which +exercise the algorithm and show the correct outputs. Those same +tests should pass on the ports, obviously. + +Process would just be to fork this repo and add the files, in +the style of "minify.json.rb" for ruby, for instance, and then +send me a pull request. |