Skip to content

Commit

Permalink
Stash
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed May 5, 2012
1 parent ab08281 commit 4fd96a8
Show file tree
Hide file tree
Showing 20 changed files with 287 additions and 219,866 deletions.
9 changes: 6 additions & 3 deletions Makefile
Expand Up @@ -27,12 +27,15 @@ core:
mkdir -p build/
node r.js -o build/core.build.js

# packages ext
ext:
# generates packed template
helper:
mkdir -p build/
node build/packed_helper.js

# packages ext
ext:
node r.js -o build/app.build.js
echo "module = {exports: undefined};"|cat - plugins-client/ext.packed/packed.js > temp_file && mv temp_file plugins-client/ext.packed/packed.js
echo "module = {exports: undefined};" | cat - plugins-client/lib.packed/www/packed.js > temp_file && mv temp_file plugins-client/lib.packed/www/packed.js

# calls dryice on worker & packages it
worker:
Expand Down
242 changes: 172 additions & 70 deletions build/app.build.js
Expand Up @@ -4,86 +4,188 @@
optimize: "none",
baseUrl: "../",
paths: {
"core" : "empty:",
"ext" : "empty:",
"apf" : "empty:",
"treehugger" : "empty:"
"core" : "empty:",
"ext" : "empty:",
"apf" : "empty:",
"treehugger" : "empty:",
'ext/acebugs': 'plugins-client/ext.acebugs',
'ext/autotest': 'plugins-client/ext.autotest',
'ext/beautify': 'plugins-client/ext.beautify',
'ext/clipboard': 'plugins-client/ext.clipboard',
'ext/closeconfirmation': 'plugins-client/ext.closeconfirmation',
'ext/code': 'plugins-client/ext.code',
'ext/codecomplete': 'plugins-client/ext.codecomplete',
'ext/codetools': 'plugins-client/ext.codetools',
'ext/colorpicker': 'plugins-client/ext.colorpicker',
'ext/commands': 'plugins-client/ext.commands',
'ext/connect': 'plugins-client/ext.connect',
'ext/console': 'plugins-client/ext.console',
'ext/consolehints': 'plugins-client/ext.consolehints',
'ext/debugger': 'plugins-client/ext.debugger',
'ext/dockpanel': 'plugins-client/ext.dockpanel',
'ext/docs': 'plugins-client/ext.docs',
'ext/dragdrop': 'plugins-client/ext.dragdrop',
'ext/editors': 'plugins-client/ext.editors',
'ext/extmgr': 'plugins-client/ext.extmgr',
'ext/filelist': 'plugins-client/ext.filelist',
'ext/filesystem': 'plugins-client/ext.filesystem',
'ext/formatjson': 'plugins-client/ext.formatjson',
'ext/ftp': 'plugins-client/ext.ftp',
'ext/gitblame': 'plugins-client/ext.gitblame',
'ext/githistory': 'plugins-client/ext.githistory',
'ext/gittools': 'plugins-client/ext.gittools',
'ext/gotofile': 'plugins-client/ext.gotofile',
'ext/gotoline': 'plugins-client/ext.gotoline',
'ext/guidedtour': 'plugins-client/ext.guidedtour',
'ext/helloworld': 'plugins-client/ext.helloworld',
'ext/help': 'plugins-client/ext.help',
'ext/imgview': 'plugins-client/ext.imgview',
'ext/jslanguage': 'plugins-client/ext.jslanguage',
'ext/keybindings_default': 'plugins-client/ext.keybindings_default',
'ext/language': 'plugins-client/ext.language',
'ext/log': 'plugins-client/ext.log',
'ext/main': 'plugins-client/ext.main',
'ext/menus': 'plugins-client/ext.menus',
'ext/minimap': 'plugins-client/ext.minimap',
'ext/newresource': 'plugins-client/ext.newresource',
'ext/noderunner': 'plugins-client/ext.noderunner',
'ext/nodeunit': 'plugins-client/ext.nodeunit',
'ext/offline': 'plugins-client/ext.offline',
'ext/openfiles': 'plugins-client/ext.openfiles',
'ext/panels': 'plugins-client/ext.panels',
'ext/preview': 'plugins-client/ext.preview',
'ext/quicksearch': 'plugins-client/ext.quicksearch',
'ext/quickstart': 'plugins-client/ext.quickstart',
'ext/quickwatch': 'plugins-client/ext.quickwatch',
'ext/recentfiles': 'plugins-client/ext.recentfiles',
'ext/remotecontrol': 'plugins-client/ext.remotecontrol',
'ext/revisions': 'plugins-client/ext.revisions',
'ext/richtext': 'plugins-client/ext.richtext',
'ext/runpanel': 'plugins-client/ext.runpanel',
'ext/save': 'plugins-client/ext.save',
'ext/searchinfiles': 'plugins-client/ext.searchinfiles',
'ext/searchreplace': 'plugins-client/ext.searchreplace',
'ext/settings': 'plugins-client/ext.settings',
'ext/sidebar': 'plugins-client/ext.sidebar',
'ext/splitview': 'plugins-client/ext.splitview',
'ext/statusbar': 'plugins-client/ext.statusbar',
'ext/stripws': 'plugins-client/ext.stripws',
'ext/tabbehaviors': 'plugins-client/ext.tabbehaviors',
'ext/tabsessions': 'plugins-client/ext.tabsessions',
'ext/testpanel': 'plugins-client/ext.testpanel',
'ext/themes': 'plugins-client/ext.themes',
'ext/themes_default': 'plugins-client/ext.themes_default',
'ext/tooltip': 'plugins-client/ext.tooltip',
'ext/tree': 'plugins-client/ext.tree',
'ext/undo': 'plugins-client/ext.undo',
'ext/uploadfiles': 'plugins-client/ext.uploadfiles',
'ext/vim': 'plugins-client/ext.vim',
'ext/watcher': 'plugins-client/ext.watcher',
'ext/zen': 'plugins-client/ext.zen'
},
include: ["build/src/core.packed", 'plugins-client/ext.filesystem/filesystem',
'plugins-client/ext.settings/settings',
'plugins-client/ext.editors/editors',
'plugins-client/ext.themes/themes',
'plugins-client/ext.themes_default/themes_default',
'plugins-client/ext.panels/panels',
'plugins-client/ext.dockpanel/dockpanel',
'plugins-client/ext.openfiles/openfiles',
'plugins-client/ext.tree/tree',
'plugins-client/ext.save/save',
'plugins-client/ext.recentfiles/recentfiles',
'plugins-client/ext.gotofile/gotofile',
'plugins-client/ext.newresource/newresource',
'plugins-client/ext.undo/undo',
'plugins-client/ext.clipboard/clipboard',
'plugins-client/ext.searchinfiles/searchinfiles',
'plugins-client/ext.searchreplace/searchreplace',
'plugins-client/ext.quickwatch/quickwatch',
'plugins-client/ext.quicksearch/quicksearch',
'plugins-client/ext.gotoline/gotoline',
'plugins-client/ext.preview/preview',
'plugins-client/ext.log/log',
'plugins-client/ext.help/help',
'plugins-client/ext.code/code',
'plugins-client/ext.statusbar/statusbar',
'plugins-client/ext.imgview/imgview',
'plugins-client/ext.extmgr/extmgr',
'plugins-client/ext.runpanel/runpanel',
'plugins-client/ext.debugger/debugger',
'plugins-client/ext.noderunner/noderunner',
'plugins-client/ext.console/console',
'plugins-client/ext.consolehints/consolehints',
'plugins-client/ext.tabbehaviors/tabbehaviors',
'plugins-client/ext.tabsessions/tabsessions',
'plugins-client/ext.keybindings_default/keybindings_default',
'plugins-client/ext.watcher/watcher',
'plugins-client/ext.dragdrop/dragdrop',
'plugins-client/ext.menus/menus',
'plugins-client/ext.tooltip/tooltip',
'plugins-client/ext.sidebar/sidebar',
'plugins-client/ext.filelist/filelist',
'plugins-client/ext.beautify/beautify',
'plugins-client/ext.offline/offline',
'plugins-client/ext.stripws/stripws',
'plugins-client/ext.testpanel/testpanel',
'plugins-client/ext.nodeunit/nodeunit',
'plugins-client/ext.zen/zen',
'plugins-client/ext.codecomplete/codecomplete',
'plugins-client/ext.vim/vim',
'plugins-client/ext.guidedtour/guidedtour',
'plugins-client/ext.quickstart/quickstart',
'plugins-client/ext.jslanguage/jslanguage',
'plugins-client/ext.tabsessions/tabsessions',
'plugins-client/ext.closeconfirmation/closeconfirmation',
'plugins-client/ext.codetools/codetools',
'plugins-client/ext.colorpicker/colorpicker',
'plugins-client/ext.revisions/revisions',
'plugins-client/ext.language/language'],
out: "../plugins-client/ext.packed/packed.js",
include: ["build/src/core.packed", 'ext/acebugs/acebugs',
'ext/autotest/autotest',
'ext/beautify/beautify',
'ext/clipboard/clipboard',
'ext/closeconfirmation/closeconfirmation',
'ext/code/code',
'ext/codecomplete/codecomplete',
'ext/codetools/codetools',
'ext/colorpicker/colorpicker',
'ext/commands/commands',
'ext/connect/connect',
'ext/console/console',
'ext/consolehints/consolehints',
'ext/debugger/debugger',
'ext/dockpanel/dockpanel',
'ext/docs/docs',
'ext/dragdrop/dragdrop',
'ext/editors/editors',
'ext/extmgr/extmgr',
'ext/filelist/filelist',
'ext/filesystem/filesystem',
'ext/formatjson/formatjson',
'ext/ftp/ftp',
'ext/gitblame/gitblame',
'ext/githistory/githistory',
'ext/gittools/gittools',
'ext/gotofile/gotofile',
'ext/gotoline/gotoline',
'ext/guidedtour/guidedtour',
'ext/helloworld/helloworld',
'ext/help/help',
'ext/imgview/imgview',
'ext/jslanguage/jslanguage',
'ext/keybindings_default/keybindings_default',
'ext/language/language',
'ext/log/log',
'ext/main/main',
'ext/menus/menus',
'ext/minimap/minimap',
'ext/newresource/newresource',
'ext/noderunner/noderunner',
'ext/nodeunit/nodeunit',
'ext/offline/offline',
'ext/openfiles/openfiles',
'ext/panels/panels',
'ext/preview/preview',
'ext/quicksearch/quicksearch',
'ext/quickstart/quickstart',
'ext/quickwatch/quickwatch',
'ext/recentfiles/recentfiles',
'ext/remotecontrol/remotecontrol',
'ext/revisions/revisions',
'ext/richtext/richtext',
'ext/runpanel/runpanel',
'ext/save/save',
'ext/searchinfiles/searchinfiles',
'ext/searchreplace/searchreplace',
'ext/settings/settings',
'ext/sidebar/sidebar',
'ext/splitview/splitview',
'ext/statusbar/statusbar',
'ext/stripws/stripws',
'ext/tabbehaviors/tabbehaviors',
'ext/tabsessions/tabsessions',
'ext/testpanel/testpanel',
'ext/themes/themes',
'ext/themes_default/themes_default',
'ext/tooltip/tooltip',
'ext/tree/tree',
'ext/undo/undo',
'ext/uploadfiles/uploadfiles',
'ext/vim/vim',
'ext/watcher/watcher',
'ext/zen/zen'],
out: "../plugins-client/lib.packed/www/packed.js",
inlineText: true,
findNestedDependencies: true,
optimizeAllPluginResources: false,
useStrict: true,
wrap: true,
wrap: true/*,
onBuildRead: function (moduleName, path, contents) {
var defineRegExp = new RegExp(/plugins-client\/ext.(\w+)/g);
var textRegExp = new RegExp(/text!ext\/(\w+)\//g);
var match;
console.log(contents)
if ( (match = contents.match(defineRegExp) ) ) {
for (var m in match) {
console.error(match[m]);
var name = "ext/" + match[m].split("/")[1];
contents = contents.replace(match[m], path);
}
}
if ( (match = contents.match(textRegExp) ) ) {
for (var m in match) {
var name = match[m].split("/")[1];
var path = "text!plugins-client/ext." + name + "/";
contents = contents.replace(match[m], path);
}
for (var m in match) {
var name = match[m].split("/")[1];
var path = "text!plugins-client/ext." + name + "/";
contents = contents.replace(match[m], path);
}
}
return contents;
}
}*/
})
37 changes: 25 additions & 12 deletions build/app.build.tmpl.js
Expand Up @@ -4,29 +4,42 @@
optimize: "none",
baseUrl: "../",
paths: {
"core" : "empty:",
"ext" : "empty:",
"apf" : "empty:",
"treehugger" : "empty:"
"core" : "empty:",
"ext" : "empty:",
"apf" : "empty:",
"treehugger" : "empty:",
"%m"
},
include: ["build/src/core.packed", "%s"],
out: "../plugins-client/ext.packed/packed.js",
out: "../plugins-client/lib.packed/www/packed.js",
inlineText: true,
findNestedDependencies: true,
optimizeAllPluginResources: false,
useStrict: true,
wrap: true,
wrap: true/*,
onBuildRead: function (moduleName, path, contents) {
var defineRegExp = new RegExp(/plugins-client\/ext.(\w+)/g);
var textRegExp = new RegExp(/text!ext\/(\w+)\//g);
var match;
console.log(contents)
if ( (match = contents.match(defineRegExp) ) ) {
for (var m in match) {
console.error(match[m]);
var name = "ext/" + match[m].split("/")[1];
contents = contents.replace(match[m], path);
}
}
if ( (match = contents.match(textRegExp) ) ) {
for (var m in match) {
var name = match[m].split("/")[1];
var path = "text!plugins-client/ext." + name + "/";
contents = contents.replace(match[m], path);
}
for (var m in match) {
var name = match[m].split("/")[1];
var path = "text!plugins-client/ext." + name + "/";
contents = contents.replace(match[m], path);
}
}
return contents;
}
}*/
})

0 comments on commit 4fd96a8

Please sign in to comment.