How to setup up development environment for ionic2?

I want to do some hacking code (for example: override some methods) for ionic2, but currently I just dirty edit the js file in the @ioinc or ionic-angular folder in node_modules. I think it is not standard step for that, can anyone give me tutorial for that. really thx.

I’ve found how to contribute to ionic framework