Commit Graph

325 Commits

Author SHA1 Message Date
MDLeom 3de777904f
chore(deps-dev): update hexo from 25.4.0 to 26.4.2 2020-09-05 10:23:32 +00:00
MDLeom d9817f8a44
chore(deps-dev): update hexo from 4.2.0 to 5.1.1 2020-09-05 10:23:01 +00:00
MDLeom 605c5fd57f
chore(deps): update terser from 4.0.0 to 5.3.0 2020-09-05 10:21:22 +00:00
MDLeom d68c26a2c2
docs: use Shields.io badges
- move david-dm.org to more stable libraries.io
2020-09-05 10:18:51 +00:00
MDLeom 7f60c6959e
chore: replace deprecated greenkeeper with dependabot 2020-09-05 10:10:34 +00:00
MDLeom c2bcaa7d69
Merge pull request #25 from curbengh/minify-xml
feat: utilise better minify-xml
2020-09-03 14:37:16 +09:30
MDLeom 8bbecf676f
feat: utilise better minify-xml
- replace pretty-data
2020-09-02 11:23:20 +00:00
MDLeom 9b94a2c2df
ci(travis): remove Node 13
- EOL 1 June 2020
2020-06-06 07:45:47 +01:00
MDLeom bdb7e94350
test(gz): blns 2020-06-06 07:42:12 +01:00
MDLeom e5ab822c45
test(br): blns 2020-06-06 07:41:37 +01:00
MDLeom c42b9040a6
test(js): throw error on invalid input 2020-05-25 09:36:21 +01:00
MDLeom 9e67d11e8a
test(html): invalid input
- uncovered using blns.json
- https://github.com/minimaxir/big-list-of-naughty-strings
2020-05-25 09:13:15 +01:00
MDLeom e1843f7400
chore(deps-dev): Update jest to 25.4.0 2020-04-24 13:57:26 +01:00
MDLeom b8d48c7f8a
ci(travis): add Node 14 2020-04-24 13:54:24 +01:00
MDLeom c721fa8c02
docs(readme): add lgtm.com badges 2020-02-24 04:11:50 +00:00
curbengh 81ab472fe1
test: utilise toThrow() to catch error
- try...catch would (incorrectly) pass the test, despite having no error
2020-01-09 15:14:25 +00:00
curbengh b9f4cd6173
release: v4.1.0 2020-01-03 01:37:33 +00:00
curbengh fdcdbef4a1
feat: minify json 2020-01-03 01:17:37 +00:00
curbengh 64ba16cb22
refactor(test): organise unit tests into separate files 2020-01-03 00:51:45 +00:00
curbengh 317b5e43d3
feat: minify xml 2020-01-03 00:35:25 +00:00
curbengh d75b10b64b
fix: skip empty file 2020-01-02 12:49:29 +00:00
curbengh 8d0fdaeb80
docs: clarify logger -> verbose 2020-01-02 10:46:28 +00:00
curbengh ab69db2f3e
release: v4.0.0 2020-01-02 00:47:55 +00:00
curbengh d1ca7f9c2b
refactor(test): remove unnecessary variable 2019-12-30 06:01:28 +00:00
curbengh 4a5c66add2
style(test): it() to test() 2019-12-30 05:53:28 +00:00
curbengh fa6f514a05
ci: add code coverage report 2019-12-29 04:14:49 +00:00
curbengh 60642c8048
docs: add TOC 2019-12-29 03:51:02 +00:00
curbengh 1c530b7d44
test(include): negation pattern and basename 2019-12-29 02:33:59 +00:00
curbengh 51ff9d953d
fix(test): corrects slash pattern tests 2019-12-28 10:26:25 +00:00
curbengh 50d80ccc70
feat(globbing): support disabling basename for each pattern in 'include:' option 2019-12-28 10:10:30 +00:00
curbengh 9d6b72422b
refactor(test): utilize Buffer.equals
- instead of binary-base64 conversion
- https://jestjs.io/docs/en/expect#toequalvalue
2019-12-28 08:42:14 +00:00
curbengh 6111d21a7c
docs: 'logger:', compression level, 'basename' globOptions 2019-12-28 01:12:40 +00:00
curbengh 7201b3f56f
refactor(test): de-duplicate variables 2019-12-27 23:12:46 +00:00
curbengh 440b9ccd8c
feat: rename 'logger:' option to 'verbose:'
BREAKING CHANGE
2019-12-27 22:54:09 +00:00
curbengh e59e3866b9
test(br): invalid level 2019-12-27 09:12:27 +00:00
curbengh 1a5197b9c9
test(logger): add test 2019-12-27 08:55:39 +00:00
curbengh 866593110e
test(br): test passing option 2019-12-27 08:09:31 +00:00
curbengh f0b37aaf45
chore: requires at least Node 10.18
BREAKING CHANGE: Drop Node 8 and iltorb
- utilize native brotli
- Drop string-to-buffer conversion
  * conversion was necessary for iltorb
2019-12-27 08:00:16 +00:00
curbengh 48868bfa7e
feat(gz & br): support custom compression level 2019-12-27 07:50:03 +00:00
curbengh ab023da82e
test(brotli): add unit test 2019-12-27 05:59:44 +00:00
curbengh 626369e3e0
test(gzip): add unit test 2019-12-27 05:39:29 +00:00
curbengh 7e1ec95f9a
test(svg): add unit test 2019-12-27 04:32:03 +00:00
curbengh 932d36182c
fix: reject a promise with an error object
- resolve "Unhandled promise rejection" error
- https://stackoverflow.com/a/47803880
2019-12-27 04:30:10 +00:00
curbengh 9df4e8283b
fix(logger): pass the correct variable to the parameter 2019-12-27 03:31:33 +00:00
curbengh 7d163bcb00
test(js): result should not be undefined 2019-12-27 00:38:44 +00:00
curbengh 4e4605e1a4
test(css): invalid option 2019-12-26 15:32:21 +00:00
curbengh f7c600545b
test: option.enable 2019-12-26 15:24:54 +00:00
curbengh 631503aa1a
fix: Terser should throw error if there is invalid option
- Other functions also throw error to abort
2019-12-26 15:06:32 +00:00
curbengh b046d2a09e
fix: disable basename by invidual pattern 2019-12-26 14:44:42 +00:00
curbengh e6381ebed3
Merge pull request #21 from curbengh/unit-test
test: add tests for html, js, css minifiers
2019-12-27 00:22:09 +10:30