add testling
This commit is contained in:
2
Makefile
2
Makefile
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
[](https://ci.testling.com/sebmck/6to5)
|
||||
|
||||
## Modules
|
||||
|
||||
6to5 modules compile straight to CommonJS, because of this various liberties are
|
||||
|
||||
10
package.json
10
package.json
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user