Commit graph

41 commits

Author SHA1 Message Date
Leo Horie
89492a4956 modularize bundler and minify scripts 2016-06-23 01:10:30 -04:00
Leo Horie
8594ed3ef1 lintdocs and minify scripts 2016-06-20 09:19:30 -04:00
Leo Horie
ddc430a6d3 fix most gcc warnings 2016-06-03 23:55:31 -04:00
Pat Cavit
8dee570602 Default to always using "beta" tag for rewrite
See https://docs.npmjs.com/files/package.json#publishconfig and
https://docs.npmjs.com/misc/config#tag

This way when `rewrite` starts being published users will need to
install it as `npm install mithril@beta` to get the rewrite. When people
run `npm install mithril` it'll use the default `latest` tag and that
will continue to point to the `0.2.x` branch until the rewrite is fully
ready.
2016-05-31 11:12:57 -07:00
Leo Horie
890d4123db Merge remote-tracking branch 'origin/rewrite' into rewrite
Conflicts:
	package.json
2016-05-19 23:25:20 -04:00
Leo Horie
e104b75364 cover everything 2016-05-19 23:24:36 -04: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
Pat Cavit
724361af6a Filter out util dirs from istanbul coverage reports (#1055) 2016-05-19 10:57:17 -07:00
Pat Cavit
629ba5b62a Add cover command (#1054)
Using istanbul, and also adding a .gitignore so I can be lazier about things when committing.
2016-05-19 10:31:09 -07:00
Leo Horie
3282ef3f77 components, angular dbmon 2016-05-03 23:39:01 -04:00
Leo Horie
e50843f3bc setup CI 2016-04-21 10:19:04 -04:00
Leo Horie
559369016d initial commit (work in progress) 2016-04-20 20:02:37 -04:00
Leo Horie
13fdb60f66 clean slate 2016-04-20 20:01:04 -04:00
Leo Horie
5d2b6ea2b7 v0.2.4 2016-04-20 00:45:42 -04:00
Leo Horie
69cbb09c5f cdnjs spidering wrong thing? 2016-03-22 10:26:31 -04:00
Isiah Meadows
791c94a0b1 Merge pull request #972 from isiahmeadows/test-fix
Remove npm-debug.log, disable failing test.
2016-03-02 19:50:42 -05:00
Leo Horie
501e380825 v0.2.3 2016-03-02 16:10:51 -05: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
Leo Horie
b2972e9934 Merge pull request #907 from isiahmeadows/update
Update dependencies, clean up couple things
2015-12-20 16:40:08 -05:00
Leo Horie
270b20a2b0 v0.2.2-rc.1 2015-12-20 09:14:28 -05:00
impinball
bfa3899ec8 Update dependencies, clean up couple things 2015-12-20 03:07:50 -05:00
impinball
e99ab35e10 Add preversion hook (fixes #827) 2015-12-18 03:01:31 -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
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
Dan Okkels Brendstrup
d20c0a77bb Fix MIT license annotation in package.json
As per https://docs.npmjs.com/files/package.json#license
2015-11-12 21:54:50 +01: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
impinball
5111c75746 Bump npm version
Fixes #740. It really needs it... :(

Also, I fixed some weird indentation going on in that area of the package.json
file (mixed spaces/tabs).
2015-07-27 18:48:08 -04:00
John Markos O'Neill
d4b5ebd90e Install grunt explicitly to stop warnings. 2015-04-15 16:53:58 -07:00
Leo Horie
11c53fd9ee update docs about bleeding edge build via npm 2015-03-30 17:30:31 -04:00
Leo Horie
755f2c4c4b rename package to avoid conflict w/ production package 2015-03-30 16:16:32 -04:00
Leo Horie
242a60b384 expose dev repo for beta testing over npm 2015-03-30 16:13:12 -04:00
Leo Horie
15721a089e Merge branch 'jsfmt' into next 2015-01-19 22:59:53 -05:00
John Markos O'Neill
2ed4f2b38c Adds repository field to package.json.
Fixes name of grunt-jscs.
2015-01-01 23:46:53 -08:00
Yusuf Simonson
bc821622a8 Added grunt task for jsfmt 2014-12-18 17:26:35 -05:00
Pierre-Yves Gerardy
5e78b320ec Add a main script in package.json. 2014-08-03 17:09:57 +02:00
Jim Witschey
6a1ab4e39f adds saucelabs integration to unit tests 2014-07-25 13:35:29 -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
70b2489539 initial release 2014-03-16 22:07:53 -04:00