Commit graph

73 commits

Author SHA1 Message Date
Leo Horie
63bf9cca56 disable tests that break due to lack of innerHTML api in node 2015-12-20 09:24:04 -05:00
Leo Horie
270b20a2b0 v0.2.2-rc.1 2015-12-20 09:14:28 -05:00
Dan Okkels Brendstrup
101d4523b4 Revert to lowercase NPM package name
As per https://docs.npmjs.com/files/package.json#name as mentioned by @Pumpuli
in #845.
2015-11-13 08:40:08 +01:00
Dan Okkels Brendstrup
0c38f9ec1c Read version number + other info from package.json 2015-11-12 23:53:04 +01: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
Leo Horie
08ebb97ea7 bump version 2015-07-23 23:43:38 -04:00
impinball
986dde6d5f Merge remote-tracking branch 'upstream/next' into speed, unfix "fixed" version
By "fixed", I mean "screwed up, not at all following the correct version
number, and refusing to ask on Gitter what the correct version really is, and
just assuming the wrong version despite hints all over the source screaming
'THIS IS THE CORRECT VERSION, YOU STUPID IDIOT!!!'".

I feel that should be a relatively accurate explanation of the mistake I made
while working on this patch (the specific commit that introduced it was
squashed in rebasing, and another commit was easier than a revert, since the
one that introduced it also entailed a few other things).
2015-07-23 05:26:31 -04:00
impinball
3de01a1554 Clean up tests, resolve style differences, reduce upstream diff
This is in preparation for a PR, to reduce potential for merge conflicts
with either my PR or others', since mine will modify a large amount of
the main file.
2015-07-23 05:25:18 -04:00
impinball
9ae592ee4d Do some local style modifications and profile.
1. Do some temporary style modifications to help make the code more readable
   for profiling (with help from ESLint).
2. Profile the code, and optimize accordingly.
2015-07-23 05:17:02 -04:00
Leo Horie
505d7b930d #686 prevent redraw lock on error 2015-06-23 13:43:54 -04:00
Leo Horie
7478ad948e v0.2.0 publish 2015-04-30 21:53:22 -04:00
Leo Horie
f07fbccbf6 v0.1.34 publish 2015-03-31 12:39:12 -04:00
Leo Horie
5d85a6bb0e v0.1.33 publish 2015-03-30 15:54:43 -04:00
Leo Horie
6ef5ed3d07 v0.1.32 release 2015-03-27 12:02:26 -04:00
Leo Horie
d4099a254b v0.1.31 release 2015-03-26 22:34:33 -04:00
Leo Horie
4b92c821c2 v0.1.30 2015-02-04 22:00:40 -05:00
Leo Horie
05831d98c7 v0.1.29 publish 2015-01-27 21:09:45 -05:00
majgis
4ffd72aee0 README.md is now copied to the output and included for npm publish
README.* was added to the files section of the package.json
instead of README.md because a find/replace operation changes
.md to .html
2015-01-25 11:13:59 -07:00
Leo Horie
15721a089e Merge branch 'jsfmt' into next 2015-01-19 22:59:53 -05:00
Dotan Dimet
68320b7a91 documentation pages should have titles 2015-01-05 00:29:12 +02:00
Leo Horie
ef6ca20a61 version bump 2014-12-31 20:50:17 -05:00
Yusuf Simonson
bc821622a8 Added grunt task for jsfmt 2014-12-18 17:26:35 -05:00
Leo Horie
e9c892cb05 v0.1.27 publish 2014-12-11 10:36:47 -05:00
Leo Horie
3d831a3294 update change log 2014-12-02 13:13:11 -05:00
Leo Horie
e3b6243d7b v0.1.25 2014-11-28 13:45:25 -05:00
Leo Horie
304c5a289b build fix and doc fixes 2014-11-17 21:33:16 -05:00
Leo Horie
8792714c0b fix broken link 2014-11-14 20:47:18 -05:00
Leo Horie
c9bbfb2bbc Merge branch 'next' of github.com:g00fy-/mithril.js into g00fy--next
Conflicts:
	mithril.js
	mithril.min.js
	mithril.min.js.map
2014-11-12 23:03:46 -05:00
Piotr Majewski
b70a3addd3 style: fix missing commas 2014-11-08 07:56:01 +01:00
Leo Horie
2193a753cc change test port 2014-10-31 21:59:14 -04:00
Leo Horie
c980fd9b66 fix order issue when trusted content is mixed with other siblings,
fix js error when child is a random object
make home demo more minimalist
add explanation about modules in guide
2014-10-31 09:31:01 -04:00
Leo Horie
a74145ca27 fix source map files 2014-10-03 16:25:09 -04:00
Leo Horie
349988eaa7 version bump 2014-10-01 22:17:29 -04:00
zzmp
b94f7c2206 add mithril.deps to Gruntfile 2014-09-17 20:39:21 -07:00
Leo Horie
6e48b9e730 version bump 2014-08-26 19:35:09 -04:00
Leo Horie
6fc460bd6a version bump 2014-08-15 18:35:04 -04:00
Leo Horie
6b344003e8 fix array type checks 2014-08-02 16:08:34 -04:00
Jim Witschey
6a1ab4e39f adds saucelabs integration to unit tests 2014-07-25 13:35:29 -04:00
Leo Horie
18593e698a version bump 2014-07-04 23:22:16 -04:00
Leo Horie
b1275cb778 clear diff cache when routing 2014-07-03 22:11:29 -04:00
Leo Horie
42f21181f8 add context unload event listener 2014-06-25 22:45:21 -04:00
Leo Horie
75fa3bd3f2 version bump 2014-06-01 22:10:56 -04:00
Sergey Kirillov
e9e6082aae Added end to end test suite and test for issue #99 2014-05-28 22:23:18 +03:00
Leo Horie
047812df2f version bump 2014-05-27 16:09:51 -04:00
Leo Horie
2b74586660 don't use watch anymore 2014-05-26 22:10:51 -04:00
Sebastian
3df5578e7b Removed trailing spaces 2014-05-25 23:19:52 +02:00
Leo Horie
46565f2e03 allow resolving w/ no value 2014-05-18 19:47:46 -04:00
Leo Horie
d677480f9b add benchmarks page 2014-05-16 09:37:03 -04:00
Leo Horie
e23f69fc4e add typescript file to build script 2014-05-15 22:55:01 -04:00