add testling

This commit is contained in:
Sebastian McKenzie
2014-10-09 16:46:02 +11:00
parent 5b1ae286ce
commit 732d4836d9
3 changed files with 16 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ test-travis:
test-browser:
make build
node bin/generate-browser-test >dist/6to5-test.js
open test/browser/index.html
test -n "`which open`" && open test/browser/index.html
build:
mkdir -p dist

View File

@@ -23,7 +23,7 @@
**6to5** turns ES6 code into vanilla ES5, so you can use ES6 features **today.**
- **Fast** - no redundant code added so your compiled code is as fast as possible.
- **Extensible** - with a large range of [plugins](#plugins) and browser support.
- **Extensible** - with a large range of [plugins](#plugins) and **browser support**.
- **Lossless** - **source map support** so you can debug your compiled code with ease.
- **Compact** - maps directly to the equivalent ES5 with **no runtime**.
- **Concise** - does not pollute scope with unnecessary variables.
@@ -184,10 +184,14 @@ global `to5`.
to5("class Test {}").code;
```
#### Test
To test 6to5 in your browser run:
$ make test-browser
[![Testling](https://ci.testling.com/sebmck/6to5.png)](https://ci.testling.com/sebmck/6to5)
## Modules
6to5 modules compile straight to CommonJS, because of this various liberties are

View File

@@ -36,6 +36,16 @@
"bench": "make bench",
"test": "make test"
},
"testling": {
"harness": "mocha-tdd",
"preprocess": "make test-browser",
"html": "test/browser/index.html",
"browsers": [
"ie/8..latest",
"chrome/latest",
"firefox/latest"
]
},
"dependencies": {
"ast-types": "0.5.0",
"commander": "2.3.0",