Commit graph

40 commits

Author SHA1 Message Date
sreekanth370
1779049296 added power support 2022-02-20 14:15:17 +01:00
Isiah Meadows
d4551f49f5
Add streams to releases again, include minified bundle, drop in… (#2539)
* Minify stream, add stream stuff to releases again

* Kill off a lot of tech debt, drop internal utilities from npm

1. Kill `module/`, internalize `bundler/`, privatize `test-utils/`

We've been telling people to move elsewhere from these for a while, and
it's about time we just pull the plug here and finally remove them.

- We officially removed the bundler from the public API in v2.0, and
  that was the only one of these that was ever publicly documented.
  Usage should be low enough by now it shouldn't break anyone- I'm not
  seeing bundler bugs being reported anymore, either.
- The `module/` utility was so narrow and caveat-filled that I'm not
  sure anyone really used it (even us core Mithril devs never really
  used it), and we only had it documented in the repo folder it lived
  in. I think only one bug was ever filed, and it's because it somehow
  ended up completely non-functional without any of us realizing it.
- The test utilities were meant to be internal from day 1, but people
  started using it despite us core developers constantly telling people
  to look elsewhere and even the docs recommending specific alternatives
  without mention of our internal mocks. (Now if people would RTFM,
  that'd be nice...)

2. Add dedicated HTML test files to verify ospec and the promise
   polyfill, and ensure the promise tests are in pure ES5.

These are made specially for those and should be much easier to just run
now.

3. Fix the benchmark script to use the real DOM in browsers and to not
   require as many dependencies to create. Also, tweak them to be much
   more effective and precise on what's being tested.

Previously, it was rendering to the HTML file itself, while now it's
rendering to the `body`. This means in browsers, it's triggering layout
and everything, benchmarking how well Mithril optimizes for style and
layout recalcs, too. It also puts some pressure on the hyperscript
parser attribute application, so that can be noticed as well.

* Update dependencies
2019-10-03 04:58:14 -04:00
Isiah Meadows
48e7fd1711
Refactor scripts (#2465)
* Refactor all kinds of scripts

* Update docs to ensure linter passes
2019-07-27 15:12:49 -04:00
Isiah Meadows
b580e241c8 Prepare for v2, s/markup/html/g in code blocks 2019-07-23 16:42:54 -04:00
Isiah Meadows
b17b00e9eb
Drop ESM support (#2366)
* Drop ESM support

* Add `"unpkg"` field
2019-05-29 09:24:10 -04:00
Isiah Meadows
0707de5867
Swap out keys so they use mine (#2393) 2019-03-09 02:04:30 -05:00
Isiah Meadows
e068bd421c Fix a couple missing files [skip ci]
Why does adding files have to be such a pain...?
2018-12-06 00:46:00 -05:00
Daniel Loomer
bcc6003bf3 make gandalf run build-esm fixes #2325 (#2326) 2018-12-04 12:20:28 -05:00
Isiah Meadows
b0030047a7 Update Travis script [skip ci]
- Update to use my API key
- Don't try to auto-publish pre-releases
2018-11-07 13:21:09 -05:00
Pierre-Yves Gérardy
4922912bbb [chore] remove Danger for now 2018-05-16 01:09:49 +02:00
Pat Cavit
45b69d4aca chore: run eslint --fix against commits (#1912) 2017-07-22 13:12:01 -07:00
Pat Cavit
bee11087af test: enable danger & tweak messaging 2017-07-21 23:19:08 -07:00
Pat Cavit
482f0e71b9 docs: readme rework (#1898) 2017-07-12 20:34:45 -07:00
Pierre-Yves Gérardy
0cd151b08a Merge pull request #1896 from tivac/travis-deps
Don't add travis-only deps to package.json
2017-07-12 18:09:26 +02:00
Pat Cavit
2182a629b2 chore: remove unnecessary branch fields (#1897) 2017-07-11 23:38:27 -07:00
Pat Cavit
57471ddcff chore: don't add travis-only deps to package.json
`npm@5` changed to save-by-default, which screwed up the plan of keeping travis-only deps out of `package.json`.

Fixes #1894
2017-07-11 22:15:27 -07:00
Pat Cavit
5660637e30 docs: new repo refs and build tweaks 2017-05-02 13:12:00 -07:00
Pat Cavit
35bcec12cd chore: better commit message 2017-03-24 16:06:52 -07:00
Pat Cavit
a4f385a2bd chore: gh-pages needs git values set 2017-03-24 16:00:41 -07:00
Pat Cavit
d151f03a56 chore: fix up some travis failures 2017-03-24 15:53:02 -07:00
Pat Cavit
2d03dc5dad feat: partial integrate of release changes 2017-03-24 14:41:22 -07:00
Pat Cavit
d6a00831a0 docs: Document release process & reformat .travis.yml (#1541)
* style: re-format travis config for readability

* docs: document npm release process

Still needs GitHub release/change-log steps (I've never done it though)
2017-01-14 21:26:17 -08:00
Pat Cavit
59dfbf0afc refactor: multi-line things in bash are bonkers 2017-01-13 20:46:23 -08:00
Pat Cavit
8e72929f00 refactor: Attempt to silence a travis complaint 2017-01-13 20:42:04 -08:00
Pat Cavit
6c5ee2dafe refactor: also restrict submission to lhorie's repo 2017-01-13 20:37:49 -08:00
Pat Cavit
c7913f20a4 refactor: invert travis check, early-out blows up
Not running within a script, so `exit 0` stops all processing which is
**NOT HELPFUL**.
2017-01-13 20:34:44 -08:00
Pat Cavit
3d379e0adb refactor: tags & branches are incompatible
So this would never actually publish, yikes.
2017-01-13 20:17:24 -08:00
Pat Cavit
74c6b3e97b refactor: Use Travis for npm publishing (#1538) 2017-01-13 20:08:36 -08:00
Pat Cavit
9406c905c0 Travis should lint & bundle before every build (#1441)
Linting doesn't break builds though, because @lhorie doesn't want that.
2016-11-30 11:51:10 -08:00
Pat Cavit
4f8dc68426 Improve travis commit message slightly (#1218) 2016-08-04 22:38:20 -07:00
Pat Cavit
56fbda9670 Move travis-scripts to be build-server only (#1215)
* Move travis-scripts to be build-server only
* Fix up conditional logic
2016-08-04 11:24:32 -07:00
Pat Cavit
2e70ca01f8 Set up repo for travis commits (#1210) 2016-08-04 09:58:28 -07:00
impinball
b4fb21475c Add editorconfig, resolve differences
This includes newlines, tabs, among other things.
2016-06-18 03:22:12 -04:00
Leo Horie
e50843f3bc setup CI 2016-04-21 10:19:04 -04:00
Leo Horie
13fdb60f66 clean slate 2016-04-20 20:01:04 -04: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
philtay
7278e0ded5 Test against Node.js 0.12 and 4.1 2015-10-18 01:24:33 +02:00
Casey Webb
b542bdad3a Use modern TravisCI platform
@see http://docs.travis-ci.com/user/migrating-from-legacy/?utm_source=legacy-notice&utm_medium=banner&utm_campaign=legacy-upgrade
2015-10-10 11:04:22 -04:00
Sergey Kirillov
29eb6128fe Updated Travis CI config to run e2e tests 2014-05-28 23:46:09 +03:00
Eirik S. Morland
a8d6f529d5 Make tests throw exception, add travis-ci integration.
Relates to #23.
2014-03-23 08:42:15 +01:00