Commit graph

18 commits

Author SHA1 Message Date
Isiah Meadows
b17b00e9eb
Drop ESM support (#2366)
* Drop ESM support

* Add `"unpkg"` field
2019-05-29 09:24:10 -04:00
Rasmus Porsager
c3896b92e6 output mithril, stream and ospec esm versions on build - fixes #2112 (#2194)
* output mithril, stream and ospec esm versions on build

* Add esm bundles

* [request] Clearer error message for JSON deserialization failure (#2195)

* Bundled output for commit fd7cf8041e [skip ci]

* Fix #1714 conditionally halting stream (#2200)

* Fix #1714 conditionally halting stream

* Add note in changelog

* Do not include stream as named export in mithril.esm.js

* Rename mithril.min.esm.js to mithril.esm.min.js

* Add esm files to eslintignore

* Add named exports

* Add hyperscript `m` as named export

* Add builds with export changes

* checkout regular bundled files

* Change .esm.js to .mjs

* Update pkg module to point to .mjs

* Fix for export names to avoid collision

* Updated bundled files
2018-11-14 15:37:08 -05:00
Pat Cavit
482f0e71b9 docs: readme rework (#1898) 2017-07-12 20:34:45 -07:00
Pierre-Yves Gerardy
f22f884b1e Unregister the end streams after their dependents have run fix #1736 2017-03-24 22:29:43 +01:00
Isiah Meadows
1cc5fa5ba7 "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
Leo
aee13901d8 docs tweaks 2017-01-26 20:46:32 -05:00
Leo Horie
5552ef31b1 lint 2016-11-15 23:20:22 -05:00
Pat Cavit
8450ca5d91 Add ESLint and a generated config/ignore file
Manually changed some rules to better match @lhorie's style and reduce #
of errors from ESLint.
2016-05-19 12:37:33 -07:00
Leo Horie
13fdb60f66 clean slate 2016-04-20 20:01:04 -04:00
impinball
a07483a164 Actually lint core, regenerate minified files 2016-03-28 07:54:26 -04:00
impinball
55b99dd0e2 Remove an erroneous npm-debug.log, disable failing test
Driveby fix: fix a few linter warnings and actually have CI linting things.
2016-03-02 13:55:48 -05:00
impinball
d6d5bac164 Ignore the old tests 2016-01-22 12:06:29 -05:00
Leo Horie
270b20a2b0 v0.2.2-rc.1 2015-12-20 09:14:28 -05:00
Isiah Meadows
b2faa43f91 Revert "Revert "More performance improvements + etc."" 2015-12-16 11:04:07 -05:00
Isiah Meadows
998704a722 Revert "More performance improvements + etc." 2015-12-16 10:53:27 -05:00
impinball
a7b2294c11 OO-ize DOM builder, improve performance (part 1), add benchmarking suite 2015-12-15 07:07:50 -05:00
impinball
96bcc81022 Lint Mithril main
This changes enough things to merit a new patch release. It changed a few
implementation details in the process, but it's at least much cleaner.

Be ready for every other currently outstanding PR for this file to have merge
conflicts.
2015-11-03 01:32:17 -05:00
impinball
12b8f044f1 Convert tests to Mocha/Chai/Sinon and lint them.
Details:

1. All tests now live in `test`. All test dependencies that aren't from npm live
   in `test-deps`.

2. The QUnit tests are gone, as well as their dependencies. Half of them
   duplicated existing tests, and some of them depended on the real DOM to
   properly test.

3. All tests are now using Mocha to run the tests, Chai for assertions, and
   Sinon and Sinon Chai for testing some callbacks.

4. Tests are run through mocha-phantomjs. If you want to run just the tests,
   run `grunt mocha_phantomjs` or fire up a server in the root and open
   `http://localhost:<port>/test/index.html`, e.g. `python3 -m http.server`.

5. The linter I chose is ESLint. It is relatively easy to configure, but with a
   lot of flexibility. The rules I chose mostly were in tune to the style the
   project was already using. I'm not including a style guide in this commit,
   but one will likely come. You can check out the `.eslintrc` in the root and
   in `test/` for the two configs. The `.eslintignore` includes a TODO for
   `mithril.js` itself targeted at me, in the root.

Other info:

- As a drive-by fix, I fixed line endings on a few of the files.

- I also took care of a few other files and linted them as I went:

  - `Gruntfile.js`
  - `test/input-cursor.html` (was in `tests/`)
  - `test/svg.html` (was in `tests/`)
  - `docs/layout/tools/template-converter.html`
  - `docs/layout/tools/template-converter.js`

  I didn't test the template converter after linting it, because it needs
  further scrutiny to ensure it works with the latest version of Mithril. I
  know the API has changed a little, which is why I want to be sure.

- I simplified the `.travis.yml` file because none of the tests are run directly
  through Node anymore. They are always run in a browser of some kind.

Hopefully, this turned out all right...
2015-10-31 11:07:22 -04:00