janitortechnology / c9.ide.janitorconfig Goto Github PK
View Code? Open in Web Editor NEWPlugin that reads a janitor.json file and sets up c9 accordingly
Plugin that reads a janitor.json file and sets up c9 accordingly
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?
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"
}
}
When I spawn a Janitor container on https://janitor.technology I see that the c9.ide.janitorconfig
plugin is loaded, and it says it has loaded all janitor.json
scripts, but the Run
button still has no run configurations associated to it:
Original issue: JanitorTechnology/janitor#138
Stolen from: JanitorTechnology/dockerfiles#32 (comment)
We should also add the following user configurations to our Cloud9 workspace type:
"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)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?
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"
?)
"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?
[c9.ide.janitorconfig] Failed to parse or load janitor.json
ReferenceError: script is not defined
Stack trace:
loadSettings@https://pianosa.janitor.technology/static/standalone/config/workspace-janitor.js:1542:21
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.