Giter Club home page Giter Club logo

atom-javascript-refactor's Introduction

Javascript-Refactoring Tools (pré early alpha version)

very ALPHA version

This is a very early version to something that would become very usefull. The main functionality, the "Instrument all function" is not working well with ES6. I didn't have time to make this more stable. If you are using ES5 this command may work well.

All help is appreciated.

Commands

ctrl + l, r Instrument all function (requires debug-print)

Very useful to trace what functions are called in a node.js app. For now, only instrument functions, changing your original code. Then after see the result you can get your original code back with git or UNDO.


ctrl + l, l Insert console.log with selected text

Insert console.log that was inserted with the last command


ctrl + l, c Removes all console.log

Removes all console.log that was inserted with the last command

** 1. Install debug-print to your node project **

$ npm i debug-print

** 2. run your app with DEBUG=* env **

# inline ENV
$ DEBUG=* node your_app_name.js

# or call gulp/grunt/...
$ DEBUG=* (gulp| grunt| anything)

# or export ENV
$ export DEBUG=*
$ node your_app_name.js

developers


clone all

echo '-----------------------------------------------------'
echo 'creating ast folder...'

mkdir ast
cd ast

echo '-----------------------------------------------------'
echo 'Cloning all repos...'

git clone [email protected]:saitodisse/atom-javascript-refactor.git

# clone and link all dependencies
./scripts/clone-and-link

how to install from code

git clone [email protected]:saitodisse/atom-javascript-refactor.git
cd atom-jsRefactoring-tutorial
apm link

dependencies

atom-javascript-refactor's People

Contributors

julio-saito-linx avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.