Skip to content

Commit

Permalink
remove babel, switch back to commonjs imports
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed Dec 10, 2016
1 parent 5a01128 commit 074f589
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 1,530 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

24 changes: 12 additions & 12 deletions index.js
@@ -1,21 +1,21 @@
import {dirname} from 'path'
import {exec} from 'child_process'
import events from 'events'
import x11 from 'x11'
import EWMH from 'ewmh'

import {stringToKeys} from './util'
import keys from './lib/keys'
import * as Workspace from './workspace'
import * as Window from './window'
import listen from './srv'
const {dirname} = require('path')
const {exec} = require('child_process')
const events = require('events')
const x11 = require('x11')
const EWMH = require('ewmh')

const {stringToKeys} = require('./util')
const keys = require('./lib/keys')
const Workspace = require('./workspace')
const Window = require('./window')
const listen = require('./srv')

const commandQueue = new events.EventEmitter

const name = 'wm'
const configuration = require('rc')(name)

// todo:
// todo: fix this completely
const keybindings = (() => {
const keybindings = []
for (const binding in configuration.keybindings) {
Expand Down
5 changes: 1 addition & 4 deletions package.json
Expand Up @@ -6,15 +6,12 @@
"author": "chee <chee@snake.dog>",
"license": "GPL",
"dependencies": {
"babel-cli": "^6.18.0",
"babel-preset-latest": "^6.16.0",
"babel-preset-stage-0": "^6.16.0",
"ewmh": "^0.3.0",
"rc": "^1.1.6",
"x11": "^2.2.0"
},
"scripts": {
"start": "babel-node index.js"
"start": "node index.js"
},
"devDependencies": {
"eslint": "^3.12.0"
Expand Down
2 changes: 1 addition & 1 deletion window.js
Expand Up @@ -20,4 +20,4 @@ const focus = window => {
global.X.SetInputFocus(window.id)
}

export {create, show, hide, focus}
module.exports = {create, show, hide, focus}
4 changes: 2 additions & 2 deletions workspace.js
@@ -1,4 +1,4 @@
import * as Window from './window'
const Window = require('./window')

const create = id => ({
id,
Expand Down Expand Up @@ -41,4 +41,4 @@ const contains = (workspace, window) => {
return workspace.windows.some(window => window.id == id)
}

export {create, addWindow, removeWindow, show, hide, contains}
module.exports = {create, addWindow, removeWindow, show, hide, contains}

0 comments on commit 074f589

Please sign in to comment.