1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-01 05:16:10 +01:00

16 Commits

Author SHA1 Message Date
Jinxuan Zhu
9d4d00e299 Codecov: Only test slate, slate-html-serializer and slate-plain-serializer (#2186)
* Only test slate models

* test slate-plain and slate-html models

* Fix travis
2018-09-19 11:39:02 -07:00
Eric Edem
2a99679753 debt(codecov): disable code coverage in builds (#2183)
Right now code coverage results in a lot of false positives for failing builds. This makes it really difficult to tell at a glance whether PRs are passing / failing something more important like linting or tests.

Disabling for now until we can find a better approach.
2018-09-18 12:10:41 -07:00
Jinxuan Zhu
58c644323f Add coverage test with mocha and codecov (#2037)
* Run mocha test with module alias

* Running test with babel module alias

* Fix model alias

* Fix model alias

* Resolve module alias

* Running test with babel module alias

* Connect to codecov

* add codecov to travis

* stop if yarn test has errors

* Still cannot collect data from slate modules

* Try to check whether it works with codecov

* Move config to nycrc

* Remove nyc require

* Update nyc to use src

* better before_script
2018-08-06 10:31:42 -07:00
Ian Storm Taylor
184722bdbf remove travis ci hack, update upath subdependency 2018-04-27 15:48:16 -07:00
Ian Storm Taylor
eb22ae4c83 fix travis ci 2018-04-27 15:45:50 -07:00
Ian Storm Taylor
ec10ab4d7d fix ci, remove bootstrap command 2018-04-27 15:39:33 -07:00
Zach Schneider
1654a4113c
Standardize on yarn shorthand rather than yarn run (#1599) 2018-02-04 16:25:21 -05:00
Ian Storm Taylor
ace9f47930 change slate to be a monorepo using lerna (#1106)
* init lerna, move files into ./packages

* move test files into ./packages

* more moving around

* fill out package.json files

* fixing imports

* more fixing of imports, and horribleness

* convert examples, fix linting errors

* add documentation

* update docs

* get tests passing

* update travis.yml

* update travis.yml

* update travis.yml

* update test script

* update travis.yml

* update scripts

* try simplifying travis.yml

* ocd stuff

* remove slate-core-test-helpers package

* add package readmes

* update reference docs structure

* refactor slate-simulator into its own package

* add docs for new packages

* update docs

* separate benchmarks into packages, and refactor them
2017-09-11 18:11:45 -07:00
Ian Storm Taylor
6ab686ae77 Refactor benchmarks (#675)
* first stab

* refactor to nanobench

* refactor to matcha

* use hand-rolled comparison logic, ugh

* update threshold

* remove unused dependencies

* remove benchmarks from travis ci
2017-03-21 17:38:39 -07:00
Soreine
580cb24623 Remove lint from npm run perf 2016-11-03 10:34:52 +01:00
Samy Pessé
42b5e893a3 Use different build for test/lint/benchmarks 2016-11-01 15:20:04 +01:00
Samy Pessé
37d99e0edb Lint after running tests and benchmarks 2016-11-01 15:02:07 +01:00
Nicolas Gaborit
f1a5d6f3b4 Add benchmarks (#368)
* Add script for benchmark

* Add error handling

* Rename folder to perf/benchmarks

* Add README

* Avoid memoization between benchmark runs

* Handle multiple benchmark. Add setup to benchmarks

* Run benchmarks through Travis

* Add command line options for JSON output

* Add export to JSON, and comparison with reference

* Improve serialize and fix results display

* Add perf/ to .npmignore

* Print error message

* Create normal example for normalize

* Add normalize-document wide and deep

* Add split-block normal, deep and wide

* Add delete-backward benchmarks

* Fix too much newlines

* Use microtime for better results maybe?

* Print number of runs

* Add minSamples options for better accuracy

* Use babel-node to launch benchmarks

* Use jsdom-global instead of mocha-jsdom (deprecated)

* Add rendering benchmark example

* Fix jsdom usage.

* Use JSX because we can

* Only use on('cycle') that is called even on error

* Example of successive rendering benchmark

* Rename README, and explain how to add a benchmark

* Add C++11 to Travis to install microtime

* Update Readme.md # Understanding the results

* Try to fix Travis build with microtime

* Travis: use before_install

Instead of overwriting install

* Forgot to remove mocha-jsdom import

Thanks node_modules...

* Add jsdom as devDependency

(required as peer dependency by jsdom-global)

* Add --only option to run only a specific benchmark

* Print name onStart rather than at end
2016-10-24 15:06:17 -07:00
Ian Storm Taylor
38eccfb436 switch from makefile to npm scripts, closes #144 2016-07-21 01:59:44 -07:00
Ian Storm Taylor
09c98128b9 update travis ci config 2016-07-15 10:01:38 -07:00
Ian Storm Taylor
567884c9f2 first commit 2016-06-15 12:07:12 -07:00