Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Empty file modified client/noide.js
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions client/package.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build:core:js": "bin/build-core-js",
"build:css": "bin/build-css",
"watch": "bin/watch",
"build": "npm run build:core:js && npm run build:app:js && npm run build:css",
"build": "npm run build:core:js && npm run build:app:js",
"copy:assets": "bin/copy-assets",
"lint-client": "standard ./client/**/*.js",
"lint-all": "standard",
Expand Down Expand Up @@ -50,7 +50,7 @@
"font-awesome": "^4.5.0",
"incremental-dom": "^0.3.0",
"jquery": "^2.2.1",
"node-sass": "3.4.2",
"node-sass": "4.6.1",
"superviewify": "0.0.9",
"wisk": "0.0.1"
}
Expand Down
10 changes: 9 additions & 1 deletion client/session.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,16 @@ var EditSession = window.ace.require('ace/edit_session').EditSession
var UndoManager = window.ace.require('ace/undomanager').UndoManager
var ModeList = window.ace.require('ace/ext/modelist')

//console.log(ModeList);

function Session (file, contents) {
var editSession = new EditSession(contents, ModeList.getModeForPath(file))
//console.log("file", file)
//console.log("file.path", file['path'])
var mymode = ModeList.getModeForPath(file['path'])
//console.log('mymode', mymode, typeof(mymode))
var mode = mymode.mode
//console.log('mode', mode, typeof(mode))
var editSession = new EditSession(contents, mode)
editSession.setUseWorker(false)
editSession.setTabSize(config.ace.tabSize)
editSession.setUseSoftTabs(config.ace.useSoftTabs)
Expand Down
Empty file modified config/server.json
100644 → 100755
Empty file.
11 changes: 11 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ const config = require('./config')
const sock = require('./server/file-system-watcher')
const appName = require('./package.json').name

for (let i = 2; i<=process.argv.length; i+=2) {
switch(process.argv[i]) {
case "--port":
config.server.port = +process.argv[i+1];
break;
case "--host":
config.server.host = process.argv[i+1];
break;
}
}

Glupe.compose(__dirname, config, function (err, server) {
if (err) {
throw err
Expand Down
Loading