-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING: Support only node 6 and 7. Updated CI config
The introduction of source-locators breaks compatibility with node-versions below 6, because the package 'handlebars-source-locators' uses language features that are only available in node 6. In addition, this commit introduces minor changes in the Travis- configuration: - "standard" is now a dev-dependency to enable controlled updates through Greenkeeper - "thougth -d up-to-date" is run in Travis-CI to make sure the documentation is up-to-date - Examples are not executed with a custom `console.log`-function that uses "json-stable-stringify" to create a stable output. This has been done because "`"thought up-to-date" compares the checked-in documentation to the documentation that would be generated right now. This requires the output of examples to be stable. - Reduce load on traffic by executing Thought and Standard in their own build job (and not for each node version) - Add caching-options to .travis.yml - Run standard as precommit hook rathern than pre-push, because the check then always refers to the active branch. - Run "standard --fix" on precommit rather than just "standard", because it is require most of the time, when "standard" fails.
- Loading branch information
Showing
5 changed files
with
39 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// For the examples, make sure that the output is stable | ||
var consoleLog = console.log | ||
var stringify = require('json-stable-stringify') | ||
|
||
console.log = function () { | ||
consoleLog.apply(this, Array.prototype.map.call( | ||
arguments, (arg) => JSON.parse(stringify(arg, { space: 2 })) | ||
)) | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters