Browserify doesnt seem to require .js extensions anymore

This commit is contained in:
khlieng 2015-01-22 00:32:32 +01:00
parent 43a725c662
commit 83ddce0468
13 changed files with 25 additions and 24 deletions

View File

@ -1,7 +1,7 @@
var Reflux = require('reflux');
var _ = require('lodash');
var socket = require('../socket.js');
var socket = require('../socket');
var channelActions = Reflux.createActions([
'join',

View File

@ -1,6 +1,6 @@
var Reflux = require('reflux');
var socket = require('../socket.js');
var socket = require('../socket');
var messageActions = Reflux.createActions([
'send',

View File

@ -1,6 +1,6 @@
var Reflux = require('reflux');
var socket = require('../socket.js')('/ws');
var socket = require('../socket');
var serverActions = Reflux.createActions([
'connect',

View File

@ -3,9 +3,9 @@ var React = require('react');
var socket = require('./socket');
var util = require('./util');
var App = require('./components/App.jsx');
var tabActions = require('./actions/tab.js');
var serverActions = require('./actions/server.js');
var channelActions = require('./actions/channel.js');
var tabActions = require('./actions/tab');
var serverActions = require('./actions/server');
var channelActions = require('./actions/channel');
var uuid = localStorage.uuid || (localStorage.uuid = util.UUID());
var nick = 'test' + Math.floor(Math.random() * 99999);

View File

@ -1,8 +1,8 @@
var React = require('react');
var Reflux = require('reflux');
var channelStore = require('../stores/channel.js');
var selectedTabStore = require('../stores/selectedTab.js');
var channelStore = require('../stores/channel');
var selectedTabStore = require('../stores/selectedTab');
var ChatTitle = React.createClass({
mixins: [

View File

@ -2,8 +2,8 @@ var React = require('react');
var Reflux = require('reflux');
var _ = require('lodash');
var messageStore = require('../stores/message.js');
var selectedTabStore = require('../stores/selectedTab.js');
var messageStore = require('../stores/message');
var selectedTabStore = require('../stores/selectedTab');
var MessageBox = React.createClass({
mixins: [

View File

@ -1,9 +1,9 @@
var React = require('react');
var Reflux = require('reflux');
var selectedTabStore = require('../stores/selectedTab.js');
var messageActions = require('../actions/message.js');
var channelActions = require('../actions/channel.js');
var selectedTabStore = require('../stores/selectedTab');
var messageActions = require('../actions/message');
var channelActions = require('../actions/channel');
function dispatchCommand(cmd, channel, server) {
var params = cmd.slice(1).split(' ');

View File

@ -2,10 +2,10 @@ var React = require('react');
var Reflux = require('reflux');
var _ = require('lodash');
var serverStore = require('../stores/server.js');
var channelStore = require('../stores/channel.js');
var selectedTabStore = require('../stores/selectedTab.js');
var tabActions = require('../actions/tab.js');
var serverStore = require('../stores/server');
var channelStore = require('../stores/channel');
var selectedTabStore = require('../stores/selectedTab');
var tabActions = require('../actions/tab');
var TabList = React.createClass({
mixins: [

View File

@ -2,8 +2,8 @@ var React = require('react');
var Reflux = require('reflux');
var _ = require('lodash');
var channelStore = require('../stores/channel.js');
var selectedTabStore = require('../stores/selectedTab.js');
var channelStore = require('../stores/channel');
var selectedTabStore = require('../stores/selectedTab');
var UserList = React.createClass({
mixins: [

View File

@ -1,7 +1,7 @@
var Reflux = require('reflux');
var _ = require('lodash');
var actions = require('../actions/channel.js');
var actions = require('../actions/channel');
var channels = {};

View File

@ -1,6 +1,7 @@
var Reflux = require('reflux');
var actions = require('../actions/message.js');
var serverStore = require('../stores/server');
var actions = require('../actions/message');
var messages = {};

View File

@ -1,8 +1,8 @@
var Reflux = require('reflux');
var _ = require('lodash');
var actions = require('../actions/tab.js');
var channelActions = require('../actions/channel.js');
var actions = require('../actions/tab');
var channelActions = require('../actions/channel');
var selectedTab = {};

View File

@ -1,6 +1,6 @@
var Reflux = require('reflux');
var actions = require('../actions/server.js');
var actions = require('../actions/server');
var servers = {};