Skip to content

Instantly share code, notes, and snippets.

@workmanw
Forked from geojeff/gist:1424785
Created December 2, 2011 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save workmanw/1424791 to your computer and use it in GitHub Desktop.
Save workmanw/1424791 to your computer and use it in GitHub Desktop.
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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment