Skip to content

Instantly share code, notes, and snippets.

@geojeff
Created December 2, 2011 20:50
Show Gist options
  • Select an option

  • Save geojeff/1424785 to your computer and use it in GitHub Desktop.

Select an option

Save geojeff/1424785 to your computer and use it in GitHub Desktop.

Revisions

  1. geojeff revised this gist Dec 7, 2011. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    var g = require('../garcon/lib/garçon');
    var myapp;

    var combineScripts = false;
    //var shouldBuild = false;

    //var stdHtmlBody = [
    @@ -34,7 +35,7 @@ myapp = g.App.create({

     hasSC: true,
    configSC: {
    frameworkNames: "jquery runtime core_foundation foundation datastore statechart animation desktop".w()
    frameworkNames: "bootstrap jquery runtime handlebars core_foundation datetime foundation datastore statechart animation desktop".w()
    },
     frameworks: [
       { path: 'frameworks/sproutcore/themes/empty_theme'},
  2. geojeff revised this gist Dec 7, 2011. 1 changed file with 27 additions and 12 deletions.
    39 changes: 27 additions & 12 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,21 +1,35 @@
    var g = require('../garcon/lib/garçon');
    var server = g.Server.create({proxyHost: 'localhost', proxyPort: 8080});
    var myapp;

    var shouldBuild = false;
    //var shouldBuild = false;

    var stdHtmlBody = [
     '<div id="loading">',
       '<p id="loading">',
       'Loading…',
     '</p>',
     '</div>'
    ].join('\n');
    //var stdHtmlBody = [
    //'<div id="loading">',
    //'<p id="loading">',
    //'Loading…',
    //'</p>',
    //'</div>'
    //].join('\n');

    var server = g.Server.create({
    proxies: [
    { prefix: '/images', // what is the url prefix of the request?
    host: 'localhost', // to what host should be proxied
    port: 80, // to what port on the host should be proxied?
    proxyPrefix: '/' // with what url should the proxy request be prefixed?
    },
    { prefix: '/', // this is a catch all proxy
    host: 'localhost',
    port: 8080,
    proxyPrefix: '/'
    }
    ]
    });

    myapp = g.App.create({
     name: 'myapp',
     theme: 'sc-theme',
     htmlBody: stdHtmlBody,
    // htmlBody: stdHtmlBody,
     htmlHead: '<title>MyApp</title>',

     hasSC: true,
    @@ -29,13 +43,14 @@ myapp = g.App.create({

    { path: 'frameworks/sproutcore/themes/ace'},
    { path: 'frameworks/Thoth-SC'},
    { path: 'frameworks/d3SC'},
    { path: 'frameworks/sproutcore/frameworks/experimental/frameworks/split_view'},
    { path: 'frameworks/sproutcore-upload'},

      { path: 'apps/myapp'}
      { path: 'apps/myapp'}
     ]
    });

    server.addApp(myapp);
    //myapp.save();
    server.run();
    server.run();
  3. geojeff created this gist Dec 2, 2011.
    41 changes: 41 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,41 @@
    var g = require('../garcon/lib/garçon');
    var server = g.Server.create({proxyHost: 'localhost', proxyPort: 8080});
    var myapp;

    var shouldBuild = false;

    var stdHtmlBody = [
     '<div id="loading">',
       '<p id="loading">',
       'Loading…',
     '</p>',
     '</div>'
    ].join('\n');

    myapp = g.App.create({
     name: 'myapp',
     theme: 'sc-theme',
     htmlBody: stdHtmlBody,
     htmlHead: '<title>MyApp</title>',

     hasSC: true,
    configSC: {
    frameworkNames: "jquery runtime core_foundation foundation datastore statechart animation desktop".w()
    },
     frameworks: [
       { path: 'frameworks/sproutcore/themes/empty_theme'},
    //   { path: 'frameworks/sproutcore/themes/standard_theme'},
       { path: 'frameworks/sproutcore/themes/legacy_theme'}, // for SC 1.5

    { path: 'frameworks/sproutcore/themes/ace'},
    { path: 'frameworks/Thoth-SC'},
    { path: 'frameworks/sproutcore/frameworks/experimental/frameworks/split_view'},
    { path: 'frameworks/sproutcore-upload'},

      { path: 'apps/myapp'}
     ]
    });

    server.addApp(myapp);
    //myapp.save();
    server.run();