Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A .flowconfig file for meteor projects . tested with Meteor 1.6.1
;Flow config for meteor projects.
;example usage:
;$ meteor create my-app
;$ cd my-app
;$ meteor npm install --save-dev flow-bin
;$ < add this file to project as .flowconfig >
;$ meteor
;$ [in your IDE or another console] ./node_modules/.bin/flow check
;NB: make sure the app there is a build (in .meteor/local/build) before running flow check!
; Thanks to this article:
module.name_mapper='^\/\(.*\)$' -> '<PROJECT_ROOT>/\1'
module.name_mapper='^meteor\/\(.*\):\(.*\)$' -> '<PROJECT_ROOT>/.meteor/local/build/programs/server/packages/\1_\2'
module.name_mapper='^meteor\/\(.*\)$' -> '<PROJECT_ROOT>/.meteor/local/build/programs/server/packages/\1'
module.name_mapper='^meteor\/\(.*\)$' -> '<PROJECT_ROOT>/.meteor/local/build/programs/web.browser/packages/\1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment