mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
Node 6 support (#484)
This patch: - introduces a transpiler which substitutes async/await logic with generators. - starts using the transpiler to generate a node6-compatible version of puppeteer - introduces a runtime-check to decide which version of code to use Fixes #316.
This commit is contained in:
committed by
Andrey Lushnikov
parent
46115f9182
commit
9212863b92
10
package.json
10
package.json
@@ -5,18 +5,22 @@
|
||||
"main": "index.js",
|
||||
"repository": "github:GoogleChrome/puppeteer",
|
||||
"engines": {
|
||||
"node": ">=7.10.0"
|
||||
"node": ">=6.4.0"
|
||||
},
|
||||
"scripts": {
|
||||
"unit": "jasmine test/test.js",
|
||||
"debug-unit": "DEBUG_TEST=true node --inspect-brk ./node_modules/.bin/jasmine test/test.js",
|
||||
"test-phantom": "python third_party/phantomjs/test/run-tests.py",
|
||||
"test-doclint": "jasmine utils/doclint/check_public_api/test/test.js && jasmine utils/doclint/preprocessor/test.js",
|
||||
"test": "npm run lint --silent && npm run coverage && npm run test-phantom && npm run test-doclint",
|
||||
"test": "npm run lint --silent && npm run coverage && npm run test-phantom && npm run test-doclint && npm run test-node6",
|
||||
"install": "node install.js",
|
||||
"lint": "([ \"$CI\" = true ] && eslint --quiet -f codeframe . || eslint .) && npm run doc",
|
||||
"doc": "node utils/doclint/cli.js",
|
||||
"coverage": "COVERAGE=true npm run unit"
|
||||
"coverage": "COVERAGE=true npm run unit",
|
||||
"node6": "node utils/node6-transform/index.js",
|
||||
"test-node6": "jasmine utils/node6-transform/test/test.js",
|
||||
"build": "npm run node6",
|
||||
"node6-sanity": "jasmine test/sanity.js"
|
||||
},
|
||||
"author": "The Chromium Authors",
|
||||
"license": "SEE LICENSE IN LICENSE",
|
||||
|
||||
Reference in New Issue
Block a user