Skip to content

Change default location of javascript source directory #1397

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
ryenski opened this issue Apr 2, 2018 · 1 comment
Closed

Change default location of javascript source directory #1397

ryenski opened this issue Apr 2, 2018 · 1 comment

Comments

@ryenski
Copy link

ryenski commented Apr 2, 2018

I'm not sure if this is the appropriate venue for this comment/question; if not could you point me to the right direction?

It seems odd to me to have images and style sheet sources living together with javascripts under the app/javascripts directory.

That is why, in every new project, the first thing I do is rename app/javascripts to app/frontend. It seems more natural to me to have the following directory structure:

app/frontend/src          # javascripts
app/frontend/images       # images
app/frontend/stylesheets  # stylesheets

My impression is that Rails 6 will unify the asset pipeline and Webpacker into a single asset director, which would be ideal. But for now, I feel like it hurts my brain less to do make this change in new projects, and I was wondering if anyone else felt this pain.

@ryenski ryenski changed the title Change location of javascript source directory Change default location of javascript source directory Apr 2, 2018
@gauravtiwari
Copy link
Member

No problem.

Please see: #2 and #692

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants