Commit Graph

34 Commits

Author SHA1 Message Date
toasted-nutbread
97ac9099e8
Update packages (#1534) 2021-03-15 23:17:50 -04:00
toasted-nutbread
782b945905
Header lint (#1444)
* Add eslint-plugin-header

* Add rule for header format

* Add missing header

* Fix header issues
2021-02-25 20:21:05 -05:00
toasted-nutbread
9e83faa02c
Html lint (#1336)
* Move style rules

* Fix non-unique IDs

* Remove erroneous ids

* Add title

* Fix invalid closing tag

* Install html-validate

* Add .htmlvalidate.json

* Update HTML and styles

* Add test-lint-html

* Update test files

* Update test-lint-html/css commands to have more explicit targets
2021-01-30 20:44:54 -05:00
toasted-nutbread
4430446731
Package update (#1308)
* Update eslint command to use npx

* Omit author field
2021-01-24 15:11:37 -05:00
toasted-nutbread
63971776a5
CSS lint (#1201)
* Use single quotes instead of double

* Install stylelint

* Set up config

* Update package/tests

* Fix lint issues

* Update CSS rules
2021-01-03 15:30:38 -05:00
toasted-nutbread
e54a2297e8
Build dry run test (#1129)
* Update testMain to support function args

* Add support for dry run and basic validation

* Don't log progress if not a TTY

* Ignore errors from fs.unlinkSync

* Add --dry-run-build-zip option to build zip in memory

* Add test-build
2020-12-18 20:51:22 -05:00
toasted-nutbread
fe16793779
Update package dependencies (#1100) 2020-12-12 13:06:15 -05:00
toasted-nutbread
2d765d2c4e
Dev dependency update (#895)
* Update dev dependencies

* Add parse5 dev dependency

* Add browserify dev dependency
2020-10-07 19:56:09 -04:00
toasted-nutbread
d27349207d
Add web-ext dev dependency (#861)
* Add web-ext dependency

* Specify extension directory

* Add command for testing web-ext lint
2020-09-26 13:44:47 -04:00
toasted-nutbread
d3ed8f43a1
Add lint test to validate <script>s in HTML files (#848) 2020-09-19 21:57:11 -04:00
toasted-nutbread
51d4e5b0ff
Dev/test script organization (#846)
* Move lint scripts

* Move dictionary-validate.js

* Move schema-validate.js

* Move createTestDictionaryArchive, remove yomichan-test.js

* Rename yomichan-util.js to util.js

* Move test/yomichan-vm.js to dev/vm.js

* Move getArgs into util.js (and fix name)

* Create test-all.js

* Update test-code script
2020-09-19 19:04:28 -04:00
toasted-nutbread
a96e1c20a7
Dynamic property (#749)
* Add DynamicProperty class

* Add tests for DynamicProperty
2020-08-22 17:50:56 -04:00
toasted-nutbread
d8649f40d5
JSON-schema-based profile conditions (#730)
* Add ProfileConditions class

* Add URL to VM

* Add new ProfileConditions tests
2020-08-15 17:22:23 -04:00
toasted-nutbread
6da02c6eee
document.js refactor (#719)
* Refactor document.js into a class

* Move public functions first

* Rename private functions

* Rename

* Rename argument

* Use instance of DocumentUtil

* Update tests

* Refactor

* Rename (test-)document.js to (test-)document-util.js
2020-08-09 13:27:21 -04:00
toasted-nutbread
d856e4caac
CacheMap (#715)
* Create CacheMap class

* Add test
2020-08-09 13:15:56 -04:00
toasted-nutbread
04d47bf8a9
Build system changes (#721)
* Refactor manifest.json

* Change end-of-line convention for built plain-text files

* Ignore builds directory

* Mark the "dev" directory as using the node environment

* Create build script

* Register build scripts

* Remove old build script

* Fix 64x64 icon

* Add test to ensure manifest data is updated properly
2020-08-09 13:09:06 -04:00
toasted-nutbread
d7aaab685e
Dev dependencies updates (#679)
* Update eslint to 7.5.0

* Update eslint-plugin-no-unsanitized to 3.1.2

* Update fake-indexeddb to 3.1.1

* Rename DictionaryImporter.import to .importDictionary

Conflicts with o-unsanitized/method
2020-07-19 22:05:37 -04:00
toasted-nutbread
f7df6254d6
Dom text scanner fixes (#505)
* Fix test case

* Add test-dom-text-scanner

* Ensure that DOMTextScanner._node never becomes null

* Add remainder
2020-05-06 19:33:17 -04:00
toasted-nutbread
02d815f3f4 Update jsdom to 16.2.2 2020-04-13 18:54:34 -04:00
toasted-nutbread
7225201fb6 Add tests 2020-03-28 18:25:56 -04:00
toasted-nutbread
a0c4ce779d
Merge pull request #413 from toasted-nutbread/japanese-utility
Convert Japanese utilities to a module-like style
2020-03-27 22:53:45 -04:00
toasted-nutbread
647769f2ba Update jsdom to version 16.2.1 2020-03-15 22:35:34 -04:00
toasted-nutbread
487d4b239b Add unit tests 2020-03-15 22:25:08 -04:00
toasted-nutbread
701f73440c Add tests 2020-03-14 13:51:06 -04:00
toasted-nutbread
adbdca6a8b Add to test-lint 2020-03-10 22:40:59 -04:00
toasted-nutbread
7c615244f4
Merge pull request #375 from toasted-nutbread/document-tests
Document tests
2020-03-01 14:41:17 -05:00
toasted-nutbread
f463e2e238 Update license strings to remove npm warning 2020-02-23 11:49:10 -05:00
toasted-nutbread
c1d6e5dbf1 Add command to test-code 2020-02-22 15:54:21 -05:00
toasted-nutbread
85aab699e9 Add jsdom dependency 2020-02-22 15:26:49 -05:00
toasted-nutbread
a31ac68574 Update tests 2020-02-18 22:20:00 -05:00
toasted-nutbread
03886eb833 Add fake-indexeddb 2020-02-18 22:16:30 -05:00
toasted-nutbread
174d9e7429 Add some basic unit tests for JSON schemas 2020-02-17 14:20:22 -05:00
toasted-nutbread
e83167dcd1 Add eslint-plugin-no-unsanitized 2020-02-12 19:08:13 -05:00
toasted-nutbread
b97f80e4d9 Setup GitHub actions 2020-02-12 19:07:27 -05:00