aboutsummaryrefslogtreecommitdiff
path: root/shardweb/assets/brunch-config.js
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-09-01 16:07:22 +0200
committerAlex Auvolat <alex@adnab.me>2018-09-01 16:07:22 +0200
commit81b5a844a2a155e28c497a8ce671eb5f02803e5d (patch)
tree15e878ebe47d5993e7af46a48a1ccdc1dd1e4b2f /shardweb/assets/brunch-config.js
parentc6ec33d6e612168e14d77007915a4ea423c55a2e (diff)
downloadshard-81b5a844a2a155e28c497a8ce671eb5f02803e5d.tar.gz
shard-81b5a844a2a155e28c497a8ce671eb5f02803e5d.zip
Import shardweb0.0.2
Diffstat (limited to 'shardweb/assets/brunch-config.js')
-rw-r--r--shardweb/assets/brunch-config.js62
1 files changed, 62 insertions, 0 deletions
diff --git a/shardweb/assets/brunch-config.js b/shardweb/assets/brunch-config.js
new file mode 100644
index 0000000..b15df46
--- /dev/null
+++ b/shardweb/assets/brunch-config.js
@@ -0,0 +1,62 @@
+exports.config = {
+ // See http://brunch.io/#documentation for docs.
+ files: {
+ javascripts: {
+ joinTo: "js/app.js"
+
+ // To use a separate vendor.js bundle, specify two files path
+ // http://brunch.io/docs/config#-files-
+ // joinTo: {
+ // "js/app.js": /^js/,
+ // "js/vendor.js": /^(?!js)/
+ // }
+ //
+ // To change the order of concatenation of files, explicitly mention here
+ // order: {
+ // before: [
+ // "vendor/js/jquery-2.1.1.js",
+ // "vendor/js/bootstrap.min.js"
+ // ]
+ // }
+ },
+ stylesheets: {
+ joinTo: "css/app.css"
+ },
+ templates: {
+ joinTo: "js/app.js"
+ }
+ },
+
+ conventions: {
+ // This option sets where we should place non-css and non-js assets in.
+ // By default, we set this to "/assets/static". Files in this directory
+ // will be copied to `paths.public`, which is "priv/static" by default.
+ assets: /^(static)/
+ },
+
+ // Phoenix paths configuration
+ paths: {
+ // Dependencies and current project directories to watch
+ watched: ["static", "css", "js", "vendor"],
+ // Where to compile files to
+ public: "../priv/static"
+ },
+
+ // Configure your plugins
+ plugins: {
+ babel: {
+ // Do not use ES6 compiler in vendor code
+ ignore: [/vendor/]
+ }
+ },
+
+ modules: {
+ autoRequire: {
+ "js/app.js": ["js/app"]
+ }
+ },
+
+ npm: {
+ enabled: true
+ }
+};