Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Move javascript source files out of public. Leave only bundle.js #2

Open
sleepycat opened this issue Jun 12, 2016 · 0 comments
Open

Comments

@sleepycat
Copy link
Owner

Given that webpack is compiling all javascripts into bundle.js, is seems cleaner to start cleaning out the public folder to create a clean(er) separation between source and build artifacts.

Currently the public folder looks like this:

mike@longshot:~/projects/usesthis☺  tree public/
public/
├── images
│   ├── layers-2x.png
│   ├── layers.png
│   ├── marker-icon-2x.png
│   ├── marker-icon.png
│   └── marker-shadow.png
├── javascripts
│   ├── bundle.js
│   ├── bundle.js.map
│   ├── components
│   │   ├── canvas.js
│   │   ├── FlashMessage.js
│   │   ├── Layer.js
│   │   ├── Map.js
│   │   ├── Navigation.js
│   │   └── SummaryChart.js
│   ├── convert.js
│   ├── main.js
│   ├── mapbox-geocoder.js
│   └── summary.js
└── stylesheets
    ├── leaflet.css
    ├── mapbox-gl-geocoder.css
    └── style.css

4 directories, 20 files

Minimally it would be good to move all js source out of the javascripts directory and leave only bundle.js and bundle.js.map

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

No branches or pull requests

1 participant