Skip to content

Commit

Permalink
Update build file (support for aliases)
Browse files Browse the repository at this point in the history
  • Loading branch information
janodvarko committed Mar 31, 2012
1 parent 07886e9 commit 7fb16de
Showing 1 changed file with 43 additions and 6 deletions.
49 changes: 43 additions & 6 deletions extension/build.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -97,19 +97,25 @@ function prepareBuild()
source: { source: {
root: '.', root: '.',
// TODO: Previously we copied everything that matched this set of // TODO: Previously we copied everything that matched this set of
// extensions: js, xul, properties, css, html, xml, dtd, ong, gif, ico, manifest, txt, html // extensions: js, xul, properties, css, html, xml, dtd, ong, gif, ico,
// manifest, txt, html
// and then deleted. Now we copy everything with exclusions, but // and then deleted. Now we copy everything with exclusions, but
// we don't know what extra exclusions were missing // we don't know what extra exclusions were missing
exclude: [ exclude: [
/.*\.graphml/, /build\.xml/, /node_modules/, /.*\.graphml/, /build\.xml/, /node_modules/, /build\.js/,
/install\.rdf\.tpl\.xml/, /update\.rdf\.tpl\.xml/ /install\.rdf\.tpl\.xml/, /update\.rdf\.tpl\.xml/
] ]
}, },
dest: buildDir dest: buildDir
}); });


var project = copy.createCommonJsProject({ var project = copy.createCommonJsProject({
roots: [__dirname + "/content"] roots: [
__dirname + "/content"
],
aliases: {
"arch": "firebug/bti/inProcess"
}
}); });


copy({ copy({
Expand All @@ -118,19 +124,50 @@ function prepareBuild()
{ {
project: project, project: project,
require: [ require: [
"firebug/net/netPanel" "firebug/chrome/chrome",
] "firebug/lib/lib",
"firebug/firebug",
"firebug/bti/inProcess/browser",
"firebug/trace/traceModule",
"firebug/chrome/navigationHistory",
"firebug/chrome/knownIssues",
"firebug/js/sourceFile",
"firebug/chrome/shortcuts",
"firebug/firefox/start-button/startButtonOverlay",
"firebug/firefox/external-editors/externalEditors",
"firebug/firefox/firebugMenu",
"firebug/chrome/panelActivation",
"firebug/console/memoryProfiler",
"firebug/chrome/tableRep",
"firebug/html/htmlPanel",
"firebug/console/commandLinePopup",
"firebug/accessible/a11y",
"firebug/js/scriptPanel",
"firebug/js/callstack",
"firebug/console/consoleInjector",
"firebug/net/spy",
"firebug/js/tabCache",
"firebug/chrome/activation",
"firebug/css/cssComputedElementPanel",
],
}, },
__dirname + "/content/firebug/main.js" __dirname + "/content/firebug/main.js"
], ],
filter: moduleDefines, filter: moduleDefines,
dest: buildDir + "/content/firebug/main.js" dest: buildDir + "/content/firebug/main.js"
}); });


// Compress main.js file (all extension modules)
copy({ copy({
source: buildDir + "/content/firebug/main.js",
filter: copy.filter.uglifyjs,
dest: buildDir + "/content/firebug/main.js"
});

/*copy({
source: {value:project.getDependencyGraphML()}, source: {value:project.getDependencyGraphML()},
dest: "netpanel.graphml" dest: "netpanel.graphml"
}); });*/


// Copy install.rdf template into the build dir // Copy install.rdf template into the build dir
copy({ copy({
Expand Down

0 comments on commit 7fb16de

Please sign in to comment.