Last active
January 25, 2016 19:50
-
-
Save urfolomeus/0d527a1479b15d36d247 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.config = { | |
files: { | |
javascripts: { | |
joinTo: "js/app.js" | |
}, | |
stylesheets: { | |
joinTo: "css/app.css" | |
}, | |
templates: { | |
joinTo: "js/app.js" | |
} | |
}, | |
conventions: { | |
assets: /^(web\/static\/assets)/ | |
}, | |
paths: { | |
watched: [ | |
"web/static", | |
"test/static", | |
"web/elm/SeatSaver.elm" // <-- with SeatSaver.elm | |
], | |
public: "priv/static" | |
}, | |
plugins: { | |
elmBrunch: { | |
elmFolder: 'web/elm', | |
mainModules: ['SeatSaver.elm'], | |
outputFolder: '../static/vendor' | |
}, | |
babel: { | |
ignore: [/web\/static\/vendor/] | |
} | |
}, | |
modules: { | |
autoRequire: { | |
"js/app.js": ["web/static/js/app"] | |
} | |
}, | |
npm: { | |
enabled: true, | |
whitelist: ["phoenix", "phoenix_html"] | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.config = { | |
files: { | |
javascripts: { | |
joinTo: "js/app.js" | |
}, | |
stylesheets: { | |
joinTo: "css/app.css" | |
}, | |
templates: { | |
joinTo: "js/app.js" | |
} | |
}, | |
conventions: { | |
assets: /^(web\/static\/assets)/ | |
}, | |
paths: { | |
watched: [ | |
"web/static", | |
"test/static" | |
], // <-- without SeatSaver.elm | |
public: "priv/static" | |
}, | |
plugins: { | |
elmBrunch: { | |
elmFolder: 'web/elm', | |
mainModules: ['SeatSaver.elm'], | |
outputFolder: '../static/vendor' | |
}, | |
babel: { | |
ignore: [/web\/static\/vendor/] | |
} | |
}, | |
modules: { | |
autoRequire: { | |
"js/app.js": ["web/static/js/app"] | |
} | |
}, | |
npm: { | |
enabled: true, | |
whitelist: ["phoenix", "phoenix_html"] | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# with brunch-config-no-work.js | |
» brunch build ⭠ master | |
Elm compile: SeatSaver.elm, in web/elm, to ../static/vendor/seatsaver.js | |
25 Jan 19:40:38 - error: undefined of web/elm/SeatSaver.elm failed. or: Cannot read property 'path' of undefined | |
~/src/unpushed/seat_saver | |
» la priv/static/js ⭠ master | |
total 0 | |
drwxr-xr-x 2 alan staff 68 25 Jan 19:38 . | |
drwxr-xr-x 7 alan staff 238 25 Jan 07:31 .. | |
# with brunch-config-works.js | |
» brunch build ⭠ master | |
25 Jan 19:47:49 - info: compiled 6 files into 2 files, copied 3 in 875ms | |
» la priv/static/js ⭠ master | |
total 1384 | |
drwxr-xr-x 4 alan staff 136 25 Jan 19:47 . | |
drwxr-xr-x 7 alan staff 238 25 Jan 07:31 .. | |
-rw-r--r-- 1 alan staff 313805 25 Jan 19:47 app.js | |
-rw-r--r-- 1 alan staff 391967 25 Jan 19:47 app.js.map |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment