-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refused connection error and some other things.
Message (user) time, local commands, new logo. ESLint Volatile history (scrollable) π π π Prepare headers with no-values. w.sh to run locally. Aggregation instead of composition. Components should not know about whir. Alpha. π π
- Loading branch information
1 parent
201194b
commit a81a8af
Showing
19 changed files
with
2,545 additions
and
750 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"extends": "airbnb-base", | ||
"plugins": [ | ||
"import" | ||
], | ||
"rules": { | ||
"comma-dangle": [ | ||
"error", | ||
"never" | ||
], | ||
"no-param-reassign": 0, | ||
"no-console": 0 | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,12 @@ | ||
'use strict'; | ||
|
||
|
||
require('dotenv').load(); | ||
module.exports = grunt => { | ||
|
||
grunt.initConfig({ | ||
jshint: { | ||
options: { | ||
jshintrc: true | ||
}, | ||
whir: [ | ||
'.' | ||
] | ||
}, | ||
jscs: { | ||
src: '.', | ||
options: { | ||
config: '.jscs', | ||
fix: true | ||
} | ||
}, | ||
nodemon: { | ||
dev: { | ||
script: 'app/index.js', | ||
options: { | ||
args: ['--trace', '--trace-sync-io'], | ||
callback: nodemon => { | ||
nodemon.on('log', event => { | ||
console.log(event.colour); | ||
}); | ||
}, | ||
env: { | ||
NODE_ENV: grunt.option('env') || 'local', | ||
PORT: process.env.PORT | ||
}, | ||
cwd: __dirname, | ||
ignore: ['node_modules/**'], | ||
ext: 'js', | ||
delay: 500 | ||
} | ||
} | ||
} | ||
}); | ||
|
||
grunt.loadNpmTasks('grunt-jscs'); | ||
grunt.loadNpmTasks('grunt-nodemon'); | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
module.exports = (grunt) => { | ||
grunt.initConfig({ | ||
eslint: { | ||
target: ['./app/**/*.js'] | ||
} | ||
}); | ||
|
||
grunt.registerTask('hint', 'Hinting...', ['jshint:whir', 'jscs']); | ||
grunt.loadNpmTasks('grunt-eslint'); | ||
grunt.registerTask('default', ['eslint']); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,63 @@ | ||
[![Dependency status](https://gemnasium.com/badges/github.com/WhirIO/Client.svg)](https://gemnasium.com/github.com/WhirIO/Client) | ||
[![Alpha](https://img.shields.io/badge/status-alpha-8456AC.svg)](https://github.com/WhirIO/Client) | ||
|
||
<p align="center"> | ||
<a href="http://whir.io"><img src="media/whir.png" alt="whir.io" /></a> | ||
<a href="http://whir.io"><img src="media/whir.png" alt="whir.io" width="420" /></a> | ||
</p> | ||
|
||
<p> | ||
<a href="https://asciinema.org/a/4ff69bzz484gopw5hno3ietmm" target="_blank"><img src="https://asciinema.org/a/4ff69bzz484gopw5hno3ietmm.png" /></a> | ||
</p> | ||
|
||
### Installation | ||
``` | ||
This is still under development. | ||
It might be unstable until this notice is removed. | ||
$> npm i -g whir.io | ||
``` | ||
|
||
### Getting started: | ||
``` | ||
$> npm install -g whir.io | ||
``` | ||
|
||
### Options: | ||
- `--user || -u`: Your username for a particular channel. `Required` | ||
- `--pass || -p`: Password, when connecting to private channels. | ||
- `--channel || -c`: The channel to join. Default: `whir generated name` | ||
- `--host || -h`: The server running Whir. Default: `chat.whir.io` | ||
- `--mute || -m`: Mute the conversation. Does not require a value. | ||
- `--user || -u`: Your username (per channel) `Required` | ||
- `--pass || -p`: Password, for private channels. | ||
- `--channel || -c`: Channel you are joining (or creating) `Default: random name` | ||
- `--host || -h`: Whir's host `Default: chat.whir.io` | ||
- `--mute || -m`: Mute the conversation. | ||
|
||
|
||
### Example uses: | ||
### Chat: | ||
``` | ||
$> whir.io --user=stefan --channel=friends | ||
``` | ||
|
||
or | ||
|
||
``` | ||
$> whir.io -u=stefan -c=friends | ||
$> whir.io -u stefan -c friends | ||
``` | ||
|
||
or | ||
|
||
``` | ||
$> whir.io -u=stefan -m | ||
// You will be connected to a randomly named channel. | ||
$> whir.io -u stefan -m | ||
// Connected to a random channel. | ||
// The conversation is muted. | ||
``` | ||
|
||
or | ||
|
||
``` | ||
$> whir.io -u stefan -c friends -h myawesomedomain.chat | ||
// Running whir on your own server/domain. | ||
``` | ||
|
||
|
||
### Notes | ||
You can also setup and run your own **whir** server.<br /> | ||
Here's how to do that: [https://github.com/WhirIO/Server](https://github.com/WhirIO/Server) | ||
|
||
|
||
### Contribute | ||
``` | ||
fork https://github.com/WhirIO/Server | ||
``` | ||
|
||
|
||
### License | ||
|
||
[MIT](https://github.com/WhirIO/Client/blob/master/LICENSE) | ||
|
||
### Enjoy! |
Oops, something went wrong.