Skip to content

Commit c21308d

Browse files
committed
Initial source commit
1 parent 7cb319f commit c21308d

29 files changed

+2866
-3
lines changed

.gitignore

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
# Mac OS-X
12
.DS_Store
2-
build
3-
compiled
3+
4+
# Node / NPM
45
node_modules
5-
_site
6+
7+
# Jekyll
8+
_site
9+
10+
# Compiled
11+
build

Gruntfile.js

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
module.exports = function(grunt) {
2+
3+
"use strict";
4+
5+
// Initializes the Grunt tasks with the following settings
6+
grunt.initConfig({
7+
8+
// A list of files which will be syntax-checked by JSHint.
9+
jshint: {
10+
files: ['src/js/shims.js', 'src/js/firechat.js', 'src/js/firechat-ui.js'],
11+
options: {
12+
regexdash: false
13+
}
14+
},
15+
16+
// Precompile templates and strip whitespace with 'processContent'.
17+
jst: {
18+
compile: {
19+
options: {
20+
path: 'templates',
21+
namespace: 'FirechatDefaultTemplates',
22+
prettify: true,
23+
processContent: function(src) {
24+
return src.replace(/(^\s+|\s+$)/gm, '');
25+
}
26+
},
27+
files: {
28+
'compiled/templates.js': ['templates/*.html']
29+
}
30+
}
31+
},
32+
33+
// Compile and minify LESS CSS for production.
34+
less: {
35+
development: {
36+
files: {
37+
"build/firechat-default.css": "src/less/styles.less"
38+
}
39+
},
40+
production: {
41+
options: {
42+
yuicompress: true
43+
},
44+
files: {
45+
"build/firechat-default.min.css": "src/less/styles.less"
46+
}
47+
}
48+
},
49+
50+
// Concatenate files in a specific order.
51+
concat: {
52+
js: {
53+
src: [
54+
'src/js/libs/underscore-1.4.4.min.js',
55+
'compiled/templates.js',
56+
'src/js/shims.js',
57+
'src/js/firechat.js',
58+
'src/js/firechat-ui.js'
59+
],
60+
dest: 'build/firechat-default.js'
61+
}
62+
},
63+
64+
// Minify concatenated files.
65+
uglify: {
66+
dist: {
67+
src: ['<%= concat.js.dest %>'],
68+
dest: 'build/firechat-default.min.js'
69+
}
70+
},
71+
72+
// Clean up temporary files.
73+
clean: ['compiled/'],
74+
75+
// Tasks to execute upon file change when using `grunt watch`.
76+
watch: {
77+
src: {
78+
files: ['src/**/*.*', 'templates/**/*.*'],
79+
tasks: ['default']
80+
}
81+
}
82+
});
83+
84+
// Load specific plugins, which have been installed and specified in package.json.
85+
grunt.loadNpmTasks('grunt-contrib-clean');
86+
grunt.loadNpmTasks('grunt-contrib-concat');
87+
grunt.loadNpmTasks('grunt-contrib-jshint');
88+
grunt.loadNpmTasks('grunt-contrib-jst');
89+
grunt.loadNpmTasks('grunt-contrib-less');
90+
grunt.loadNpmTasks('grunt-contrib-uglify');
91+
grunt.loadNpmTasks('grunt-contrib-watch');
92+
grunt.loadNpmTasks('grunt-docco');
93+
94+
// Default task operations if simply calling `grunt` without options.
95+
grunt.registerTask('default', ['jshint', 'jst', 'less', 'concat', 'uglify', 'clean']);
96+
97+
};

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2013, Firebase.
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of
4+
this software and associated documentation files (the "Software"), to deal in
5+
the Software without restriction, including without limitation the rights to
6+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
7+
of the Software, and to permit persons to whom the Software is furnished to do
8+
so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
SOFTWARE.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FireChat.js
2+
===========
3+
4+
Simple, extensible chat build on [Firebase](https://firebase.com).
5+
6+
For demos, documentation, and integration instructions, see [http://firebase.github.io/firechat/](http://firebase.github.io/firechat/).

assets/img/icons.png

3.33 KB
Loading

package.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "firechat",
3+
"title": "Firechat",
4+
"description": "Open source, real-time chat powered by Firebase",
5+
"homepage": "http://firebase.github.io/firechat",
6+
"author": {
7+
"name": "Firebase Inc.",
8+
"url": "https://firebase.com"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "git://github.com/firebase/firechat.git"
13+
},
14+
"bugs": "https://github.com/firebase/firechat/issues",
15+
"licenses": [{
16+
"type": "MIT",
17+
"url": "http://firebase.mit-license.org/"
18+
}],
19+
"version": "0.1.0",
20+
"dependencies": {},
21+
"devDependencies": {
22+
"grunt": "~0.4.0",
23+
"grunt-contrib-clean": "~0.4.1",
24+
"grunt-contrib-concat": "~0.1.1",
25+
"grunt-contrib-jshint": "~0.1.0",
26+
"grunt-contrib-jst": "~0.5.0",
27+
"grunt-contrib-less": "~0.5.0",
28+
"grunt-contrib-uglify": "~0.1.0",
29+
"grunt-contrib-watch": "~0.1.4",
30+
"grunt-docco": "~0.2.0"
31+
},
32+
"keywords": ["firebase", "chat", "talk", "real-time", "synchronization", "websocket"]
33+
}

0 commit comments

Comments
 (0)