Permalink
Browse files

Revert "Bringing back in JavaScriptMVC implementation based on #252. …

…Note: we need to reduce JMVC dep. bloat."

This reverts commit 75b9d74.

Conflicts:
	index.html
  • Loading branch information...
1 parent a9026ad commit 7a7e64ea505aa6266882324c0b949e8863c9af42 @sindresorhus sindresorhus committed Jan 11, 2013
Showing 597 changed files with 0 additions and 117,555 deletions.
View
@@ -84,9 +84,6 @@
<li class="labs">
<a href="labs/architecture-examples/montage/" data-source="https://github.com/Motorola-Mobility/montage" data-content="Montage simplifies the development of rich HTML5 applications by providing modular components, real-time two-way data binding, CommonJS dependency management, and many more conveniences.">Montage</a>
</li>
- <li class="routing labs">
- <a href="labs/architecture-examples/javascriptmvc/todo" data-source="http://javascriptmvc.com" data-content="JavaScriptMVC is an open-source framework containing the best ideas in jQuery development. It guides you to successfully completed projects by promoting best practices, maintainability, and convention over configuration.">JavaScriptMVC</a>
- </li>
<li class="labs">
<a href="labs/architecture-examples/extjs/" data-source="http://www.sencha.com/products/extjs" data-content="Ext JS 4 is the next major advancement in our JavaScript framework. Featuring expanded functionality, plugin-free charting, and a new MVC architecture it's the best Ext JS yet. Create incredible web apps for every browser.">Ext.js</a>
</li>
@@ -1,24 +0,0 @@
-TOC:
- A. How to get (and contribute) to JMVC
-
-
-A. How to get (and contribute) JMVC
-
- 1. Start a new project in git.
-
- 2. Fork ....
- http://github.com/jupiterjs/steal and
- http://github.com/jupiterjs/jquerymx
-
- 3. Add steal and jquerymx as submodules of your project...
- git submodule add git@github.com:_YOU_/steal.git steal
- git submodule add git@github.com:_YOU_/jquerymx.git jquery
-
- * Notice jquerymx is under the jquery folder
-
- 4. Learn a little more about submodules ...
- http://johnleach.co.uk/words/archives/2008/10/12/323/git-submodules-in-n-easy-steps
-
- 5. Make changes in steal or jquerymx, and push them back to your fork.
-
- 6. Make a pull request to your fork.
@@ -1,146 +0,0 @@
-// load('jquery/build.js')
-
-load('steal/rhino/rhino.js')
-
-var i, fileName, cmd,
- plugins = [
- "class" ,
- "controller",
- {
- plugin: "controller/subscribe",
- exclude: ["jquery/controller/controller.js",
- "jquery/class/class.js",
- "jquery/lang/lang.js",
- "jquery/event/destroyed/destroyed.js",
- "jquery/controller/controller.js"]},
- "event/default",
- "event/destroyed",
- "event/drag",
- "event/pause",
- "event/resize",
- {
- plugin: "event/drag/limit",
- exclude: ["jquery/lang/vector/vector.js", "jquery/event/livehack/livehack.js", "jquery/event/drag/drag.js"]},
- {
- plugin: "event/drag/scroll",
- exclude: ["jquery/dom/within/within.js", "jquery/dom/compare/compare.js", "jquery/event/drop/drop.js","jquery/lang/vector/vector.js", "jquery/event/livehack/livehack.js", "jquery/event/drag/drag.js"]},
- {
- plugin: "event/drop",
- exclude: ["jquery/lang/vector/vector.js", "jquery/event/livehack/livehack.js", "jquery/event/drag/drag.js"]},
- "event/hover",
- "view/ejs",
- "dom/closest",
- "dom/compare",
- {
- plugin: "dom/dimensions",
- fileName: "jquery.dimensions.etc.js"
- },
- "dom/fixture",
- "dom/form_params",
- "dom/within",
- "dom/cur_styles",
- "model",
- {
- plugin: "model/backup",
- exclude: ["jquery/class/class.js",
- "jquery/lang/lang.js",
- "jquery/event/destroyed/destroyed.js",
- "jquery/lang/openajax/openajax.js",
- "jquery/model/model.js"]
- },
- {
- plugin: "model/list",
- exclude: ["jquery/class/class.js",
- "jquery/lang/lang.js",
- "jquery/event/destroyed/destroyed.js",
- "jquery/lang/openajax/openajax.js",
- "jquery/model/model.js"]
- },
- {
- plugin: "model/list/cookie",
- exclude: ["jquery/class/class.js",
- "jquery/lang/lang.js",
- "jquery/event/destroyed/destroyed.js",
- "jquery/lang/openajax/openajax.js",
- "jquery/model/model.js",
- "jquery/model/list/list.js"]
- },
- {
- plugin: "model/list/local",
- exclude: ["jquery/class/class.js",
- "jquery/lang/lang.js",
- "jquery/event/destroyed/destroyed.js",
- "jquery/lang/openajax/openajax.js",
- "jquery/model/model.js",
- "jquery/model/list/list.js"]
- },
- {
- plugin: "model/validations",
- exclude: ["jquery/class/class.js",
- "jquery/lang/lang.js",
- "jquery/event/destroyed/destroyed.js",
- "jquery/lang/openajax/openajax.js",
- "jquery/model/model.js"]
- },
- "view",
- "view/ejs",
- "view/jaml",
- "view/micro",
- "view/tmpl"
-]
-
-
-steal.File('jquery/dist').mkdir();
-steal('steal/build/pluginify').then( function(s){
-var plugin, exclude, fileDest, fileName;
- for(i=0; i<plugins.length; i++){
- plugin = plugins[i];
- exclude = [];
- fileName = null;
- if (typeof plugin != "string") {
- fileName = plugin.fileName;
- exclude = plugin.exclude || [];
- plugin = plugin.plugin;
- }
- fileName = fileName || "jquery."+plugin.replace(/\//g, ".").replace(/dom\./, "").replace(/\_/, "")+".js";
- fileDest = "jquery/dist/"+fileName
- s.build.pluginify("jquery/"+plugin,{
- nojquery: true,
- out: fileDest,
- exclude: exclude.length? exclude: false
- })
-
-
- var outBaos = new java.io.ByteArrayOutputStream();
- var output = new java.io.PrintStream(outBaos);
- runCommand("java", "-jar", "steal/build/scripts/compiler.jar", "--compilation_level", "SIMPLE_OPTIMIZATIONS", "--warning_level", "QUIET", "--js", fileDest, {
- output: output
- });
-
- var minFileDest = fileDest.replace(".js", ".min.js")
- new steal.File(minFileDest).save(outBaos.toString());
- }
-})
-/*
-for (i = 0; i < plugins.length; i++) {
- plugin = plugins[i];
- exclude = [];
- fileName = null;
- if (typeof plugin != "string") {
- fileName = plugin.fileName;
- exclude = plugin.exclude || [];
- plugin = plugin.plugin;
- }
- fileName = fileName || "jquery." + plugin.replace(/\//g, ".").replace(/dom\./, "").replace(/\_/, "") + ".js";
- fileDest = "jquery/dist/" + fileName
- // compress
- var outBaos = new java.io.ByteArrayOutputStream();
- var output = new java.io.PrintStream(outBaos);
- runCommand("java", "-jar", "steal/build/scripts/compiler.jar", "--compilation_level", "SIMPLE_OPTIMIZATIONS", "--warning_level", "QUIET", "--js", fileDest, {
- output: output
- });
-
- var minFileDest = fileDest.replace(".js", ".min.js")
- new steal.File(minFileDest).save(outBaos.toString());
- print("***" + fileName + " pluginified and compressed")
-}*/
@@ -1,130 +0,0 @@
-// load('jquery/buildAll.js')
-
-load('steal/rhino/rhino.js')
-
-
-// load every plugin in a single app
-// get dependency graph
-// generate single script
-
-steal('steal/build/pluginify','steal/build/apps','steal/build/scripts').then( function(s){
- var ignore = /\.\w+|test|generate|dist|qunit|fixtures|pages/
-
- var plugins = [],
- /**
- * {"path/to/file.js" : ["file2/thing.js", ...]}
- */
- files = {};
-
- s.File('jquery').contents(function( name, type, current ) {
- if (type !== 'file' && !ignore.test(name)) {
- var folder = current+"/"+name;
- if(readFile(folder+"/"+name+".js")){
- print(folder);
- plugins.push(folder);
- steal.File(folder).contents(arguments.callee, folder)
- }
-
- //steal.File(path + "/" + (current ? current + "/" : "") + name).contents(arguments.callee, (current ? current + "/" : "") + name);
- }
- },"jquery");
-
- // tell it to load all plugins into this page
-
-
- //steal.win().build_in_progress = true;
- print(" LOADING APP ")
- steal.build.open('steal/rhino/blank.html', {
- startFiles: plugins
- }, function(opener){
-
- opener.each('js', function(options, text, stl){
- print(options.rootSrc)
- var dependencies = files[options.rootSrc] = [];
- if(stl.dependencies){
- for (var d = 0; d < stl.dependencies.length; d++) {
- var depend = stl.dependencies[d];
- if (depend.options.rootSrc !== "jquery/jquery.js") {
- dependencies.push(depend.options.rootSrc);
- }
- }
- }
- })
-
- s.File("jquery/dist/standalone").mkdirs();
- s.File("jquery/dist/standalone/dependencies.json").save($.toJSON(files));
- //get each file ...
- print("Creating jquery/dist/standalone/")
- var compressor = s.build.builders.scripts.compressors[ "localClosure"]()
- for(var path in files){
- if(path == "jquery/jquery.js"){
- continue;
- }
- var content = readFile(path);
- var funcContent = s.build.pluginify.getFunction(content);
- if(typeof funcContent == "undefined"){
- content = "";
- } else {
- content = "("+s.build.pluginify.getFunction(content)+")(jQuery);";
- }
- var out = path.replace(/\/\w+\.js/,"").replace(/\//g,".");
- content = s.build.builders.scripts.clean(content);
- print(" "+out+"");
- content = s.build.builders.scripts.clean(content);
- s.File("jquery/dist/standalone/"+out+".js").save(content);
- s.File("jquery/dist/standalone/"+out+".min.js").save(compressor(content));
- }
-
- })
-
- /*
- var pageSteal = steal.build.open("steal/rhino/empty.html").steal,
- steals = pageSteal.total,
-
- files = {},
- depends = function(stl, steals){
- if(stl.dependencies){
- for (var d = 0; d < stl.dependencies.length; d++) {
- var depend = stl.dependencies[d];
- if(!steals[depend.path]){
- steals[depend.path] = true;
- print("123 " + depend.path);
- //depends(depend, steals);
- }
-
-
- }
- }
- },
- all = function(c){
- for(var i =0; i < steals.length; i++){
- var pSteal =steals[i];
-
- if(!pSteal.func){
- c(pSteal)
- }
-
- }
-
- };
- print(" LOADED, GETTING DEPENDS");
- all(function(stl){
- files[stl.path] = stl;
- })
- all(function(stl){
- print(stl.path)
- var dependencies = files[stl.path] = [];
- if(stl.dependencies){
- for (var d = 0; d < stl.dependencies.length; d++) {
- var depend = stl.dependencies[d];
- if (depend.path !== "jquery/jquery.js") {
- dependencies.push(depend.path);
- }
- }
- }
- })*/
-
-
-
-
-})
Oops, something went wrong.

0 comments on commit 7a7e64e

Please sign in to comment.