Skip to content

Commit

Permalink
- Cleanup directory.
Browse files Browse the repository at this point in the history
- Used new node_modules folder
- Runtime set NODE_PATH path to current script
  • Loading branch information
uocnb committed Aug 25, 2012
1 parent 4310b26 commit 136eb67
Show file tree
Hide file tree
Showing 32 changed files with 16 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ TermKit.app
*.perspectivev3

# modules managed by npm
node_modules
/node_modules

1 change: 0 additions & 1 deletion HTML/Shared

This file was deleted.

5 changes: 0 additions & 5 deletions HTML/client/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ var tc = termkit.client = function () {
this.onDisconnect = function () {};

// Set up socket with back-end.
// var s = this.socket = new io.Socket({host: 'localhost', port: 2222 });
var s = this.socket = io.connect('http://localhost:2222');
// var s = this.socket = new io.Socket();

// Use shared protocol handler with back-end.
this.protocol = new termkit.protocol(this.socket, this);
Expand All @@ -26,9 +24,6 @@ var tc = termkit.client = function () {
s.on('disconnect', function() {
that.onDisconnect();
});

// Open connection.
// s.connect();
};

tc.prototype = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/**
* This is a CommonJS compatibility test. You can run this file with node.
*/
require.paths.unshift(__dirname + '/../scripts');

var sys = require('sys'),
shSyntaxHighlighter = require('shCore').SyntaxHighlighter,
code = 'test',
Expand Down
2 changes: 1 addition & 1 deletion HTML/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<script type="text/javascript" charset="utf-8" src="container.js"></script>

<script type="text/javascript" charset="utf-8" src="Shared/protocol.js"></script>
<script type="text/javascript" charset="utf-8" src="protocol.js"></script>
<script type="text/javascript" charset="utf-8" src="client/client.js"></script>
<script type="text/javascript" charset="utf-8" src="client/shell.js"></script>

Expand Down
1 change: 1 addition & 0 deletions HTML/protocol.js
2 changes: 0 additions & 2 deletions HTML/termkit.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ var termkit = window.termkit || {};
$(document).ready(function () {

var client = new termkit.client();
window.tc = client;
window.s = client.protocol.connection;
client.onConnect = function () {
var shell = new termkit.client.shell(client, {}, function (shell) {
var view = new termkit.commandView(shell);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Node/router.js → Node/node_modules/router.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 5 additions & 2 deletions Node/shell/shell.js → Node/node_modules/shell/shell.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions Node/shell/worker.js → Node/node_modules/shell/worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions Node/test.js → Node/node_modules/test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
9 changes: 5 additions & 4 deletions Node/nodekit.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
var termkit = {
version: 1,
};
//require.paths.unshift(__dirname);
//require.paths.unshift(__dirname+'/../Shared');
require(__dirname+'/../Shared/protocol');

process.env['NODE_PATH'] = __dirname;

require('protocol');

// Load requirements.
var http = require('http'),
io = require('socket.io')
router = require("router"),
router = require('router'),
connect = require('connect');

// Load config file.
Expand Down
1 change: 0 additions & 1 deletion Node/socket.io-node
Submodule socket.io-node deleted from 054e81
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"name": "termkit",
"description": "a nextgen shellish webapp",
"version": "0.0.0",
"homepage": "http://github.com/floby/TermKit",
"homepage": "http://github.com/tiger2wander/TermKit",
"repository": {
"type": "git",
"url": "git://github.com/Floby/TermKit.git"
"url": "git://github.com/tiger2wander/TermKit.git"
},
"main": "Node/nodekit.js",
"engines": {
Expand Down

0 comments on commit 136eb67

Please sign in to comment.