mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
fix and update flow to get typechecker running again
This commit is contained in:
committed by
Elliot Lee
parent
cabe029861
commit
a051e6fd71
3
.babelrc
3
.babelrc
@@ -1,4 +1,3 @@
|
|||||||
{
|
{
|
||||||
"presets": ["es2015", "stage-1"],
|
"presets": ["es2015", "stage-1", "flow"]
|
||||||
"plugins": ["syntax-flow", "transform-flow-strip-types"]
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,8 @@
|
|||||||
[ignore]
|
[ignore]
|
||||||
.*/ripple-lib/src/.*
|
|
||||||
.*/ripple-lib/dist/.*
|
.*/ripple-lib/dist/.*
|
||||||
.*/ripple-lib/test/fixtures/.*
|
.*/ripple-lib/test/fixtures/.*
|
||||||
.*/node_modules/flow-bin/.*
|
|
||||||
.*/node_modules/webpack/.*
|
|
||||||
.*/node_modules/babel-core/.*
|
|
||||||
.*/node_modules/babel-eslint/.*
|
|
||||||
.*/node_modules/babel-preset-es2015/.*
|
|
||||||
.*/node_modules/babel-preset-stage-1/.*
|
|
||||||
.*/node_modules/babel-register/.*
|
|
||||||
|
|
||||||
[include]
|
[include]
|
||||||
./node_modules/
|
|
||||||
|
|
||||||
[libs]
|
[libs]
|
||||||
|
|
||||||
|
|||||||
12
package.json
12
package.json
@@ -28,20 +28,20 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"assert-diff": "^1.0.1",
|
"assert-diff": "^1.0.1",
|
||||||
"babel-cli": "^6.4.0",
|
"babel-cli": "^6.26.0",
|
||||||
"babel-core": "^6.4.0",
|
"babel-core": "^6.4.0",
|
||||||
"babel-eslint": "^6.0.4",
|
"babel-eslint": "^6.0.4",
|
||||||
"babel-loader": "^6.2.1",
|
"babel-loader": "^6.2.1",
|
||||||
"babel-plugin-syntax-flow": "^6.3.13",
|
|
||||||
"babel-plugin-transform-flow-strip-types": "^6.4.0",
|
|
||||||
"babel-preset-es2015": "^6.3.13",
|
"babel-preset-es2015": "^6.3.13",
|
||||||
|
"babel-preset-flow": "^6.23.0",
|
||||||
"babel-preset-stage-1": "^6.3.13",
|
"babel-preset-stage-1": "^6.3.13",
|
||||||
"babel-register": "^6.3.13",
|
"babel-babel-register": "^6.3.13",
|
||||||
"coveralls": "^2.13.1",
|
"coveralls": "^2.13.1",
|
||||||
"doctoc": "^0.15.0",
|
"doctoc": "^0.15.0",
|
||||||
"ejs": "^2.3.4",
|
"ejs": "^2.3.4",
|
||||||
"eslint": "^2.9.0",
|
"eslint": "^2.9.0",
|
||||||
"eventemitter2": "^0.4.14",
|
"eventemitter2": "^0.4.14",
|
||||||
|
"flow-bin": "^0.59.0",
|
||||||
"gulp": "^3.8.10",
|
"gulp": "^3.8.10",
|
||||||
"gulp-bump": "^0.1.13",
|
"gulp-bump": "^0.1.13",
|
||||||
"gulp-rename": "^1.2.0",
|
"gulp-rename": "^1.2.0",
|
||||||
@@ -62,8 +62,8 @@
|
|||||||
"build": "gulp",
|
"build": "gulp",
|
||||||
"doctoc": "doctoc docs/index.md --title '# RippleAPI Reference' --github --maxlevel 2",
|
"doctoc": "doctoc docs/index.md --title '# RippleAPI Reference' --github --maxlevel 2",
|
||||||
"docgen": "node --harmony scripts/build_docs.js",
|
"docgen": "node --harmony scripts/build_docs.js",
|
||||||
"clean": "rm -rf dist/npm && rm -rf build/flow",
|
"clean": "rm -rf dist/npm",
|
||||||
"typecheck": "babel --optional runtime --blacklist flow -d build/flow/ src/ && flow check",
|
"typecheck": "flow check",
|
||||||
"compile": "babel -D --optional runtime -d dist/npm/ src/",
|
"compile": "babel -D --optional runtime -d dist/npm/ src/",
|
||||||
"watch": "babel -w -D --optional runtime -d dist/npm/ src/",
|
"watch": "babel -w -D --optional runtime -d dist/npm/ src/",
|
||||||
"compile-with-source-maps": "babel -D --optional runtime -s -t -d dist/npm/ src/",
|
"compile-with-source-maps": "babel -D --optional runtime -s -t -d dist/npm/ src/",
|
||||||
|
|||||||
16
yarn.lock
16
yarn.lock
@@ -274,7 +274,7 @@ aws4@^1.2.1, aws4@^1.6.0:
|
|||||||
version "1.6.0"
|
version "1.6.0"
|
||||||
resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e"
|
resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e"
|
||||||
|
|
||||||
babel-cli@^6.4.0:
|
babel-cli@^6.26.0:
|
||||||
version "6.26.0"
|
version "6.26.0"
|
||||||
resolved "https://registry.yarnpkg.com/babel-cli/-/babel-cli-6.26.0.tgz#502ab54874d7db88ad00b887a06383ce03d002f1"
|
resolved "https://registry.yarnpkg.com/babel-cli/-/babel-cli-6.26.0.tgz#502ab54874d7db88ad00b887a06383ce03d002f1"
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -521,7 +521,7 @@ babel-plugin-syntax-export-extensions@^6.8.0:
|
|||||||
version "6.13.0"
|
version "6.13.0"
|
||||||
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-export-extensions/-/babel-plugin-syntax-export-extensions-6.13.0.tgz#70a1484f0f9089a4e84ad44bac353c95b9b12721"
|
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-export-extensions/-/babel-plugin-syntax-export-extensions-6.13.0.tgz#70a1484f0f9089a4e84ad44bac353c95b9b12721"
|
||||||
|
|
||||||
babel-plugin-syntax-flow@^6.18.0, babel-plugin-syntax-flow@^6.3.13:
|
babel-plugin-syntax-flow@^6.18.0:
|
||||||
version "6.18.0"
|
version "6.18.0"
|
||||||
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz#4c3ab20a2af26aa20cd25995c398c4eb70310c8d"
|
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz#4c3ab20a2af26aa20cd25995c398c4eb70310c8d"
|
||||||
|
|
||||||
@@ -759,7 +759,7 @@ babel-plugin-transform-export-extensions@^6.22.0:
|
|||||||
babel-plugin-syntax-export-extensions "^6.8.0"
|
babel-plugin-syntax-export-extensions "^6.8.0"
|
||||||
babel-runtime "^6.22.0"
|
babel-runtime "^6.22.0"
|
||||||
|
|
||||||
babel-plugin-transform-flow-strip-types@^6.4.0:
|
babel-plugin-transform-flow-strip-types@^6.22.0:
|
||||||
version "6.22.0"
|
version "6.22.0"
|
||||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.22.0.tgz#84cb672935d43714fdc32bce84568d87441cf7cf"
|
resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-strip-types/-/babel-plugin-transform-flow-strip-types-6.22.0.tgz#84cb672935d43714fdc32bce84568d87441cf7cf"
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -823,6 +823,12 @@ babel-preset-es2015@^6.3.13:
|
|||||||
babel-plugin-transform-es2015-unicode-regex "^6.24.1"
|
babel-plugin-transform-es2015-unicode-regex "^6.24.1"
|
||||||
babel-plugin-transform-regenerator "^6.24.1"
|
babel-plugin-transform-regenerator "^6.24.1"
|
||||||
|
|
||||||
|
babel-preset-flow@^6.23.0:
|
||||||
|
version "6.23.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/babel-preset-flow/-/babel-preset-flow-6.23.0.tgz#e71218887085ae9a24b5be4169affb599816c49d"
|
||||||
|
dependencies:
|
||||||
|
babel-plugin-transform-flow-strip-types "^6.22.0"
|
||||||
|
|
||||||
babel-preset-stage-1@^6.3.13:
|
babel-preset-stage-1@^6.3.13:
|
||||||
version "6.24.1"
|
version "6.24.1"
|
||||||
resolved "https://registry.yarnpkg.com/babel-preset-stage-1/-/babel-preset-stage-1-6.24.1.tgz#7692cd7dcd6849907e6ae4a0a85589cfb9e2bfb0"
|
resolved "https://registry.yarnpkg.com/babel-preset-stage-1/-/babel-preset-stage-1-6.24.1.tgz#7692cd7dcd6849907e6ae4a0a85589cfb9e2bfb0"
|
||||||
@@ -1882,6 +1888,10 @@ flat-cache@^1.2.1:
|
|||||||
graceful-fs "^4.1.2"
|
graceful-fs "^4.1.2"
|
||||||
write "^0.2.1"
|
write "^0.2.1"
|
||||||
|
|
||||||
|
flow-bin@^0.59.0:
|
||||||
|
version "0.59.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.59.0.tgz#8c151ee7f09f1deed9bf0b9d1f2e8ab9d470f1bb"
|
||||||
|
|
||||||
for-in@^1.0.1:
|
for-in@^1.0.1:
|
||||||
version "1.0.2"
|
version "1.0.2"
|
||||||
resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
|
resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
|
||||||
|
|||||||
Reference in New Issue
Block a user