Commit graph

65 commits

Author SHA1 Message Date
Isiah Meadows
9fab2b8371 Create CONTRIBUTING.md
I added the following to it:

- Bug reporting
- Feature requests
- Contributing guide
- Style guide
2015-11-10 03:22:39 -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
80f43c260b fix file size in docs 2015-09-28 22:26:41 -04:00
Leo Horie
55aedaabbc fix gzip size in docs 2015-07-07 11:41:47 -04:00
Leo Horie
931dbabbcd fix typo 2015-05-03 19:31:05 -04:00
Leo Horie
585f1fe925 clean up markup for tweets 2015-04-22 22:03:12 -04:00
Leo Horie
7127df6e0e show some newer tweets 2015-04-22 21:49:54 -04:00
Leo Horie
f70b4cc01b update size 2015-04-22 21:18:55 -04:00
Leo Horie
e4906706b1 fix template compiler edge cases 2015-04-17 22:09:14 -04:00
Leo Horie
41d440eaa7 add meta description and equalize protocol for twitter widgets 2015-04-14 20:39:49 -04:00
Leo Horie
c7196c897d Merge branch 'next' into components 2015-04-10 20:55:19 -04:00
Leo Horie
51100bf920 link to change log from home 2015-04-10 20:55:09 -04:00
Leo Horie
9e8dc6998d rework api 2015-04-09 22:44:45 -04:00
Leo Horie
d5619d412e changes in the docs: rename modules to components, change idiomatic controller and view usage 2015-04-06 22:41:38 -04:00
Leo Horie
bffc5d2eec change docs wip 2015-04-03 10:32:20 -04:00
Leo Horie
401954b01b Merge branch 'next' into components 2015-03-30 17:30:55 -04:00
Leo Horie
dfab767265 fix package.json 2015-03-30 16:00:24 -04:00
Leo Horie
f7c9558295 Merge branch 'next' into components 2015-03-26 21:53:03 -04:00
Leo Horie
0dcfd59d29 document build/parseQueryString 2015-03-26 21:52:42 -04:00
Leo Horie
0f45d22448 improve docs 2015-03-13 22:52:34 -04:00
Jethro Larson
86d234eb07 Set base line-height to a decent default. 2015-03-03 13:27:06 -08:00
Leo Horie
2fa4632186 fix docs about shouldReplaceHistory 2015-02-09 23:11:20 -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
028425ca08 fix title in homepage 2015-01-20 22:40:37 -05:00
Dotan Dimet
68320b7a91 documentation pages should have titles 2015-01-05 00:29:12 +02:00
Leo Horie
d35c959424 self-host ghbtn for https support 2014-11-17 21:40:39 -05:00
Leo Horie
304c5a289b build fix and doc fixes 2014-11-17 21:33:16 -05:00
Leo Horie
5ed8891db3 doc tweaks 2014-11-12 20:06:24 -05:00
Leo Horie
067f91b465 #308 fix template compiler m->Mithril case 2014-11-07 23:36:50 -05: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
cf3b77c161 docs and macro fix 2014-10-29 09:19:02 -04:00
Leo Horie
98c413b55b #307 fix compiler bugs 2014-10-13 21:22:38 -04:00
Leo Horie
6332a805dc improve docs 2014-10-08 22:32:30 -04:00
Leo Horie
5cc2b0638d #286 fix template compiler case: m("div", []) 2014-10-05 15:53:50 -04:00
Leo Horie
6b88b28305 rebrand blog 2014-09-26 21:43:36 -04:00
zzmp
d3e1a9d988 documented m.deps 2014-09-17 20:39:21 -07:00
Leo Horie
7f62ab4954 don't throw error on comments in template converter 2014-08-12 18:01:11 -04:00
Leo Horie
2161e0ef25 update menu 2014-08-11 23:24:48 -04:00
Leo Horie
4281773df9 redraw strategy 2014-08-11 23:15:53 -04:00
Leo Horie
7295b6e9e9 refactor redraw 2014-07-21 22:08:37 -04:00
Leo Horie
f564844bb9 remove minified stuff from component 2014-07-02 09:24:40 -04:00
Leo Horie
c8ec1022f2 don't use minified file as main file in component.js 2014-06-27 16:42:42 -04:00
Leo Horie
7a32c0ea89 beef up readme and make blog more prominent 2014-06-27 16:07:42 -04:00
Leo Horie
2e6a69af2b tweak homepage 2014-05-27 15:42:00 -04:00
David Niergarth
a80729a179 Add #performance to home page
Also back out whitespace-only change.
2014-05-27 00:19:39 -05:00
Leo Horie
bdcfbde8e0 document new argument in m.route(path) 2014-05-25 23:52:46 -04:00
Leo Horie
38634a0292 document querystring support in routes 2014-05-25 15:37:53 -04:00
Leo Horie
715336d7c5 update tweet in homepage 2014-05-20 22:11:39 -04:00
Leo Horie
d677480f9b add benchmarks page 2014-05-16 09:37:03 -04:00
Leo Horie
917f1e1d6b add social media section to home page 2014-05-15 17:13:16 -04:00