mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-25 05:40:57 +00:00
79be2b8155
* Updated dependencies - React update needed transformation of React.createClass to ES2015 classes - removed some deprecations/deprecated packages - added mulitple @types Dependencies to devDependencies for IDE code completion support * added Docker related files - Dockerfile with build container - docker-compose.yml with mongodb and app
72 lines
1.5 KiB
JavaScript
72 lines
1.5 KiB
JavaScript
exports.config = {
|
|
// See http://brunch.io/#documentation for docs.
|
|
files: {
|
|
javascripts: {
|
|
joinTo: {
|
|
"app.js": /^(app)/,
|
|
"vendor.js": /^(vendor|node_modules)/
|
|
}
|
|
},
|
|
stylesheets: {
|
|
joinTo: {
|
|
"app.css": /^(app|vendor|node_modules)/
|
|
}
|
|
},
|
|
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: [
|
|
["@babel/preset-env", {
|
|
"bugfixes": true,
|
|
"shippedProposals": true
|
|
}],
|
|
"@babel/preset-react"],
|
|
// Do not use ES6 compiler in vendor code
|
|
ignore: [/vendor/]
|
|
}
|
|
},
|
|
|
|
// Default behaviour.
|
|
// modules: {
|
|
// autoRequire: {
|
|
// 'app.js': ['app']
|
|
// }
|
|
// },
|
|
|
|
npm: {
|
|
enabled: true,
|
|
styles: {
|
|
"bootstrap-solarized": ["bootstrap-solarized-dark.css"],
|
|
"toastr": ["build/toastr.min.css"]
|
|
},
|
|
whitelist: ["react", "react-dom", "jquery", "lodash",
|
|
"react-autolink", "react-dom", "react-emoji", "howler",
|
|
"bootstrap", "perfect-scrollbar", "moment", "toastr",
|
|
"socket.io-client"],
|
|
globals: {
|
|
"_": "lodash",
|
|
"jQuery": "jquery",
|
|
"$": "jquery",
|
|
"toastr": "toastr"
|
|
}
|
|
}
|
|
};
|