Commit graph

16 commits

Author SHA1 Message Date
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