Code Monkey home page Code Monkey logo

jetpack-for-komodo's Introduction

#Mozilla Addons SDK extension for Komodo

Abstract: An extension for Komodo IDE / Edit to enable users toquickly and easily create, run, test and build Firefox extensions using the new Addons SDK.

Minimum Viable Extension: implement basic commands and expose them via a JS API, a custom menu and a set of default keybindings.

#####Minimum Viable Extension

  • prefs: expose preferences for setting two key variables:
    • Firefox applicaation location
    • Addons SDK location
    • need to unpack and poach Dafi's prefs integration code
  • run: implement cfx run
    • do-able as basic run command
  • test: implement cfx test
    • do-able as basic run command
  • build: implement cfx xpi
    • do-able as basic run command
  • docs: implement cfx docs
    • best implemented as run in new terminal, it's a persitent process.
    • another approach might be to just launch the index.html in a new browser window?
  • default key bindings for these commands?

####Bonus Points / 2.0:

  • codeintel API catalog generation?
    • scrape the docs?
    • todo: pester Todd about the cix command-line build
    • also: the scraping script should generate ctags for vim et al
Project creation:
  • Single argument: project name
    • create extension-safe version ( limit chars, lower-case, etc )
    • create directory with safe name
    • programmatically create project - required
    • in directory, run cfx init
    • bam!
Tasks
  • Simple Macro that creates a new Jetpack project DONE
    • hard-coded paths for cfx, etc
    • fire & forget
  • Prefs for SDK path and Firefox path DONE
    • poached shamelessly from Morekomodo
  • Implement the base commands as an API - 1/2 done
    • init
    • todo: run, test, docs
  • figure out how to best make the functionality available to the user.
    • main methods are init but more importantly test and run
    • key bindings!
    • for now implemented Tools / SDK menu
Known issues
  • poor handling of prefs not being set.
  • Komodo 5 doesn't work

jetpack-for-komodo's People

Stargazers

Jeff Griffiths avatar Davide Ficano avatar Travis Cline avatar

jetpack-for-komodo's Issues

Doesn't work on Windows

Related comment:

http://support.activestate.com/node/6797#comment-17491

"Using Komodo Edit 6.1.1 and Windows 7, I get this error in the console when attempting run or docs:

python: can't open file '\bin\cfx': [Errno 2] No such file or directory

(VIRTUAL_ENV=C:\addon-sdk-1.0 is correct)

If I change the cfx.bat file to: python "C:\addon-sdk-1.0\bin\cfx" %1 %2 %3 %4 %5 %6 %7 %8 %9
then I get error:

cannot find 'package.json' in the current directory or any parent."

Doesn't work on Komodo 5

User reported the Addon doesn't work on Komodo 5; unsure what the problem is but should be looked into? Lot of people may have stopped upgrading when AS changed projects in K6.

Check prefs are set

Need to check if our prefs are set before blindly trying to run commands.

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.