Skip to content

Commit 68a3e5d

Browse files
committed
Merge pull request #9 from musocrat/3.0
Merging 3.0
2 parents 97a3f8f + 04ed431 commit 68a3e5d

28 files changed

+6257
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.idea/
2+
node_modules/
3+
mongoose.conf
4+
*.exe

.jshintrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"boss": true,
3+
"curly": true,
4+
"eqeqeq": true,
5+
"eqnull": true,
6+
"expr": true,
7+
"immed": true,
8+
"noarg": true,
9+
"onevar": true,
10+
"smarttabs": true,
11+
"trailing": true,
12+
"node": true
13+
}

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language: node_js
2+
node_js:
3+
- 0.12

Gruntfile.js

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
module.exports = function(grunt) {
2+
3+
grunt.initConfig({
4+
5+
// Import package manifest
6+
pkg: grunt.file.readJSON("video-lightning.jquery.json"),
7+
8+
// Banner definitions
9+
meta: {
10+
banner: "/*\n" +
11+
" * <%= pkg.title || pkg.name %> - v<%= pkg.version %>\n" +
12+
" * <%= pkg.description %>\n" +
13+
" * <%= pkg.homepage %>\n" +
14+
" *\n" +
15+
" * Made by <%= pkg.author.name %>\n" +
16+
" * Under <%= pkg.licenses[0].type %> License\n" +
17+
" */\n"
18+
},
19+
20+
// Concat definitions
21+
concat: {
22+
dist: {
23+
src: ["src/videoLightning.js"],
24+
dest: "dist/videoLightning.js"
25+
},
26+
options: {
27+
banner: "<%= meta.banner %>"
28+
}
29+
},
30+
31+
// Copy definitions
32+
copy: {
33+
demo: {
34+
src: "dist/videoLightning.js",
35+
dest: "demo/javascripts/videoLightning.js"
36+
}
37+
},
38+
39+
// Lint definitions
40+
jshint: {
41+
files: ["src/videoLightning.js"],
42+
options: {
43+
jshintrc: ".jshintrc"
44+
}
45+
},
46+
47+
// Minify definitions
48+
uglify: {
49+
my_target: {
50+
src: ["src/videoLightning.js"],
51+
dest: "dist/videoLightning.min.js"
52+
},
53+
options: {
54+
banner: "<%= meta.banner %>"
55+
}
56+
},
57+
58+
// CoffeeScript compilation
59+
coffee: {
60+
compile: {
61+
files: {
62+
"src/videoLightning.js": "src/videoLightning.coffee"
63+
}
64+
}
65+
}
66+
67+
});
68+
69+
grunt.loadNpmTasks("grunt-contrib-concat");
70+
grunt.loadNpmTasks("grunt-contrib-jshint");
71+
grunt.loadNpmTasks("grunt-contrib-uglify");
72+
grunt.loadNpmTasks("grunt-contrib-coffee");
73+
grunt.loadNpmTasks("grunt-contrib-copy");
74+
75+
grunt.registerTask("default", ["coffee", "jshint", "concat", "uglify", "copy"]);
76+
grunt.registerTask("travis", ["jshint"]);
77+
78+
};

LICENSE

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

0 commit comments

Comments
 (0)