Skip to content

How can we refactor our code? #137

@shakeelmohamed

Description

@shakeelmohamed

I made a terrible sin working on zap-cli by copy/pasting some code over to contrib.js.
This is definitely not ideal, and entirely unmaintainable.

What can we do to avoid this?

I'm thinking we could break out utility functions into a new repository, then either

  1. Use git submodules - will we need to use requireJS by doing so? (maybe not if our JS imports are in the right order)
  2. Use bower and npm within that repository (without publishing) so the code can be used on the website, CLI, & Chrome extension

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions