-
Notifications
You must be signed in to change notification settings - Fork 0
/
entry.js
44 lines (34 loc) · 995 Bytes
/
entry.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// mv index.html -> dist/index.html
require('file?name=[name].[ext]!./app/assets/index.html');
// include stylesheets
require("./app/stylesheets/main.scss");
// include font awesome
require("font-awesome/css/font-awesome.css");
// CustomEvent polyfill
require('./app/polyfill/custom_event.js');
// run javascripts
var Session = require("./session.js");
document.getElementById("logo").innerHTML = require("./app/assets/images/beard.svg");
var readme = `GeorgeMac.com
=============
> see: github.com/georgemac/georgemac
## Implemented Commands
- cd: change directory
- ls: list directory
- cat: concatenate and print files (or just spit them out)
- clear: clear the current session
- history: see command history
- open: mini browser for GeorgeMac.com
## Now Supporting
- code highlighting! see output of cat
## Roadmap
1. tab completion
`
var session = new Session('/home/george', {
'home': {
'george': {
'blog': {'welcome.md': ''},
'README.md': readme
}
}
});