-
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.
- Loading branch information
1 parent
3b90c05
commit 4863065
Showing
71 changed files
with
23,205 additions
and
17 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/.sass-cache/** | ||
/node_modules/** | ||
/package.json |
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,96 @@ | ||
module.exports = (grunt) -> | ||
|
||
SRC_DIR = "src" | ||
SRC_COFFEE_DIR = "#{SRC_DIR}/coffee/class" | ||
SRC_SASS_DIR = "#{SRC_DIR}/sass" | ||
|
||
SRC_COFFEE_FILES = [] | ||
SRC_SASS_FILES = [] | ||
|
||
pushFiles = (arr, dir) -> | ||
grunt.file.recurse dir, (abspath, rootdir, subdir, filename) -> | ||
arr.push "#{rootdir}/#{filename}" if not grunt.file.isDir abspath | ||
|
||
pushFiles SRC_SASS_FILES, SRC_SASS_DIR | ||
|
||
#Order is important, some classes extend others | ||
SRC_COFFEE_FILES.push "#{SRC_DIR}/coffee/#{file}.coffee" for file in [ | ||
"factory-start" | ||
|
||
"class/Registry" | ||
|
||
"private" | ||
"public" | ||
|
||
#Classes | ||
"class/CssController" | ||
"class/EventListener" | ||
"class/Widget" | ||
"class/Composite" | ||
"class/Label" | ||
"class/Image" | ||
"class/Button" | ||
"class/ToggleButton" | ||
"class/ButtonGroup" | ||
"class/Text" | ||
"class/Spinner" | ||
"class/Switch" | ||
"class/Check" | ||
"class/Radio" | ||
"class/AbstractItemList" | ||
"class/List" | ||
"class/Combo" | ||
"class/Table" | ||
"class/TabFolder" | ||
"class/ProgressBar" | ||
"class/FileChooser" | ||
"class/ColorPicker" #Wrappers | ||
"class/YTVideo" | ||
|
||
"events" | ||
|
||
"factory-end" | ||
] | ||
|
||
DIST_DIR = "dist" | ||
DIST_JS_DIR = "#{DIST_DIR}/js/lib" | ||
DIST_CSS_DIR = "#{DIST_DIR}/css" | ||
|
||
grunt.initConfig | ||
pkg: grunt.file.readJSON "package.json" | ||
banner: """ | ||
Web Widget Toolkit (WWT) v<%= pkg.version %> | ||
By <%= pkg.author %> | ||
""" | ||
coffee: | ||
dist: | ||
options: | ||
join: true | ||
joinExt: ".src.coffee" | ||
files: | ||
"#{DIST_JS_DIR}/wwt.js": SRC_COFFEE_FILES | ||
uglify: | ||
dist: | ||
src: "#{DIST_JS_DIR}/wwt.js" | ||
dest: "#{DIST_JS_DIR}/wwt.min.js" | ||
sass: | ||
dist: | ||
options: | ||
sourceMap: false | ||
style: "expanded" | ||
loadPath: "#{SRC_DIR}/sass-include/" | ||
files: [ | ||
{ | ||
expand: true | ||
cwd: "#{SRC_SASS_DIR}/" | ||
src: ["**/*.sass"] | ||
ext: ".css" | ||
dest: "dist/css/" | ||
} | ||
] | ||
|
||
grunt.loadNpmTasks "grunt-contrib-coffee" | ||
grunt.loadNpmTasks "grunt-contrib-uglify" | ||
grunt.loadNpmTasks "grunt-contrib-sass" | ||
|
||
grunt.registerTask "default", "Default task", ["coffee", "uglify", "sass"] |
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,18 @@ | ||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.