Skip to content

Commit

Permalink
Commit WWT source
Browse files Browse the repository at this point in the history
  • Loading branch information
KILL3RTACO committed Jun 16, 2016
1 parent 3b90c05 commit 4863065
Show file tree
Hide file tree
Showing 71 changed files with 23,205 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .gitattributes

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.sass-cache/**
/node_modules/**
/package.json
96 changes: 96 additions & 0 deletions Gruntfile.coffee
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"]
18 changes: 18 additions & 0 deletions LICENSE-SPECTRUM
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.
61 changes: 61 additions & 0 deletions dist/css/demo-wwt.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions dist/css/demo-wwt.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4863065

Please sign in to comment.