aboutsummaryrefslogtreecommitdiffstats
path: root/web/conf.js
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-01-03 11:46:51 +1300
committerAldo Cortesi <aldo@nullcube.com>2015-01-03 11:46:51 +1300
commit1959aebc087db0cb3bb12546ec2671356829b482 (patch)
treee98440c578f85d462a04882deca5a623fd16946b /web/conf.js
parentf1b040e80830314c834c7e8ef7697ffe39b19770 (diff)
downloadmitmproxy-1959aebc087db0cb3bb12546ec2671356829b482.tar.gz
mitmproxy-1959aebc087db0cb3bb12546ec2671356829b482.tar.bz2
mitmproxy-1959aebc087db0cb3bb12546ec2671356829b482.zip
Add PEG support to gulpfile
- Extract conf - all project specific conf outside gulpfile - Generalize filt.js exports, add required imports
Diffstat (limited to 'web/conf.js')
-rw-r--r--web/conf.js33
1 files changed, 33 insertions, 0 deletions
diff --git a/web/conf.js b/web/conf.js
new file mode 100644
index 00000000..5106bae2
--- /dev/null
+++ b/web/conf.js
@@ -0,0 +1,33 @@
+
+var conf = {
+ src: "src/",
+ dist: "../libmproxy/web",
+ static: "../libmproxy/web/static",
+ js: {
+ // Don't package these in the vendor distribution
+ vendor_excludes: [
+ "bootstrap"
+ ],
+ // Package these as well as the dependencies
+ vendor_includes: [
+ "react/addons"
+ ],
+ app: 'src/js/app.js',
+ jshint: ["src/js/**.js", "!src/js/filt/filt.js"]
+ },
+ css: {
+ vendor: ["src/css/vendor.less"],
+ app: ["src/css/app.less"]
+ },
+ copy: [
+ "src/images/**",
+ ],
+ templates: [
+ "src/templates/*"
+ ],
+ fonts: ["src/fontawesome/fontawesome-webfont.*"],
+ peg: ["src/js/filt/filt.peg"],
+ port: 8082
+};
+
+module.exports = conf; \ No newline at end of file