From 8fe57a4481b150207b1384e2016cc1a9049bf5ba Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Sun, 17 Sep 2017 09:34:27 -0500 Subject: [PATCH] Add Generate New App Without Brunch as a phoenix til --- README.md | 3 ++- phoenix/generate-new-app-without-brunch.md | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 phoenix/generate-new-app-without-brunch.md diff --git a/README.md b/README.md index 72d84a3..2ef2813 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/). For a steady stream of TILs from a variety of rocketeers, checkout [til.hashrocket.com](https://til.hashrocket.com/). -_562 TILs and counting..._ +_563 TILs and counting..._ --- @@ -253,6 +253,7 @@ _562 TILs and counting..._ - [Bypass Template Rendering](phoenix/bypass-template-rendering.md) - [Check The Installed Version](phoenix/check-the-installed-version.md) +- [Generate New App Without Brunch](phoenix/generate-new-app-without-brunch.md) - [Render A Template To A String](phoenix/render-a-template-to-a-string.md) - [Serve Static Assets From Custom Directory](phoenix/serve-static-assets-from-custom-directory.md) - [Specifying The Digest Directory](phoenix/specifying-the-digest-directory.md) diff --git a/phoenix/generate-new-app-without-brunch.md b/phoenix/generate-new-app-without-brunch.md new file mode 100644 index 0000000..3cca72d --- /dev/null +++ b/phoenix/generate-new-app-without-brunch.md @@ -0,0 +1,16 @@ +# Generate New App Without Brunch + +By default when you create a new Phoenix app using `phx.new`, a set of files +and configurations will be generated for [Brunch](http://brunch.io/). Though +the Phoenix team decided to use Brunch, you don't have to. You may not want +Phoenix to handle asset building or you may just prefer another tool. Either +way, if you'd like to opt out, you can include the `--no-brunch` flag when +generating the project. + +```bash +$ mix phx.new --no-brunch my_app +``` + +If you have an existing project that you'd like to remove Brunch from, there +is some information in [Phoenix's Static Assets +documentation](http://phoenixframework.org/blog/static-assets).