Skip to content

Instantly share code, notes, and snippets.

@chvanikoff
Created November 21, 2015 15:16
Show Gist options
  • Save chvanikoff/f14a449e705c90b7730a to your computer and use it in GitHub Desktop.
Save chvanikoff/f14a449e705c90b7730a to your computer and use it in GitHub Desktop.
{
"name": "xpn",
"version": "0.0.0",
"dependencies": {
"jquery": "~2.1.4",
"bootstrap": "~3.3.5"
},
"overrides": {
"bootstrap": {
"main": [
"dist/js/bootstrap.min.js",
"dist/css/bootstrap.min.css",
"dist/fonts/glyphicons-halflings-regular.eot",
"dist/fonts/glyphicons-halflings-regular.svg",
"dist/fonts/glyphicons-halflings-regular.ttf",
"dist/fonts/glyphicons-halflings-regular.woff",
"dist/fonts/glyphicons-halflings-regular.woff2"
]
}
}
}
exports.config = {
files: {
javascripts: {
joinTo: {
"js/app.js": /^(web\/static\/js)/,
"js/vendor.js": /^bower_components|(deps\/phoenix\/web\/static)|(deps\/phoenix_html\/web\/static)/
},
order: {
before: [
"bower_components/jquery/dist/jquery.min.js"
]
}
},
stylesheets: {
joinTo: {
"css/app.css": /^(web\/static\/css)/,
"css/vendor.css": /^bower_components|(deps\/phoenix\/web\/static)|(deps\/phoenix_html\/web\/static)/
},
order: {
before: [
"bower_components/bootstrap/dist/css/bootstrap.min.css"
]
}
},
templates: {
joinTo: "js/app.js"
}
},
conventions: {
assets: /^(web\/static\/assets)|(bower_components\/bootstrap\/dist\/fonts)/
},
paths: {
watched: [
"deps/phoenix/web/static",
"deps/phoenix_html/web/static",
"web/static",
"test/static"
],
public: "priv/static"
},
plugins: {
babel: {
// Do not use ES6 compiler in vendor code
ignore: [/web\/static\/vendor/]
},
afterBrunch: [
[
'mkdir -p priv/static/fonts',
'mv priv/static/glyphicons-halflings-regular.* priv/static/fonts/'
].join(' && ')
]
},
modules: {
autoRequire: {
"js/app.js": ["web/static/js/app"]
}
},
npm: {
enabled: true
}
};
{
"repository": {
},
"dependencies": {
"brunch": "^1.8.5",
"babel-brunch": "^5.1.1",
"clean-css-brunch": ">= 1.0 < 1.8",
"css-brunch": ">= 1.0 < 1.8",
"javascript-brunch": ">= 1.0 < 1.8",
"uglify-js-brunch": ">= 1.0 < 1.8",
"after-brunch": "> 0.0.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment