mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Play with flow type checker
This commit is contained in:
parent
3e50c3394a
commit
af4db15a27
@ -55,6 +55,11 @@ export default (gulp, config) => {
|
|||||||
file.eslint.results[0].filePath =
|
file.eslint.results[0].filePath =
|
||||||
path.relative(process.cwd(), file.path)
|
path.relative(process.cwd(), file.path)
|
||||||
|
|
||||||
|
// const contents = `/* @flow */\n\n${file.contents.toString()}`
|
||||||
|
// const flowJsdoc = require("flow-jsdoc")
|
||||||
|
// const annotatedContents = flowJsdoc(contents)
|
||||||
|
// console.log(annotatedContents)
|
||||||
|
|
||||||
/* Push file to next stage */
|
/* Push file to next stage */
|
||||||
this.push(file)
|
this.push(file)
|
||||||
done()
|
done()
|
||||||
|
7219
material/assets/javascripts/application.js
Normal file
7219
material/assets/javascripts/application.js
Normal file
File diff suppressed because it is too large
Load Diff
1146
material/assets/javascripts/modernizr.js
Normal file
1146
material/assets/javascripts/modernizr.js
Normal file
File diff suppressed because it is too large
Load Diff
1942
material/assets/stylesheets/application.css
Normal file
1942
material/assets/stylesheets/application.css
Normal file
File diff suppressed because it is too large
Load Diff
1056
material/assets/stylesheets/application.palette.css
Normal file
1056
material/assets/stylesheets/application.palette.css
Normal file
File diff suppressed because it is too large
Load Diff
@ -38,6 +38,8 @@
|
|||||||
"babel-eslint": "^7.1.1",
|
"babel-eslint": "^7.1.1",
|
||||||
"babel-loader": "^6.3.1",
|
"babel-loader": "^6.3.1",
|
||||||
"babel-plugin-add-module-exports": "^0.2.1",
|
"babel-plugin-add-module-exports": "^0.2.1",
|
||||||
|
"babel-plugin-syntax-flow": "^6.18.0",
|
||||||
|
"babel-plugin-transform-flow-strip-types": "^6.22.0",
|
||||||
"babel-plugin-transform-react-jsx": "^6.8.0",
|
"babel-plugin-transform-react-jsx": "^6.8.0",
|
||||||
"babel-polyfill": "^6.20.0",
|
"babel-polyfill": "^6.20.0",
|
||||||
"babel-preset-es2015": "^6.22.0",
|
"babel-preset-es2015": "^6.22.0",
|
||||||
@ -50,6 +52,7 @@
|
|||||||
"ecstatic": "^2.1.0",
|
"ecstatic": "^2.1.0",
|
||||||
"eslint": "^3.14.0",
|
"eslint": "^3.14.0",
|
||||||
"fastclick": "^1.0.6",
|
"fastclick": "^1.0.6",
|
||||||
|
"flow-jsdoc": "^0.2.2",
|
||||||
"git-hooks": "^1.1.7",
|
"git-hooks": "^1.1.7",
|
||||||
"gulp": "^3.9.1",
|
"gulp": "^3.9.1",
|
||||||
"gulp-changed": "^2.0.0",
|
"gulp-changed": "^2.0.0",
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
"plugins": [
|
"plugins": [
|
||||||
["transform-react-jsx", {
|
["transform-react-jsx", {
|
||||||
"pragma": "JSX.createElement"
|
"pragma": "JSX.createElement"
|
||||||
}]
|
}],
|
||||||
|
"syntax-flow",
|
||||||
|
"transform-flow-strip-types"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user