-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add throw on invalid node; * Update dev-dependencies; * Rewrite tests to use tape; * Remove `bower`, `component`, `duo` support; * Add distribution files to releases; * Update code-style.
- Loading branch information
Showing
18 changed files
with
219 additions
and
490 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 |
---|---|---|
@@ -1,7 +1,4 @@ | ||
build/ | ||
components/ | ||
coverage/ | ||
build.js | ||
example.js | ||
nlcst-to-string.js | ||
nlcst-to-string.min.js |
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
.DS_Store | ||
*.log | ||
build/ | ||
components/ | ||
coverage/ | ||
node_modules/ | ||
build.js | ||
nlcst-to-string.js | ||
nlcst-to-string.min.js |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,9 +1,26 @@ | ||
language: node_js | ||
script: npm run-script test-travis | ||
node_js: | ||
- '0.10' | ||
- '0.11' | ||
- '0.12' | ||
- iojs | ||
sudo: false | ||
after_script: npm install codecov.io && cat ./coverage/lcov.info | codecov | ||
- '4.0' | ||
- '5.0' | ||
- '6.0' | ||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) | ||
deploy: | ||
- provider: npm | ||
email: [email protected] | ||
api_key: | ||
secure: EV/6FQQM4A3Y4FB1BiLEaci8VXj+ZLF7hqIGhhhypZ+ur1mgFLqBtqY/WJit2iOD9xexleuzKlDVc8nsh8ctlA7WYtVdE3RpNVj7JT3AYf3tS0F9+s/aH3Mmup5zZ6qRNhy5hjr5pJFqXswC0BnNFxfDLAmKJYfm2NI5QUtTy40= | ||
on: | ||
tags: true | ||
node: '5.0' | ||
- provider: releases | ||
api_key: | ||
secure: GdojWZH0uCo2DguOuk7Zg2okWRsllUFj1Dr9SYAyDYuqSk8kebGtVFhCVVgqdRtQbeARrH8fFJ3r37/ab/1WImfHjru9R0I18udjELbA3nN1FyVyynlSzBhofBzzBSlUQP3RoC1n4zroUuZWTz3h6PQiCwK2jV74/R2a54scQqQ= | ||
file: | ||
- "nlcst-to-string.js" | ||
- "nlcst-to-string.min.js" | ||
on: | ||
tags: true | ||
node: '6.0' |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
(The MIT License) | ||
|
||
Copyright (c) 2014-2015 Titus Wormer <[email protected]> | ||
Copyright (c) 2014 Titus Wormer <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,16 @@ | ||
// Dependencies: | ||
var toString = require('./index.js'); | ||
|
||
// Stringify: | ||
var node = { | ||
type: 'WordNode', | ||
children: [ | ||
{ type: 'TextNode', value: 'AT' }, | ||
{ type: 'PunctuationNode', value: '&' }, | ||
{ type: 'TextNode', value: 'T' } | ||
] | ||
}; | ||
var value = toString(node); | ||
|
||
// Yields: | ||
console.log('text', value); |
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
Oops, something went wrong.