Skip to content

Commit 8fea1c8

Browse files
committed
fix: enabling support for grunt|bower|node
1 parent 9bd9a12 commit 8fea1c8

16 files changed

+3434
-3294
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 4
9+
end_of_line = lf
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[*.md]
14+
insert_final_newline = false
15+
trim_trailing_whitespace = false

.gitattributes

100644100755
+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Auto detect text files and perform LF normalization
22
* text=auto
33

4+
# JS files must always use LF for tools to work
5+
*.js eol=lf
6+
47
# Custom for Visual Studio
58
*.cs diff=csharp
69
*.sln merge=union

.gitignore

100644100755
+3
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,6 @@ pip-log.txt
161161

162162
# Mac crap
163163
.DS_Store
164+
165+
# Node modules
166+
node_modules/

Gruntfile.js

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
'use strict';
2+
3+
module.exports = function(grunt) {
4+
//grunt plugins
5+
grunt.loadNpmTasks('grunt-contrib-uglify');
6+
grunt.loadNpmTasks('grunt-contrib-coffee');
7+
8+
grunt.initConfig({
9+
10+
pkg: grunt.file.readJSON('package.json'),
11+
root: '.',
12+
src: '<%= root %>/src',
13+
buildPath: '<%= root %>',
14+
distPath: '<%= root %>',
15+
16+
coffee: {
17+
'all': {
18+
files: {
19+
'<%= distPath %>/koala-html.js': '<%= src %>/koala-html.coffee'
20+
}
21+
}
22+
},
23+
24+
uglify: {
25+
options: {
26+
mangle: {
27+
toplevel: true
28+
},
29+
squeeze: {
30+
dead_code: false
31+
},
32+
codegen: {
33+
quote_keys: true
34+
},
35+
sourceMap: true
36+
},
37+
'all': {
38+
files: {
39+
'<%= distPath %>/koala-html.min.js': '<%= distPath %>/koala-html.js'
40+
}
41+
}
42+
}
43+
});
44+
45+
grunt.registerTask('build', ['coffee:all']);
46+
grunt.registerTask('min', ['uglify:all']);
47+
grunt.registerTask('dist', '', function(){
48+
grunt.task.run(['build', 'min']);
49+
});
50+
};

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License
2+
3+
Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all 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,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

bower.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name" : "koala-html",
3+
"version" : "1.0.0",
4+
"main" : "koala-html.js",
5+
"dependencies" : {},
6+
"ignore" : ["docs", "examples", "test", "tools", "src", "*.yml", "*.html", "*.ico", "*.md", "CNAME"]
7+
}

index.html examples/index.html

File renamed without changes.

0 commit comments

Comments
 (0)