Git Product home page Git Product logo

c9.ide.janitorconfig's Introduction

c9.ide.janitorconfig's People

Watchers

 avatar  avatar  avatar  avatar

c9.ide.janitorconfig's Issues

Support various spellings and locations for the `janitor.json` config file

I think it would be valuable to support these following locations:

  • ./janitor.json (directly inside the Cloud9 workspace, so that projects can commit their own janitor.json file in their repositories)
  • ~/janitor.json (fallback)

And also the following alternative spellings for the file name:

  • janitor.json
  • .janitor.json

@nt1m What do you think?

Support simplified `scripts` syntax like in NPM's package.json

Instead of having to write:

{
  "scripts": {
    "node app": {
      "cmd": "node app"
    },
    "npm run watch": {
      "cmd": "npm run watch"
    },
    "npm run lint": {
      "cmd": "npm run lint"
    },
    "npm test": {
      "cmd": "npm test"
    },
    "Send to code review": {
      "cmd": "hub pull-request"
    }
  }
}

It would be nice to be able to simplify this as:

{
  "scripts": {
    "node app": "node app",
    "npm run watch": "npm run watch",
    "npm run lint": "npm run lint",
    "npm test": "npm test",
    "Send to code review": "hub pull-request"
  }
}

Improve IDE configuration

Stolen from: JanitorTechnology/dockerfiles#32 (comment)

We should also add the following user configurations to our Cloud9 workspace type:

  • Code editor font-size: 14 (instead of 12)
  • Default indentation to 2 spaces (instead of 4 spaces)
  • Strip trailing spaces on save by default
  • Maybe move the 80-chars visual indicator to the 100-chars mark?

Improve Run Configurations

  • remove nonofficial run configurations that don't work (e.g. "Run this file")
  • hack the "Run" (or "Run Project") button so that it has a better name and becomes a drop-down (instead of running whatever was last or whatever it feels like running for the current file)
  • for a workflow item like "Build": "./mach build", repeat the command between brackets in the Run Configuration name like so: Build (./mach build) (to be more explicit, and avoid doing that repetition by hand in janitor.json) (EDIT: Done in #8)

Loading Run configurations from janitor.json sometimes fails

When loading a Cloud9 IDE window for a Janitor project, very often the console says that the plugin managed to load its janitor.json file successfully, but the Run button has no run configurations.

Refreshing the IDE sometimes fixes this issue. @nt1m were you able to get a review of the Run config loading mechanism from the Cloud9 SDK community?

Improve Preview configuration

  • For some ports like 8088, we need to open a specific path (not just / or /index.html) like for example /vnc.html (or /ide.html for 8089). I believe we could fix this by supporting a path attribute in our port specification:
"ports": {
  "8088": {
    "label": "VNC",
    "proxy": "https",
    "preview": true,
    "path": "/vnc.html"
  }
}

(Or maybe we could somehow merge preview and path, e.g. "preview": "/vnc.html"?)

  • Additionally, some Run configurations have an attribute like "openPort": "8088":
{
  "Run (dev)": {
    "cmd": "./mach run --dev",
    "openPort": "8088"
  }
}

This attribute doesn't do anything yet, but maybe we could script Cloud9 to open the right preview when this Run configuration is triggered?

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.