ensl_gathers/brunch-config.js

70 lines
1.4 KiB
JavaScript
Raw Normal View History

2016-01-22 10:12:23 +00:00
exports.config = {
// See http://brunch.io/#documentation for docs.
files: {
javascripts: {
joinTo: {
2016-01-22 21:39:03 +00:00
"app.js": /^(app)/,
"vendor.js": /^(vendor|node_modules)/
2016-01-22 10:12:23 +00:00
}
},
stylesheets: {
2016-01-22 21:39:03 +00:00
joinTo: {
"app.css": /^(app|vendor|node_modules)/
}
2016-01-22 10:12:23 +00:00
},
templates: {
joinTo: "app.js"
}
},
conventions: {
// This option sets where we should place non-css and non-js assets in.
assets: /^app\/images/
},
paths: {
// Dependencies and current project directories to watch
watched: [
"app/javascripts",
"app/stylesheets",
"vendor"
]
},
// Configure your plugins
plugins: {
babel: {
presets: ["es2015", "react"],
// Do not use ES6 compiler in vendor code
2016-01-26 10:44:34 +00:00
ignore: [/vendor/]
2016-01-22 10:12:23 +00:00
}
},
// Default behaviour.
// modules: {
// autoRequire: {
// 'app.js': ['app']
// }
// },
2016-01-22 21:39:03 +00:00
2016-01-22 10:12:23 +00:00
npm: {
enabled: true,
2016-01-22 21:39:03 +00:00
styles: {
"bootstrap-solarized": ["bootstrap-solarized-dark.css"],
"toastr": ["build/toastr.min.css"]
2016-01-22 21:39:03 +00:00
},
whitelist: ["react", "react-dom", "jquery", "lodash",
2016-01-26 10:44:34 +00:00
"react-autolink", "react-dom", "react-emoji", "howler",
2016-11-15 09:59:11 +00:00
"bootstrap", "perfect-scrollbar", "moment", "toastr",
"socket.io-client"],
2016-01-22 10:12:23 +00:00
globals: {
"_": "lodash",
"jQuery": "jquery",
"$": "jquery",
"toastr": "toastr"
2016-01-22 10:12:23 +00:00
}
},
notifications: true
};