GithubHelp home page GithubHelp logo

alihalabyah / amok Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amokjs/amok

0.0 2.0 0.0 301 KB

No Reload, Live Editing for JavaScript

Home Page: http://amokjs.com/

License: MIT License

JavaScript 100.00%

amok's Introduction

Amok(1)

tips chat npm

Synopsis

amok [options] <script>

Installation

npm install amok -g

Description

Amok standalone command line tool for rapid prototyping and development of JavaScript applications.

It monitors changes in the file system. As soon as you save a file, it is then preprocessed, compiled and bundled as needed, the code is then refreshed in the client while it is running without restarting or reloading the client.

This re-compilation is done through a remote debugging session, which leverages the re-compilation capabilities built into the runtime itself. Doing re-compilation has several advantages over reloading and hot replacement, application state is kept, no side effects are executed, and there is no code that cannot be edited live, including anonymous closures.

It also has a zero configuration http development server for developing front end applications, this server will automatically generate an appropriate index.html file if one is not found.

Additional features include an interactive mode (read–eval–print loop) and console redirection.

Options

-h, --help
  output usage information

-V, --version
  output the version number

--host <HOST>
  specify http host

--port <PORT>
  specify http port

--debugger-host <HOST>
  specify debugger host

--debugger-port <PORT>
  specify debugger port

-i, --interactive
  enable interactive mode

--client <ID | CMD>
  specify the client to spawn

--compiler <ID | CMD>
  specify the compiler to spawn

-v, --verbose
  enable verbose logging mode

You must have a client already listening on the remote debugging port when launching, or specified via the client option.

Optionally a compiler may be specified to process script sources via the compiler option, Any extra arguments and options following the option parsing terminator --, will be passed as extra options to the compiler. The specified compiler must have its executable available via PATH.

Example

  1. git clone https://gist.github.com/d58c3eecb72ba3dd0846.git examples
  2. cd examples
  3. amok --client chrome canvas.js

Webpack

amok --client chrome --compiler webpack canvas.js

Browserify

amok --client chrome --compiler browserify canvas.js

Babel

amok --client chrome --compiler babel canvas.js

TypeScript

amok --client chrome --compiler typescript canvas.ts

CoffeeScript

amok --client chrome --compiler coffeescript canvas.coffee

amok's People

Contributors

barneycarroll avatar lynnaloo avatar nnodot 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.