firstdraft / appdev_template

A Rails template for generating homework projects
0 stars 1 forks source link

Remove Webpacker, ActionMailer, and the like #110

Closed jelaniwoods closed 4 years ago

jelaniwoods commented 4 years ago

Webpacker and Rails 6 has a lot of extra stuff that increases load time, that students won't need for the basic projects.

This changes in this branch:

Clone, checkout jw-remove-webpacker branch,

rails new no-webpack --rc=<path to fd> -m <path to template.rb> 

The new app should be able to navigate to:

Note:

There are a couple temporary changes I've made so that review is as easy as possible. In template.rb

# ENV = :prod
ENV = :dev

This change is because we're in development and the changes aren't in master yet.

In fd The removal of

--template=https://raw.githubusercontent.com/firstdraft/appdev_template/master/template.rb

For similar reasons. I will add them back after approval.

Other Note

fd is just an arbitraly named file that is used to store all the flags we run with rails new.

You can run rails to see the info:

[--rc=RC]   # Path to file containing extra configuration options for rails command
raghubetina commented 4 years ago

@jelaniwoods Excellent. I came to remind you not to forget to switch pack_tag for include_tag but looks like you are all over it. LGTM