Upgrade babel to 6.4.0, fail gulp builds on webpack errors
This commit is contained in:
parent
47dd4f51cb
commit
d7c5d0f9cd
@ -69,7 +69,7 @@ func bundle_css_gz() (*asset, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
info := bindata_file_info{name: "bundle.css.gz", size: 1706, mode: os.FileMode(436), modTime: time.Unix(1452019133, 0)}
|
info := bindata_file_info{name: "bundle.css.gz", size: 1706, mode: os.FileMode(436), modTime: time.Unix(1452122792, 0)}
|
||||||
a := &asset{bytes: bytes, info: info}
|
a := &asset{bytes: bytes, info: info}
|
||||||
return a, nil
|
return a, nil
|
||||||
}
|
}
|
||||||
@ -89,7 +89,7 @@ func bundle_js_gz() (*asset, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
info := bindata_file_info{name: "bundle.js.gz", size: 114110, mode: os.FileMode(436), modTime: time.Unix(1452019133, 0)}
|
info := bindata_file_info{name: "bundle.js.gz", size: 114110, mode: os.FileMode(436), modTime: time.Unix(1452122793, 0)}
|
||||||
a := &asset{bytes: bytes, info: info}
|
a := &asset{bytes: bytes, info: info}
|
||||||
return a, nil
|
return a, nil
|
||||||
}
|
}
|
||||||
@ -109,7 +109,7 @@ func config_default_toml() (*asset, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
info := bindata_file_info{name: "config.default.toml", size: 981, mode: os.FileMode(436), modTime: time.Unix(1452019112, 0)}
|
info := bindata_file_info{name: "config.default.toml", size: 981, mode: os.FileMode(436), modTime: time.Unix(1452122765, 0)}
|
||||||
a := &asset{bytes: bytes, info: info}
|
a := &asset{bytes: bytes, info: info}
|
||||||
return a, nil
|
return a, nil
|
||||||
}
|
}
|
||||||
@ -129,7 +129,7 @@ func font_fontello_eot_gz() (*asset, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
info := bindata_file_info{name: "font/fontello.eot.gz", size: 3543, mode: os.FileMode(436), modTime: time.Unix(1452019133, 0)}
|
info := bindata_file_info{name: "font/fontello.eot.gz", size: 3543, mode: os.FileMode(436), modTime: time.Unix(1452122793, 0)}
|
||||||
a := &asset{bytes: bytes, info: info}
|
a := &asset{bytes: bytes, info: info}
|
||||||
return a, nil
|
return a, nil
|
||||||
}
|
}
|
||||||
@ -149,7 +149,7 @@ func font_fontello_svg_gz() (*asset, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
info := bindata_file_info{name: "font/fontello.svg.gz", size: 1707, mode: os.FileMode(436), modTime: time.Unix(1452019133, 0)}
|
info := bindata_file_info{name: "font/fontello.svg.gz", size: 1707, mode: os.FileMode(436), modTime: time.Unix(1452122793, 0)}
|
||||||
a := &asset{bytes: bytes, info: info}
|
a := &asset{bytes: bytes, info: info}
|
||||||
return a, nil
|
return a, nil
|
||||||
}
|
}
|
||||||
@ -169,7 +169,7 @@ func font_fontello_ttf_gz() (*asset, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
info := bindata_file_info{name: "font/fontello.ttf.gz", size: 3490, mode: os.FileMode(436), modTime: time.Unix(1452019133, 0)}
|
info := bindata_file_info{name: "font/fontello.ttf.gz", size: 3490, mode: os.FileMode(436), modTime: time.Unix(1452122793, 0)}
|
||||||
a := &asset{bytes: bytes, info: info}
|
a := &asset{bytes: bytes, info: info}
|
||||||
return a, nil
|
return a, nil
|
||||||
}
|
}
|
||||||
@ -189,7 +189,7 @@ func font_fontello_woff_gz() (*asset, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
info := bindata_file_info{name: "font/fontello.woff.gz", size: 3701, mode: os.FileMode(436), modTime: time.Unix(1452019133, 0)}
|
info := bindata_file_info{name: "font/fontello.woff.gz", size: 3701, mode: os.FileMode(436), modTime: time.Unix(1452122793, 0)}
|
||||||
a := &asset{bytes: bytes, info: info}
|
a := &asset{bytes: bytes, info: info}
|
||||||
return a, nil
|
return a, nil
|
||||||
}
|
}
|
||||||
@ -209,7 +209,7 @@ func index_html_gz() (*asset, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
info := bindata_file_info{name: "index.html.gz", size: 252, mode: os.FileMode(436), modTime: time.Unix(1452019133, 0)}
|
info := bindata_file_info{name: "index.html.gz", size: 252, mode: os.FileMode(436), modTime: time.Unix(1452122793, 0)}
|
||||||
a := &asset{bytes: bytes, info: info}
|
a := &asset{bytes: bytes, info: info}
|
||||||
return a, nil
|
return a, nil
|
||||||
}
|
}
|
||||||
|
@ -41,6 +41,9 @@ gulp.task('js', function(cb) {
|
|||||||
gutil.log('[webpack]', stats.toString({
|
gutil.log('[webpack]', stats.toString({
|
||||||
colors: true
|
colors: true
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
if (stats.hasErrors()) process.exit(1);
|
||||||
|
|
||||||
cb();
|
cb();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-core": "^6.3.26",
|
"babel-core": "^6.4.0",
|
||||||
"babel-eslint": "^5.0.0-beta6",
|
"babel-eslint": "^5.0.0-beta6",
|
||||||
"babel-loader": "^6.2.1",
|
"babel-loader": "^6.2.1",
|
||||||
"babel-plugin-react-transform": "^2.0.0",
|
"babel-plugin-react-transform": "^2.0.0",
|
||||||
@ -13,7 +13,7 @@
|
|||||||
"babel-preset-react": "^6.3.13",
|
"babel-preset-react": "^6.3.13",
|
||||||
"babel-preset-stage-0": "^6.3.13",
|
"babel-preset-stage-0": "^6.3.13",
|
||||||
"eslint": "^1.10.3",
|
"eslint": "^1.10.3",
|
||||||
"eslint-config-airbnb": "^3.0.0",
|
"eslint-config-airbnb": "^3.0.1",
|
||||||
"eslint-loader": "^1.2.0",
|
"eslint-loader": "^1.2.0",
|
||||||
"eslint-plugin-react": "^3.14.0",
|
"eslint-plugin-react": "^3.14.0",
|
||||||
"express": "^4.13.3",
|
"express": "^4.13.3",
|
||||||
@ -31,7 +31,7 @@
|
|||||||
"redux-devtools": "^3.0.1",
|
"redux-devtools": "^3.0.1",
|
||||||
"redux-devtools-dock-monitor": "^1.0.1",
|
"redux-devtools-dock-monitor": "^1.0.1",
|
||||||
"redux-devtools-log-monitor": "^1.0.1",
|
"redux-devtools-log-monitor": "^1.0.1",
|
||||||
"webpack": "^1.12.9",
|
"webpack": "^1.12.10",
|
||||||
"webpack-dev-middleware": "^1.4.0",
|
"webpack-dev-middleware": "^1.4.0",
|
||||||
"webpack-hot-middleware": "^2.6.0"
|
"webpack-hot-middleware": "^2.6.0"
|
||||||
},
|
},
|
||||||
|
@ -68,7 +68,7 @@ export function setNick(nick, server) {
|
|||||||
socket: {
|
socket: {
|
||||||
type: 'nick',
|
type: 'nick',
|
||||||
data: {
|
data: {
|
||||||
'new': nick,
|
new: nick,
|
||||||
server
|
server
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ export default class ChatTitle extends Component {
|
|||||||
} else {
|
} else {
|
||||||
disconnect(tab.server);
|
disconnect(tab.server);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { title, tab, channel, toggleSearch } = this.props;
|
const { title, tab, channel, toggleSearch } = this.props;
|
||||||
|
@ -8,7 +8,7 @@ import MessageLine from './MessageLine';
|
|||||||
export default class MessageBox extends Component {
|
export default class MessageBox extends Component {
|
||||||
state = {
|
state = {
|
||||||
height: window.innerHeight - 100
|
height: window.innerHeight - 100
|
||||||
}
|
};
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
this.updateWidth();
|
this.updateWidth();
|
||||||
@ -43,12 +43,12 @@ export default class MessageBox extends Component {
|
|||||||
setWrapWidth(width);
|
setWrapWidth(width);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
handleResize = () => {
|
handleResize = () => {
|
||||||
this.updateWidth();
|
this.updateWidth();
|
||||||
this.setState({ height: window.innerHeight - 100 });
|
this.setState({ height: window.innerHeight - 100 });
|
||||||
}
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { tab, messages, select, openPrivateChat } = this.props;
|
const { tab, messages, select, openPrivateChat } = this.props;
|
||||||
|
@ -12,7 +12,7 @@ export default class MessageHeader extends Component {
|
|||||||
|
|
||||||
openPrivateChat(message.server, message.from);
|
openPrivateChat(message.server, message.from);
|
||||||
select(message.server, message.from, true);
|
select(message.server, message.from, true);
|
||||||
}
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { message } = this.props;
|
const { message } = this.props;
|
||||||
|
@ -5,7 +5,7 @@ import pure from 'pure-render-decorator';
|
|||||||
export default class MessageInput extends Component {
|
export default class MessageInput extends Component {
|
||||||
state = {
|
state = {
|
||||||
value: ''
|
value: ''
|
||||||
}
|
};
|
||||||
|
|
||||||
handleKey = e => {
|
handleKey = e => {
|
||||||
const { tab, runCommand, sendMessage, addInputHistory, incrementInputHistory,
|
const { tab, runCommand, sendMessage, addInputHistory, incrementInputHistory,
|
||||||
@ -34,11 +34,11 @@ export default class MessageInput extends Component {
|
|||||||
this.setState({ value: e.target.value });
|
this.setState({ value: e.target.value });
|
||||||
resetInputHistory();
|
resetInputHistory();
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
handleChange = e => {
|
handleChange = e => {
|
||||||
this.setState({ value: e.target.value });
|
this.setState({ value: e.target.value });
|
||||||
}
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
|
@ -5,7 +5,7 @@ import { toggleMenu } from '../actions/tab';
|
|||||||
|
|
||||||
@pure
|
@pure
|
||||||
class Navicon extends Component {
|
class Navicon extends Component {
|
||||||
handleClick = () => this.props.dispatch(toggleMenu())
|
handleClick = () => this.props.dispatch(toggleMenu());
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
|
@ -10,7 +10,7 @@ export default class Search extends Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
handleSearch = e => this.props.onSearch(e.target.value)
|
handleSearch = e => this.props.onSearch(e.target.value);
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { search } = this.props;
|
const { search } = this.props;
|
||||||
|
@ -7,17 +7,17 @@ export default class TabList extends Component {
|
|||||||
handleTabClick = (server, target) => {
|
handleTabClick = (server, target) => {
|
||||||
this.props.select(server, target, target && target.charAt(0) !== '#');
|
this.props.select(server, target, target && target.charAt(0) !== '#');
|
||||||
this.props.hideMenu();
|
this.props.hideMenu();
|
||||||
}
|
};
|
||||||
|
|
||||||
handleConnectClick = () => {
|
handleConnectClick = () => {
|
||||||
this.props.pushPath('/connect');
|
this.props.pushPath('/connect');
|
||||||
this.props.hideMenu();
|
this.props.hideMenu();
|
||||||
}
|
};
|
||||||
|
|
||||||
handleSettingsClick = () => {
|
handleSettingsClick = () => {
|
||||||
this.props.pushPath('/settings');
|
this.props.pushPath('/settings');
|
||||||
this.props.hideMenu();
|
this.props.hideMenu();
|
||||||
}
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { channels, servers, privateChats, showMenu, selected } = this.props;
|
const { channels, servers, privateChats, showMenu, selected } = this.props;
|
||||||
|
@ -6,7 +6,7 @@ export default class TabListItem extends Component {
|
|||||||
handleClick = () => {
|
handleClick = () => {
|
||||||
const { server, target, onClick } = this.props;
|
const { server, target, onClick } = this.props;
|
||||||
onClick(server, target);
|
onClick(server, target);
|
||||||
}
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { target, content, selected } = this.props;
|
const { target, content, selected } = this.props;
|
||||||
|
@ -7,7 +7,7 @@ import UserListItem from './UserListItem';
|
|||||||
export default class UserList extends Component {
|
export default class UserList extends Component {
|
||||||
state = {
|
state = {
|
||||||
height: window.innerHeight - 100
|
height: window.innerHeight - 100
|
||||||
}
|
};
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
window.addEventListener('resize', this.handleResize);
|
window.addEventListener('resize', this.handleResize);
|
||||||
@ -19,7 +19,7 @@ export default class UserList extends Component {
|
|||||||
|
|
||||||
handleResize = () => {
|
handleResize = () => {
|
||||||
this.setState({ height: window.innerHeight - 100 });
|
this.setState({ height: window.innerHeight - 100 });
|
||||||
}
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { tab, openPrivateChat, select } = this.props;
|
const { tab, openPrivateChat, select } = this.props;
|
||||||
|
@ -8,7 +8,7 @@ export default class UserListItem extends Component {
|
|||||||
|
|
||||||
openPrivateChat(tab.server, user.nick);
|
openPrivateChat(tab.server, user.nick);
|
||||||
select(tab.server, user.nick, true);
|
select(tab.server, user.nick, true);
|
||||||
}
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return <p onClick={this.handleClick}>{this.props.user.renderName}</p>;
|
return <p onClick={this.handleClick}>{this.props.user.renderName}</p>;
|
||||||
|
@ -60,7 +60,7 @@ class Chat extends Component {
|
|||||||
if (tab.channel) {
|
if (tab.channel) {
|
||||||
dispatch(searchMessages(tab.server, tab.channel, phrase));
|
dispatch(searchMessages(tab.server, tab.channel, phrase));
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { tab, channel, search, history, dispatch } = this.props;
|
const { tab, channel, search, history, dispatch } = this.props;
|
||||||
|
@ -10,7 +10,7 @@ import { select } from '../actions/tab';
|
|||||||
class Connect extends Component {
|
class Connect extends Component {
|
||||||
state = {
|
state = {
|
||||||
showOptionals: false
|
showOptionals: false
|
||||||
}
|
};
|
||||||
|
|
||||||
handleSubmit = (e) => {
|
handleSubmit = (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
@ -38,11 +38,11 @@ class Connect extends Component {
|
|||||||
dispatch(join(channels, address));
|
dispatch(join(channels, address));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
handleShowClick = () => {
|
handleShowClick = () => {
|
||||||
this.setState({ showOptionals: !this.state.showOptionals });
|
this.setState({ showOptionals: !this.state.showOptionals });
|
||||||
}
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
let optionals = null;
|
let optionals = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user