Permalink
Browse files

added submodules for external packages to xui

  • Loading branch information...
1 parent 295a47b commit c678f525c5da5b539ff537b78662a944222e1202 @brianleroux brianleroux committed Dec 6, 2009
Showing with 282 additions and 401 deletions.
  1. +9 −0 .gitmodules
  2. +73 −109 README.md
  3. +21 −36 Rakefile
  4. +1 −0 packages/emile
  5. +1 −0 packages/qunit
  6. +1 −0 packages/shoulda-js
  7. +115 −171 src/base.js
  8. +2 −5 src/core/dom.js
  9. +3 −5 src/core/event.js
  10. +0 −62 src/core/form.js
  11. +1 −3 src/core/fx.js
  12. +3 −5 src/core/style.js
  13. +3 −5 src/core/xhr.js
  14. +49 −0 src/more/base.js
View
@@ -1,3 +1,12 @@
[submodule "vendor/emile"]
path = vendor/emile
url = git://github.com/brianleroux/emile.git
+[submodule "packages/qunit"]
+ path = packages/qunit
+ url = git://github.com/brianleroux/qunit.git
+[submodule "packages/shoulda-js"]
+ path = packages/shoulda-js
+ url = git://github.com/brianleroux/shoulda-js.git
+[submodule "packages/emile"]
+ path = packages/emile
+ url = git://github.com/brianleroux/emile.git
View
182 README.md
@@ -1,12 +1,3 @@
-
-@projectDescription XUI JavaScript library for mobile web applications.
-
-@author Rob Ellis rob.ellis@nitobi.com
-@author Brian LeRoux brian.leroux@westcoastlogic.com
-@author Brock Whitten brock@sintaxi.com
-
-@version 0.1
-
XUI
===
@@ -31,7 +22,7 @@ support under consideration for IE Mobile and BlackBerry.
### Download
-Minified code is less than 6k!
+Minified code is _tiny_.
### Contribute
@@ -42,7 +33,78 @@ Clone the source from GitHub:
To build xui: run _rake_ in the shell of your choice from the root of the project directory. (This requires Ruby.)
There are other tasks for code minification, running the specs and generating docs. Run `rake -T` to see them all.
-Check out the _example_ directory for a comprehensive example application. Specs are in the _spec_ directory.
+
+
+
+
+- complete effects to emile system
+- create docs ala smart
+- git submodule in emile
+- basic require syntax ala commonjs
+- build syntax based on require
+- move tests to shoulda
+- compile time build tool for different configurations (defaults: core, more, )
+
+
+
+ xui
+ |-src
+ | |-base.js
+ | |
+ | |-core
+ | | |-dom.js
+ | | |-event.js
+ | | |-fx.js
+ | | |-style.js
+ | | '-xhr.js
+ | |
+ | '-more
+ | |-dom.js
+ | |-form.js
+ | |-xhr.js // xhrInner, xhrJson
+ | '-json.js // templating
+ |
+ |-spec
+ | |-core.html
+ | '-more.html
+ |
+ |-packages
+ | |-qunit
+ | |-shoulda-js
+ | '-emile
+ |
+ |-lib
+ | |-xui-core-1.8.0.js
+ | |-xui-more-1.8.0.js
+ | |-xui-core-min-1.8.0.js
+ | '-xui-more-min-1.8.0.js
+ |
+ '-util
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+TODO:
+- example
+- api docs
+
+
+
+
+
+
+
+
API Documentation
===
@@ -565,105 +627,7 @@ The available options are the same as the xhr method with the addition of map.
-TODO
----
-
-- xui-app merge
-- look into extend method buggyness
-- get jslint passing
-- look into activejs doc build system and enhance to generate side by side code like ubiquity
-- generators
-- canvas progressive enhancement
-- prop should be js property insted of a css property
-
-Changelog
----
-_oct 16, 2009_
-
-- Modified xhr method to have same behaviour as html method.
-
-_july 31, 2009_
-
-- Changed xhr params, the second param can now be a callback function OR an options object.
-- Added hasClass Method - New method to Style object.
-
-_july 22, 2009_
-
-- Exposed xui to the global namespace in order to make xui extandable
-
-_april 13, 2009_
-
-- Make changes to the core selector element to take an element, coma list or array or elements/selectors
-- Added add Method - Adds more elements to the origional selector set.
-- Added reduce Method - Removes duplicate array elements
-- Removed Private Method and Fixed has and not, they both pass the spec now.
-- Added Array Remove - By John Resig (MIT Licensed)
-
-_march 13, 2009_
-
-- Added has Method - Modifed the origional Element list
-- Added not Method - Modifed the origional Element list
-
-_feb 07, 2009_
-
-- Fixed bug in DOM Regex related to attributes (wrap)
-
-_feb 04, 2009_
-
-- started scriptdoc
-- added Dom.html method alias shortcuts for: inner, outer, top, bottom and remove
-
-_jan 30, 2009_
-
-- Fixed bug in html.wrap private - createAttributes was broken
-
-_jan 22, 2009_
-
-- Full support for HTMLElement in DOM.html()
-
-_jan 21, 2009_
-
-- fixed DOM
-- added remove
-
-_Jan 18, 2009_
-
-- more documentation for core, etc
-- after cat getting out of the bag on ajaxian we're working furiously to get this production ready
-
-_Jan 13, 2009_
-
-- merged robs fixes and cleanup
-
-_Jan 11, 2009_
-
-- added mobile safari events (these will need testing in android, etc)
-- cleaned up Dom.html and documented
-- documented event a little
-
-_Jan 10, 2009_
-
-- removed Dom.clean for now
-- made Dom.getTag and Dom.wrap private
-- documented Dom
-- more Dom tests
-
-_Jan 9, 2009_
-
-- more docs for xui core, xhr, style and fx
-
-_Jan 7, 2009_
-
-- style spec passing
-- xui app phase one
-- testing approch resolved
-- hasClass now private
-
-_Jan 6, 2009_
-- rock out with renewed authority
-- better docs we promise
-- create doc/index.html from markdown
LICENSE
---
View
@@ -1,10 +1,6 @@
require 'rake/clean'
-require 'erb'
-require 'BlueCloth'
CLEAN.include('lib')
-CLOBBER.include('doc/*.html')
-
LIBPATH = File.expand_path(File.dirname(__FILE__))
#
@@ -15,13 +11,34 @@ task :default => :spec
desc 'writes out an uncompiled version of xui'
task :build do
+ # returns filename to create as key / concated files as value
+ def import(params)
+ s = ""
+ params[:js].each do |js_lib|
+ FileList.new(js_lib).each do |js_file|
+ open(js_file) {|f| s << f.read }
+ end
+ end
+ {params[:as]=>s}
+ end
+
+ # opens the file, attaches the import method to it
+ open('src/base.js') do |f|
+ working = f.read
+ end
+ # finds the ///
+ # grabs the text to eval after it
+ # inserts result and uses the filename given to write the file out
+
+=begin
require File.join(LIBPATH, 'util', 'sprockets', 'lib', 'sprockets')
secretary = Sprockets::Secretary.new(:load_path=>['vendor/emile/**','src/js/**'], :source_files=>["src/js/xui.js"])
concatenation = secretary.concatenation
FileUtils.mkdir_p(File.join(LIBPATH, 'lib'))
concatenation.save_to("lib/xui.js")
+=end
end
desc 'creates lib/xui-min.js (tho not obfuscates)'
@@ -49,35 +66,3 @@ task :check => :build do
jslint_file = File.join(LIBPATH, 'util', 'jslint.js')
sh "java -classpath #{rhino_jar} org.mozilla.javascript.tools.shell.Main #{jslint_file} #{doc_file}"
end
-
-#
-# TODO open in MobileSafari, Fennec and MobileOpera
-#
-desc 'launches the semi official but seriously example app example'
-task :example => :build do
- example_file = File.join(LIBPATH, 'example', 'index.html')
- sh "open -a WebKit #{example_file}"
-end
-
-#
-# docs are inline to the code (as markdown)
-#
-desc 'bulds documentation from inline comments into README.md'
-task :doc => :build do
- sauce = File.open(File.join(LIBPATH, 'lib', 'xui.js')).read
- # fetches all multiline comments
- comments = sauce.gsub( /\s+\/\/.*/,'' ).scan(/\/(?:\*(?:.)*?\*\/|\/[^\n]*)/m)
- # removes comment debris
- comments = comments.map{|r| r.gsub('*/','').gsub(/^\s+\* |\* |\/\*+|^\*|^\s+\*|^\s+\/\*+/, '')}
- # build a readme
- readme = comments.join("\n")
- # write out the README.md
-
- open(File.join(LIBPATH, 'README.md'), 'w'){|f| f.puts(readme) }
- # write out the doc/index.html
- FileUtils.mkdir_p(File.join(LIBPATH, 'doc'))
- index_file = File.join(LIBPATH, 'doc', 'index.html')
- open(index_file, 'w') { |f| f.puts(BlueCloth.new(readme).to_html) }
- # launch docs in safari
- sh "open -a WebKit #{index_file}"
-end
Submodule emile added at a5b477
Submodule qunit added at 618430
Submodule shoulda-js added at 762adf
Oops, something went wrong.

0 comments on commit c678f52

Please sign in to comment.